mirror of https://github.com/TriliumNext/Notes
support for https
parent
963b81864c
commit
a6bf04f8d4
@ -1,16 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
openssl genrsa -des3 -out cert.key 2048
|
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 2000 -nodes
|
||||||
|
|
||||||
openssl req -new -key cert.key -out cert.csr
|
|
||||||
|
|
||||||
# Remove passphrase from key
|
|
||||||
cp cert.key cert.key.org
|
|
||||||
|
|
||||||
openssl rsa -in cert.key.org -out cert.key
|
|
||||||
|
|
||||||
# Generate self signed certificate
|
|
||||||
openssl x509 -req -days 730 -in cert.csr -signkey cert.key -out cert.crt
|
|
||||||
|
|
||||||
rm cert.key.org
|
|
||||||
rm cert.csr
|
|
||||||
|
|||||||
Loading…
Reference in New Issue