Steven Smith revised this gist . Go to revision
1 file changed, 7 insertions
newdomain.sh(file created)
| @@ -0,0 +1,7 @@ | |||
| 1 | + | #!/bin/bash | |
| 2 | + | openssl rsa -in account.key -pubout 2>&1 | grep -v "writing" | |
| 3 | + | echo "press enter..." >&2 | |
| 4 | + | read enter | |
| 5 | + | openssl req -new -sha256 -key domain.key -subj "/" \ | |
| 6 | + | -reqexts SAN -config <(cat /etc/ssl/openssl.cnf \ | |
| 7 | + | <(printf "[SAN]\nsubjectAltName=DNS:$1")) | |
Newer
Older