Skip to content

Instantly share code, notes, and snippets.

@ae6rt
Created August 24, 2015 20:59
Show Gist options
  • Save ae6rt/54c229caf7bc62bbe3bf to your computer and use it in GitHub Desktop.
Save ae6rt/54c229caf7bc62bbe3bf to your computer and use it in GitHub Desktop.
Cert testing with openssl
Verify you have good working certs with openssl.
Create your CA, and server cert and key.
In one terminal, playing the server role:
openssl s_server -accept 8443 -cert /usr/local/etc/rabbitmq/rabbitmq.pem -key /usr/local/etc/rabbitmq/rabbitmq-key.pem -CAfile /usr/local/etc/rabbitmq/ca.pem
In another terminal, playing the client
openssl s_client -connect localhost:8443 -CAfile /usr/local/etc/rabbitmq/ca.pem
You should be able to connect, and see the server echo what the client types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment