Giter VIP home page Giter VIP logo

sslcipherlist's Introduction

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.

sslcipherlist's People

Contributors

laikash avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.