<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.smpyppksantodonboscofakfak.sch.id/index.php?action=history&amp;feed=atom&amp;title=Instalasi_SSL_di_Ubuntu_Server_dengan_IP_Private</id>
	<title>Instalasi SSL di Ubuntu Server dengan IP Private - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.smpyppksantodonboscofakfak.sch.id/index.php?action=history&amp;feed=atom&amp;title=Instalasi_SSL_di_Ubuntu_Server_dengan_IP_Private"/>
	<link rel="alternate" type="text/html" href="https://wiki.smpyppksantodonboscofakfak.sch.id/index.php?title=Instalasi_SSL_di_Ubuntu_Server_dengan_IP_Private&amp;action=history"/>
	<updated>2026-05-10T14:33:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.smpyppksantodonboscofakfak.sch.id/index.php?title=Instalasi_SSL_di_Ubuntu_Server_dengan_IP_Private&amp;diff=149&amp;oldid=prev</id>
		<title>Smpdbos: Created page with &quot;sudo apt update  sudo apt-get install -y apache2   sudo apt-get install openssl  sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfs...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.smpyppksantodonboscofakfak.sch.id/index.php?title=Instalasi_SSL_di_Ubuntu_Server_dengan_IP_Private&amp;diff=149&amp;oldid=prev"/>
		<updated>2023-07-24T00:42:05Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;sudo apt update  sudo apt-get install -y apache2   sudo apt-get install openssl  sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfs...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;sudo apt update&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install -y apache2 &lt;br /&gt;
&lt;br /&gt;
sudo apt-get install openssl&lt;br /&gt;
&lt;br /&gt;
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Buat file konfigurasi dari parameter apache:&lt;br /&gt;
 $ sudo nano /etc/apache2/conf-available/ssl-params.conf , isi dengan:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH&lt;br /&gt;
 SSLProtocol All -SSLv2 -SSLv3 -TLSv1 -TLSv1.1&lt;br /&gt;
 SSLHonorCipherOrder On&lt;br /&gt;
 # Disable preloading HSTS for now. You can use the commented out header line that includes&lt;br /&gt;
 # the &amp;quot;preload&amp;quot; directive if you understand the implications.&lt;br /&gt;
 # Header always set Strict-Transport-Security &amp;quot;max-age=63072000; includeSubDomains; preload&amp;quot;&lt;br /&gt;
 Header always set X-Frame-Options DENY&lt;br /&gt;
 Header always set X-Content-Type-Options nosniff&lt;br /&gt;
 # Requires Apache &amp;gt;= 2.4&lt;br /&gt;
 SSLCompression off&lt;br /&gt;
 SSLUseStapling on&lt;br /&gt;
 SSLStaplingCache &amp;quot;shmcb:logs/stapling-cache(150000)&amp;quot;&lt;br /&gt;
 # Requires Apache &amp;gt;= 2.4.11&lt;br /&gt;
 SSLSessionTickets Off&amp;lt;/code&amp;gt;&lt;br /&gt;
Save, exit.&lt;br /&gt;
&lt;br /&gt;
Salin file yang diperlukan:&lt;br /&gt;
 $ sudo cp /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-available/default-ssl.conf.bak&lt;br /&gt;
Modifikasi default-ssl.conf dari apache:&lt;br /&gt;
 $ sudo nano /etc/apache2/sites-available/default-ssl.conf , isi dengan (jika memungkinkan, hapus terlebih dahulu semua konfigurasi yang ada sebelumnya, lalu copas konfigurasi dibawah ini) :&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;lt;IfModule mod_ssl.c&amp;gt;&lt;br /&gt;
         &amp;lt;VirtualHost _default_:443&amp;gt;&lt;br /&gt;
                 ServerAdmin admin@local.com&lt;br /&gt;
                 ServerName localhost&lt;br /&gt;
 &lt;br /&gt;
                 DocumentRoot /var/www/html&lt;br /&gt;
 &lt;br /&gt;
                 ErrorLog ${APACHE_LOG_DIR}/error.log&lt;br /&gt;
                 CustomLog ${APACHE_LOG_DIR}/access.log combined&lt;br /&gt;
 &lt;br /&gt;
                 SSLEngine on&lt;br /&gt;
 &lt;br /&gt;
                 SSLCertificateFile      /etc/ssl/certs/apache-selfsigned.crt&lt;br /&gt;
                 SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key&lt;br /&gt;
 &lt;br /&gt;
                 &amp;lt;FilesMatch &amp;quot;\.(cgi|shtml|phtml|php)$&amp;quot;&amp;gt;&lt;br /&gt;
                                 SSLOptions +StdEnvVars&lt;br /&gt;
                 &amp;lt;/FilesMatch&amp;gt;&lt;br /&gt;
                 &amp;lt;Directory /usr/lib/cgi-bin&amp;gt;&lt;br /&gt;
                                 SSLOptions +StdEnvVars&lt;br /&gt;
                 &amp;lt;/Directory&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
         &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
 &amp;lt;/IfModule&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
Save, exit.&lt;br /&gt;
&lt;br /&gt;
Modifikasi default.conf dari apache dengan merubah ip kalian:&lt;br /&gt;
 $ sudo nano /etc/apache2/sites-available/000-default.conf&lt;br /&gt;
Tambahkan ini dibawah “VirtualHost” :&lt;br /&gt;
 &amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 . . .&lt;br /&gt;
&lt;br /&gt;
 Redirect “/” “&amp;lt;nowiki&amp;gt;https://ip_lokal_vm_kamu”&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 . . .&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
Save,exit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Lakukan apply dan reload pada apache:&lt;br /&gt;
 $ sudo a2enmod ssl&lt;br /&gt;
&lt;br /&gt;
 $ sudo a2enmod headers&lt;br /&gt;
&lt;br /&gt;
 $ sudo a2ensite default-ssl&lt;br /&gt;
&lt;br /&gt;
 $ sudo a2enconf ssl-params&lt;br /&gt;
&lt;br /&gt;
 $ sudo apache2ctl configtest&lt;br /&gt;
&lt;br /&gt;
 $ sudo /etc/init.d/apache2 reload&lt;br /&gt;
[[File:Ssl.png|thumb|ssl]]&lt;/div&gt;</summary>
		<author><name>Smpdbos</name></author>
	</entry>
</feed>