bashrc & zshrc: sslgenpem (#61)

This commit is contained in:
Aminda Suomalainen 2015-02-12 13:56:40 +02:00
parent fc35481c8d
commit 8c0a89be50
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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