11 lines
176 B
Bash
11 lines
176 B
Bash
|
#!/bin/sh
|
||
|
mkdir tls
|
||
|
openssl req \
|
||
|
-x509 \
|
||
|
-newkey rsa:4096 \
|
||
|
-keyout tls/key.pem \
|
||
|
-out tls/cert.pem \
|
||
|
-days 365 \
|
||
|
-nodes \
|
||
|
-subj '/CN=localhost' \
|