Dua langkah mudah untuk menggenerate CSR di Linux

1. Generate Key

openssl genrsa -out jaranguda.com.key 4096

2. Generate CSR

openssl req -out jaranguda.com.csr -key jaranguda.com.key -new -sha256
### output
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
Country Name (2 letter code) [AU]:ID
State or Province Name (full name) [Some-State]:Jakarta
Locality Name (eg, city) []:Jakarta
Organization Name (eg, company) [Internet Widgits Pty Ltd]:Jaranguda
Organizational Unit Name (eg, section) []:SSL
Common Name (e.g. server FQDN or YOUR name) []:jaranguda.com
Email Address []:ssladmin@jaranguda.com                         
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

yang di kirim/input untuk request ssl adalah isi dari file jaranguda.com.csr.

Bagian yang paling penting adalah Common Name harus sesuai dengan nama domain yang anda request. Contoh bila anda ingin membuat ssl untuk akumahapaatuh.jaranguda.com isikan juga akumahapaatuh.jaranguda.com. Kalo yang lainnya bebas diisi. Khusus untuk wildcard ditambah tanda bintang di depan, contoh *.jaranguda.com. Ingat untuk mengganti jaranguda.com dengan domain anda.

Leave a comment

Your email address will not be published. Required fields are marked *