ght-acme.sh icon indicating copy to clipboard operation
ght-acme.sh copied to clipboard

How to generate server key and csr

Open Mythbusters123 opened this issue 4 years ago • 2 comments

I am fairly new to this, and I am trying to get out of paying ssl fees from heroku, and I stumbled upon this. I looked up how to do it but it was all self signed and it wouldnt generate a .pem. Thank you

Mythbusters123 avatar Sep 05 '21 14:09 Mythbusters123

Sorry for answering late, I was on holiday. I am hoping that my answer is still useful. The simplest way is to generate the server key instead of generating the csr. It is the same as the creation of the account key:

# umask 0177
# openssl genrsa -out server.key 4096
# umask 0022

Then just provide to the program the key via the -k option for the sign action and provide also the list of your domain name(s).

bruncsak avatar Sep 20 '21 18:09 bruncsak

Sorry for the later answer, there is a second way. You may use the gen-csr.sh utility as well. I just updated it, fixing some bugs.

bruncsak avatar Oct 29 '22 17:10 bruncsak