Added ssl support

This commit is contained in:
Myx
2023-10-15 13:09:03 +02:00
parent 5c9fec4767
commit 1d3b617823
5 changed files with 63 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Generate a private key
openssl genrsa -out key.pem 2048
# Generate a CSR using the private key
openssl req -new -key key.pem -out csr.pem
# Generate a certificate using the private key and CSR
openssl x509 -req -days 365 -in csr.pem -signkey key.pem -out cert.pem
# Delete the CSR, we don't need it anymore
rm csr.pem