mirror of
https://github.com/Myxelium/RandomMemerBot.git
synced 2026-04-09 08:59:39 +00:00
13 lines
335 B
Bash
13 lines
335 B
Bash
#!/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 |