Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
################################################################################
#
# filename: irc-sasl.conf
# description: Gist to show to setup SASL connections to IRC
# author: Andre Mattie
# email: devel@introsec.ca
# GPG: 5620 A200 6534 B779 08A8 B22B 0FA6 CD54 93EA 430D
# bitcoin: 1LHsfZrES8DksJ41JAXULimLJjUZJf7Qns
# date: 04/03/2017
#
################################################################################
### Creating Certificates
openssl req -x509 -new -newkey rsa:4096 -sha256 -days 1000 -nodes -out <YOUR-NICK>.pem -keyout <YOUR-NICK>.pem
#You will be prompted for various pieces of information about the certificate. The contents do not matter for our purposes, but #openssl needs at least one of them to be non-empty.
#
#The .pem file will have the same access to your NickServ account as your password does, so take appropriate care in securing it.
# Display your certificates fingerprint
openssl x509 -in <YOUR-NICK>.pem -outform der | sha1sum -b | cut -d' ' -f1
# Now lookup the documentation of your IRC client program for examples on how to setup/configure the client to use your newly #created certificate and enable SASL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment