BER AKHIR.... DARI ....AWAL, KEMUDIAN BERAWAL.... DARI .....AKHIR
27 November 2018
cara install https debian 9
langkah 1............
root@server:~# apt-get install apache2 openssl
langkah2................
root@server:~# mkdir -p /etc/ssl/localcerts
root@server:~# openssl req -new -x509 -days 365 -nodes -out /etc/ssl/localcerts/apache.pem -keyout /etc/ssl/localcerts/apache.key
Generating a 2048 bit RSA private key
.................+++
............+++
writing new private key to '/etc/ssl/localcerts/apache.key'
-----
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
langkah 3...................
root@server:~# a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
langkah 4...............
root@server:/etc/apache2/sites-available# nano 000-default.conf
ServerName bagian_pembangunan;
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
SSLEngine on
SSLCertificateFile /etc/ssl/localcerts/apache.pem
SSLCertificateKeyFile /etc/ssl/localcerts/apache.key
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
langkah 5 ................
root@server:/etc/apache2/sites-available# a2ensite 000-default.conf
Site 000-default already enabled
langkah 6 ....................
root@server:/etc/apache2/sites-available# service apache2 restart
https://wiki.debian.org/Self-Signed_Certificate
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar