From 8c0a89be507a3639f2747483c875e6ef30481299 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 12 Feb 2015 13:56:40 +0200 Subject: [PATCH] bashrc & zshrc: sslgenpem (#61) --- rc/bashrc | 5 +++++ rc/zshrc | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/rc/bashrc b/rc/bashrc index 528f606c..ece92b48 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -880,6 +880,11 @@ serversslciphers() { nmap $1 -p $2 --script +ssl-enum-ciphers } +# Generate SSL certificate +sslgenpem () { + openssl req -nodes -newkey rsa:4096 -keyout $1.pem -x509 -days 3650 -out $1.pem -subj "/CN=$2" +} + # .custom if [ -f ~/.custom ]; then source ~/.custom diff --git a/rc/zshrc b/rc/zshrc index 5c1a7bbb..a0f1304a 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -858,6 +858,11 @@ serversslciphers() { nmap $1 -p $2 --script +ssl-enum-ciphers } +# Generate SSL certificate +sslgenpem () { + openssl req -nodes -newkey rsa:4096 -keyout $1.pem -x509 -days 3650 -out $1.pem -subj "/CN=$2" +} + # Source files for miscannellious modifications. # .custom