mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-22 10:42:55 +01:00
bashrc & zshrc: sslgenpem (#61)
This commit is contained in:
parent
fc35481c8d
commit
8c0a89be50
@ -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
|
||||
|
5
rc/zshrc
5
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
|
||||
|
Loading…
Reference in New Issue
Block a user