Friday, 30 March 2018

How to Disabling all SSL/TLS Protocols except TLSv1.2 in CentOS7/RHEL7



Secure Socket Layer (SSL) and Transport Layer Security (TLS) are both cryptographic protocols providing encrypted and secure communication between servers, clients, machines and applications operating over a network.


The default Apache configuration files:

/etc/httpd/conf/httpd.conf
/etc/httpd/conf.d/ssl.conf

Find the entry ‘SSLProtocol’ in above mentioned files and modify as below:

[root@linuxcnf ~]# vi /etc/httpd/conf.d/ssl.conf
SSLProtocol -ALL +TLSV1.2

In the above changes the apache service will disable all protocols, but enable TLSV1.2

Verify the configuration changes:

[root@linuxcnf ~]# cat /etc/httpd/conf.d/ssl.conf |grep SSLProtocol
SSLProtocol -ALL +TLSV1.2
[root@linuxcnf ~]#

Restart the Apache service to complete the changes:

[root@linuxcnf ~]# service httpd restart
Redirecting to /bin/systemctl restart httpd.service
[root@linuxcnf ~]# 

To verify the TSLv1.2 is enabled on the server:

[root@ linuxcnf ~]# openssl s_client -connect 192.168.43.105:443 -tls1_2|grep -i supported
depth=0 C = --, ST = SomeState, L = SomeCity, O = SomeOrganization, OU = SomeOrganizationalUnit, CN = linuxcnf, emailAddress = root@ linuxcnf
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 C = --, ST = SomeState, L = SomeCity, O = SomeOrganization, OU = SomeOrganizationalUnit, CN = linuxcnf, emailAddress = root@ linuxcnf
verify error:num=21:unable to verify the first certificate
verify return:1
Secure Renegotiation IS supported
^c
[root@ linuxcnf ~]#

We can see the Secure Renegotiation IS supported.


2 comments:

  1. Securing network communication channels is a critical aspect of modern IT infrastructure, especially when configuring encrypted protocols, certificate validation, and secure client-server communication. Students interested in implementing secure communication frameworks, protocol hardening, and network defense mechanisms can explore Network Security Projects for Final Year, where secure network architectures and protected communication systems are developed for real-world environments.

    ReplyDelete
  2. The concepts discussed in this article, including SSL/TLS configuration, secure protocols, certificate management, and encrypted data transmission, are fundamental topics in computer networking and enterprise communication systems. Students who wish to gain practical experience in routing, protocols, secure communication, and network infrastructure can further explore Networking Projects for Final Year, which cover a wide range of modern networking technologies and implementations.

    ReplyDelete