mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +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
|
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
|
# .custom
|
||||||
if [ -f ~/.custom ]; then
|
if [ -f ~/.custom ]; then
|
||||||
source ~/.custom
|
source ~/.custom
|
||||||
|
5
rc/zshrc
5
rc/zshrc
@ -858,6 +858,11 @@ serversslciphers() {
|
|||||||
nmap $1 -p $2 --script +ssl-enum-ciphers
|
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.
|
# Source files for miscannellious modifications.
|
||||||
|
|
||||||
# .custom
|
# .custom
|
||||||
|
Loading…
Reference in New Issue
Block a user