Tutorial ini digunakan untuk Generate CSR dan Key SSL
Generate CSR dan Key dibutuhkan saat prosees installasi SSL pada Server.
Untuk Generatenya cukup mudah menggunakan Openssl di Linux Ubuntu.
openssl genrsa -out www.EXAMPLE.com.key 2048 ; openssl req -new -sha256 -key www.EXAMPLE.com.key -out www.EXAMPLE.com.csr
Agar lebih mudah
maka kita buat menjadi Script Bash yang akan menginput Domain
Buat File ssl.sh
Lalu edit dan tambahkan isi file seperti dibawah ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Generate SSL Key anda CSR | |
clear | |
openssl genrsa -out $1.key 2048 ; openssl req -new -sha256 -key $1.key -out $1.csr; | |
cat $1.csr $1.key |
jalankan perintah
chmod +x ssl.sh
Ok ssl.sh siap digunakan, untuk mengeksekusinya cukup jalankan perintah
bash ssl.sh www.namadomain.com
Selesai.
0 Komentar:
Posting Komentar