Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
create a self-signed SSL cert
#!/bin/bash
which openssl || echo Missing dependency openssl || exit 1
if ! [[ -d ssl ]]; then
mkdir ssl;
fi
openssl genrsa -out ./ssl/client-key.pem 2048
openssl req -new -key ./ssl/client-key.pem -out ./ssl/client.csr
openssl x509 -req -in ./ssl/client.csr -signkey ./ssl/client-key.pem -out ./ssl/client-cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.