Skip to content

Instantly share code, notes, and snippets.

@SamWhited
Created December 18, 2014 18:37
Show Gist options
  • Save SamWhited/aaf1ff4353de9f06a502 to your computer and use it in GitHub Desktop.
Save SamWhited/aaf1ff4353de9f06a502 to your computer and use it in GitHub Desktop.
Test ejabberd SSL ciphers with openssl
#!/bin/bash
CIPHERS=`grep ^s2s_ciphers /etc/ejabberd/ejabberd.yml | cut -d\" -f2 | sed 's,:,\n,g'`
for CIPHER in $CIPHERS; do
echo "Testing: ${CIPHER}..."
openssl s_client -connect samwhited.com:5269 -starttls xmpp -cipher ${CIPHER} || echo "Fail"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment