init repository

This commit is contained in:
2023-08-05 22:10:48 +02:00
commit d9ce80beb1
25 changed files with 2016 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
# generate private key
openssl genpkey -algorithm RSA -out private.key -pkeyopt rsa_keygen_bits:2048
# generate cert sign request
openssl req -new -key private.key -out csr.csr -subj "/C=EN/ST=Anywhere/L=Where/O=Organization/OU=localenv/CN=localenv.io"
# generate self signed certificate
openssl x509 -req -days 3650 -in csr.csr -signkey private.key -out certificate.crt
# if you need to import certificate into your browser
# openssl pkcs12 -export -in certificate.crt -inkey private.key -out server.p12