Skip to content

Instantly share code, notes, and snippets.

View pantras's full-sized avatar

Philippe Antras pantras

  • Sophia Antipolis
View GitHub Profile
@pantras
pantras / test-ssl-cipher.sh
Last active September 5, 2019 08:48 — forked from ilude/test-ssl-cipher.sh
Test https ssl ciphers
#!/bin/bash
# OpenSSL requires the port number.
SERVER=localhost:443
DELAY=1
echo -n Testing ssl2...
result=$(echo -n | openssl s_client -ssl2 -connect $SERVER 2>&1)
if [[ "$result" =~ "Cipher :" ]] ; then
echo supported. INSECURE!