After deploying https, accessing it prompts a security risk: NET::ERR_SSL_OBSOLETE_VERSION.

Published: 2020-07-28

image.png

After deploying HTTPS, the following prompt appears when accessing the domain name:

Your connection is not secure

The security configuration used by this website is outdated. This may cause your information (such as passwords, messages, or credit card numbers) to be leaked while being sent to this website.

NET::ERR_SSL_OBSOLETE_VERSION


The reason is that the server's openssl version is too old; newer browsers will indicate that it is insecure,


openssl version -a can be used to check the openssl version


Openssl 1.0.0h supports SSLv2, SSLv3, and TLSv1.0

Openssl 1.0.1 added support for TLSv1.1 and TLSv1.2
Openssl 1.1.1 began supporting TLS1.3


For upgrading old versions (openssl1.0.2|openssh7.5), refer to https://www.west.cn/faq/list.asp?unid=1754


Upgrade openssl-1.1.1

cd /usr/local/src
wget -c https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar zxvf openssl-1.1.1g.tar.gz
cd openssl-1.1.1g
./config --prefix=/usr --shared
make -j4 && make install
openssl version -a


Upgrade openssh8.3p1

cd /usr/local/src
mv /etc/ssh /etc/ssh.bak
yum install -y pam-devel
wget -c https://openbsd.hk/pub/OpenBSD/OpenSSH/portable/openssh-8.3p1.tar.gz
tar zxvf openssh-8.3p1.tar.gz
cd openssh-8.3p1
./configure --sbindir=/usr/sbin/  --bindir=/usr/bin/ --sysconfdir=/etc/ssh  --with-ssl-engine --with-pam
make -j4 && make install
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
echo 'Port 22000' >>/etc/ssh/sshd_config
cp -a contrib/redhat/sshd.init /etc/init.d/sshd
cp -a contrib/redhat/sshd.pam /etc/pam.d/sshd.pam
chmod +x /etc/init.d/sshd
chkconfig --add sshd
chkconfig sshd on
service sshd restart

centos7: mv  /usr/lib/systemd/system/sshd.service  /tmp

              systemctl enable sshd

centos7: systemctl restart sshd.service


image.png

Note: If a custom openssl path was specified when compiling nginx, nginx also needs to be recompiled.