Skip to content

Very simple script to check the cihpersuit used by a server from the ones that a client supports, using s_client.

Notifications You must be signed in to change notification settings

LaiKash/sslcipherlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Description

Very simple script to check the chipher list used by a server from the ones that a client supports, using s_client.

Setup

  • Copy the content of the following table to a file called "mapping.txt" in the same folder as the script: https://testssl.sh/openssl-iana.mapping.html This is used for a mapping between the OpenSSL ciphers sintax and the IANA one used in the RFCs.

  • The sed command need to be installed in the system.

  • The openssl command as well as s_client need to be installed in the system.

Howto

As a probe of concept, lets think that the host is in 128.10.10.10. Create a key and a certificate in the host as follows (port 4430):

openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout keyout.pem -out out.pem

Create a really simple HTTPS server in the host with s_server:

openssl s_server -key key.pem -cert cert.pem -accept 4430 -www 

Use sslcipherlist (in the client) and check what happens:

./sslcipherlist.sh 128.10.10.10:4430

Additionally, if you want only to list the ciphers valid for the client in a better format, execute (in the client) the script sslistclient.sh.

About

Very simple script to check the cihpersuit used by a server from the ones that a client supports, using s_client.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages