10 lines
254 B
Fish
10 lines
254 B
Fish
|
#!/usr/bin/fish
|
||
|
|
||
|
openssl genrsa -out key.pem 2048
|
||
|
|
||
|
openssl req -new -out server.csr -key key.pem -config local_cert.cnf
|
||
|
|
||
|
openssl x509 -req -days 9999 -in server.csr -signkey key.pem -out cert.pem -extensions v3_req -extfile local_cert.cnf
|
||
|
|
||
|
rm server.csr
|