<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>wildcard certificate - GoBlog</title>
	<atom:link href="https://blog.goreinnamah.com/blog/tag/wildcard-certificate/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.goreinnamah.com</link>
	<description>LOG ALL LOGS</description>
	<lastBuildDate>Thu, 05 Dec 2019 05:54:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.goreinnamah.com/wp-content/uploads/2017/01/cropped-1-150x150.jpg</url>
	<title>wildcard certificate - GoBlog</title>
	<link>https://blog.goreinnamah.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Instalasi Sertifikat Let&#8217;s Encrypt Free SSL Wildcard pada Ubuntu 16/18</title>
		<link>https://blog.goreinnamah.com/blog/2019/12/05/lets-encrypt-free-ssl-wildcard/</link>
		
		<dc:creator><![CDATA[Darius Go Reinnamah]]></dc:creator>
		<pubDate>Thu, 05 Dec 2019 05:54:14 +0000</pubDate>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Certbot]]></category>
		<category><![CDATA[Let's Encrypt SSL Certificate]]></category>
		<category><![CDATA[Let's Encrypt wildcard certificate]]></category>
		<category><![CDATA[SSL Certificate]]></category>
		<category><![CDATA[wildcard certificate]]></category>
		<guid isPermaLink="false">https://blog.goreinnamah.com/?p=4243</guid>

					<description><![CDATA[<p>Beberapa hari yang lalu, saat mengakses salah satu blog milik saya, tiba-tiba saja muncul tulisan di halaman utama yang berbunyi,[...]</p>
<p>The post <a href="https://blog.goreinnamah.com/blog/2019/12/05/lets-encrypt-free-ssl-wildcard/">Instalasi Sertifikat Let’s Encrypt Free SSL Wildcard pada Ubuntu 16/18</a> first appeared on <a href="https://blog.goreinnamah.com">GoBlog</a>.</p>]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">Beberapa hari yang lalu, saat mengakses salah satu blog milik saya, tiba-tiba saja muncul tulisan di halaman utama yang berbunyi, &#8220;<em>Your connection is not Private. Attackers might be trying to steal your information from xxx.com (for example, passwords, messages, or credit cards) &#8230;..</em>&#8220;, dengan gambar segitiga merah bertanda seru di dalamnya.</p>
<p style="text-align: justify;">Setelah saya periksa, ternyata hal tersebut terjadi karena sertifikat SSL milik saya sudah kadaluarsa, sehingga Google melabeli blog saya tersebut sebagai situs yang tidak aman dan akan memperingatkan setiap orang yang akan mengaksesnya untuk berhati-hati.</p>
<figure id="attachment_4260" aria-describedby="caption-attachment-4260" style="width: 683px" class="wp-caption aligncenter"><img fetchpriority="high" decoding="async" class="size-full wp-image-4260" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/1-cert-expired.jpg" alt="" width="683" height="595" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/1-cert-expired.jpg 683w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/1-cert-expired-300x261.jpg 300w" sizes="(max-width: 683px) 100vw, 683px" /><figcaption id="caption-attachment-4260" class="wp-caption-text">Sertifikat sudah kadaluarsa</figcaption></figure>
<figure id="attachment_4261" aria-describedby="caption-attachment-4261" style="width: 445px" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-4261" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/2-kadaluarsa.png" alt="" width="445" height="379" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/2-kadaluarsa.png 445w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/2-kadaluarsa-300x256.png 300w" sizes="(max-width: 445px) 100vw, 445px" /><figcaption id="caption-attachment-4261" class="wp-caption-text">kadaluarsa</figcaption></figure>
<p style="text-align: justify;">Sejak tahun 2017, Google memang sudah melakukan hal tersebut. Mereka melabeli sebuah website yang hanya menggunakan HTTP untuk melakukan transaksi seperti meminta password atau memasukkan nomor kartu kredit sebagai web yang tidak aman.</p>
<p style="text-align: justify;">Guna membuat blog saya menjadi &#8220;aman&#8221; kembali, maka saya harus memperbarui sertifikat SSL milik blog saya. Dan kali ini pilihan jatuh kepada <strong>Let&#8217;s Encrypt Free SSL</strong> sebagai solusinya. Untuk yang belum tahu apa itu Let&#8217;s Encrypt, itu merupakan sebuah <strong>Open CA (Certification Authority)</strong> yang menjalankan layanannya untuk manfaat publik. Let&#8217;s Encrypt ini merupakan sebuah proyek yang dijalankan oleh <strong><a href="https://www.abetterinternet.org/about/">Internet Security Research Group (ISRG)</a>.</strong></p>
<ul>
<li><strong><em>Bca Juga: <a href="https://blog.goreinnamah.com/blog/2018/02/21/menerbitkan-sertifikat-ssl/">Cara Menerbitkan Sertifika SSL untuk Server melalui EJBCA</a></em></strong></li>
</ul>
<p style="text-align: justify;">Alasan terkuat saya menggunakan SSL dari Let&#8217;s Encrypt adalah karena GRATIS. Alasan kedua, Let&#8217;s Encrypt sudah mendukung <strong>Wildcard Certificate </strong>dengan menggunakan protokol ACME2, jadi sekali menerbitkan sertifikat (misal: untuk *.domain.kamu), saya bisa menggunakannya untuk semua subdomain yang saya miliki (misal: test.domain.kamu).</p>
<p style="text-align: justify;">Dan berikut ini adalah tutorial untuk men-generate <em>Wildcard Certificate</em> dari Let&#8217;s Encrypt yang bisa saya bagikan untuk kalian, usai saya sukses memasangnya pada server milik saya</p>
<h3 style="text-align: justify;"><strong>Alat dan Bahan</strong></h3>
<ul style="text-align: justify;">
<li>Ubuntu Server</li>
<li>Koneksi Internet</li>
<li>Akses ke CPanel dari domain kalian</li>
</ul>
<h3 style="text-align: justify;"><strong>Tahapan</strong></h3>
<ol>
<li><em>Install</em> Certbot. Karena Certbot belum tersedia dalam repositori milik Ubuntu, maka kita perlu menambahkannya terlebih dahulu melalui terminal. Caranya:
<pre class="fw fx fy fz ga gb gc gd"><span id="db69" class="ge gf dc bk gg b dy gh gi r gj" data-selectable-paragraph="">sudo add-apt-repository ppa:certbot/certbot</span></pre>
<p><figure id="attachment_4263" aria-describedby="caption-attachment-4263" style="width: 605px" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-4263" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/3-repo.png" alt="" width="605" height="209" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/3-repo.png 605w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/3-repo-300x104.png 300w" sizes="(max-width: 605px) 100vw, 605px" /><figcaption id="caption-attachment-4263" class="wp-caption-text">Menambahkan repositori untuk certbot</figcaption></figure></li>
<li>Setelah repositori berhasil ditambahkan, sekarang <em>update </em>paket-paket yang ada di Ubuntu. Caranya:
<pre class="fw fx fy fz ga gb gc gd"><span id="c5a3" class="ge gf dc bk gg b dy gh gi r gj" data-selectable-paragraph="">sudo apt update</span></pre>
<p><figure id="attachment_4265" aria-describedby="caption-attachment-4265" style="width: 601px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-4265" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/2-update-package.png" alt="" width="601" height="311" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/2-update-package.png 601w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/2-update-package-300x155.png 300w" sizes="auto, (max-width: 601px) 100vw, 601px" /><figcaption id="caption-attachment-4265" class="wp-caption-text">apt update</figcaption></figure></li>
<li>Setelah di-<em>update</em>, jalankan perintah berikut untuk memasang Certbot:
<pre class="fw fx fy fz ga gb gc gd"><span id="6f8e" class="ge gf dc bk gg b dy gh gi r gj" data-selectable-paragraph="">sudo apt install certbot</span></pre>
<figure id="attachment_4267" aria-describedby="caption-attachment-4267" style="width: 1103px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-4267" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/3-certbot-installed.png" alt="" width="1103" height="600" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/3-certbot-installed.png 1103w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/3-certbot-installed-300x163.png 300w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/3-certbot-installed-1024x557.png 1024w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/3-certbot-installed-768x418.png 768w" sizes="auto, (max-width: 1103px) 100vw, 1103px" /><figcaption id="caption-attachment-4267" class="wp-caption-text">installing certbot</figcaption></figure>
<p>*Pastikan kalian menggunakan certbot versi 0.22 atau di atasnya. Sebab versi certbot sebelum 0.22 tidak mendukung <em>Wildcard Certificate</em>.</li>
<li>Certbot sudah terpasang, sekarang waktunya untukmen-<em>generate</em> sertifikatnya. Caranya:
<pre>sudo certbot certonly --manual -d <strong><span style="color: #ff0000;">*.domain.kamu</span></strong> -d <span style="color: #ff0000;"><strong>domain.kamu</strong></span> --agree-tos --no-bootstrap --manual-public-ip-logging-ok --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory</pre>
<p>Silakan ganti domain.kamu dengan alamat domain yang kalian miliki. Dalam contoh di atas, kita akan membuat sertifikat baik untuk <strong>*.domain.kamu</strong> dan<strong> domain.kamu</strong></li>
<li>Setelah menjalankan perintah di atas, kalian akan mendapatkan keluaran seperti berikut:
<pre>01 --server https://acme-v02.api.letsencrypt.org/directory
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator manual, Installer None
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): <span style="color: #ff0000;"><strong>email.kamu@gmail.com</strong></span>
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Starting new HTTPS connection (1): supporters.eff.org
Obtaining a new certificate
Performing the following challenges:
dns-01 challenge for <span style="color: #ff0000;"><strong>domain.kamu</strong></span>
dns-01 challenge for <span style="color: #ff0000;"><strong>domain.kamu</strong></span></pre>
<p>Pada keterangan di atas, kalian diminta untuk memasukkan alamat email dan  kemudian certbot akan memberikan <em>challenge </em>kepada domain kalian.</li>
<li><em>Challenge </em>yang diberikan adalah seperti berikut:
<pre>- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT record under the name
<span style="color: #ff0000;"><strong>_acme-challenge.domain.kamu</strong></span> with the following value:

<strong><span style="color: #ff0000;">TKP7RYKPlALs-j6rfFtu-MLhUdkbjQ5sntpY_zL6odg</span></strong>

Before continuing, verify the record is deployed.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue</pre>
<p>&nbsp;</p>
<figure id="attachment_4269" aria-describedby="caption-attachment-4269" style="width: 500px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-4269" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/9-challenge.png" alt="" width="500" height="131" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/9-challenge.png 500w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/9-challenge-300x79.png 300w" sizes="auto, (max-width: 500px) 100vw, 500px" /><figcaption id="caption-attachment-4269" class="wp-caption-text">challenge yang diberikan</figcaption></figure>
<p>Pada tahap ini, kalian harus membuat sebuah DNS Text Record dengan nama <strong>_acme-challenge</strong> yang berisi karakter acak yang ada di atas. Kalian harus menunggu beberapa menit sebelum DNS Record tersebut terpropagasi.</li>
<li> Bila gagal, kalian akan mendapatkan keluaran seperti berikut:
<pre>Press Enter to Continue
Waiting for verification...
Resetting dropped connection: acme-v02.api.letsencrypt.org
Cleaning up challenges
Failed authorization procedure. domain.kamu (dns-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Incorrect TXT record "TKP7RYKPlALs-j6rfFtu-MLhUdkbjQ5sntpY_zL6odg" found at _acme-challenge.domain.kamu

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: domain.kamu
   Type:   unauthorized
   Detail: Incorrect TXT record
   "TKP7RYKPlALs-j6rfFtu-MLhUdkbjQ5sntpY_zL6odg" found at
   _acme-challenge.domain.kamu

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A/AAAA record(s) for that domain
   contain(s) the right IP address.
 - Your account credentials have been saved in your Certbot
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Certbot so
   making regular backups of this folder is ideal.</pre>
<figure id="attachment_4270" aria-describedby="caption-attachment-4270" style="width: 564px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-4270" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/10-gagal.png" alt="" width="564" height="327" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/10-gagal.png 564w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/10-gagal-300x174.png 300w" sizes="auto, (max-width: 564px) 100vw, 564px" /><figcaption id="caption-attachment-4270" class="wp-caption-text">verifikasi gagal</figcaption></figure>
<p>Kegagalan ini kemungkinan terjadi karena DNS Record tersebut belum terpropagasi, tapi kalian sudah menekan tombol <em>continue </em>atau juga bisa disebabkan IP dari domain yang kalian masukkan tidak ditemukan. Kalau sudah gagal seperti ini, silakan ulangi kembali prosesnya dari awal.</li>
<li>Sedangkan yang berhasil, keluarannya adalah seperti berikut:
<pre>Press Enter to Continue
Waiting for verification...
Cleaning up challenges

IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/domain.kamu/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/domain.kamu/privkey.pem
Your cert will expire on 2020-03-03. To obtain a new or tweaked
version of this certificate in the future, simply run certbot
again. To non-interactively renew *all* of your certificates, run
"certbot renew"
- If you like Certbot, please consider supporting our work by:

Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le</pre>
<p><figure id="attachment_4271" aria-describedby="caption-attachment-4271" style="width: 496px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-4271" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/11-sukses.png" alt="" width="496" height="343" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/11-sukses.png 496w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/11-sukses-300x207.png 300w" sizes="auto, (max-width: 496px) 100vw, 496px" /><figcaption id="caption-attachment-4271" class="wp-caption-text">verifikasi berhasil dan sertifikat berhasil digenerate</figcaption></figure></li>
<li>Selamat, sertifikat tersebut telah berhasil digenerate. Sekarang kalian bisa menggunakan <em>Wildcard Certificate i</em>tu untuk semua subdomain dari domain yang kalian punya.</li>
<li>Sekarang kalian bisa mengkonfigurasi secara manual <em>path </em>sertifikat tersebut ke dalam Webserver kalian. Seperti ini contohnya:
<pre>&lt;VirtualHost *:80&gt;
ServerAdmin webmaster@domain.kamu
DocumentRoot /var/www/domainkamu/public_html

serverName test.domain.kamu

Redirect permanent / https://test.domain.kamu/
&lt;/VirtualHost&gt;

&lt;VirtualHost _default_:443&gt;
ServerAdmin webmaster@domain.kamu
DocumentRoot /var/www/domainkamu/public_html

serverName test.domain.kamu


SSLEngine On

ErrorLog ${APACHE_LOG_DIR}/domainkamu_ssl-error.log
CustomLog ${APACHE_LOG_DIR}/domainkamu_ssl-access.log combined


SSLCertificateFile /etc/letsencrypt/live/domain.kamu/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain.kamu/privkey.pem


&lt;FilesMatch "\.(cgi|shtml|phtml|php)$"&gt;
SSLOptions +StdEnvVars
&lt;/FilesMatch&gt;
&lt;Directory /usr/lib/cgi-bin&gt;
SSLOptions +StdEnvVars
&lt;/Directory&gt;

&lt;Directory /var/www/domainkamu/public_html/&gt;
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
&lt;/Directory&gt;
&lt;/VirtualHost&gt;</pre>
</li>
<li>Untuk mengujicoba konfigurasi di atas, jalankan perintah berikut:
<pre class="fw fx fy fz ga gb gc gd"><span id="3317" class="ge gf dc bk gg b dy gh gi r gj" data-selectable-paragraph="">sudo apache2ctl configtest</span></pre>
</li>
<li>Jika hasilnya sudah sukses, silakan <em>restart service apahce </em>dengan perintah:
<pre class="fw fx fy fz ga gb gc gd"><span id="3317" class="ge gf dc bk gg b dy gh gi r gj" data-selectable-paragraph="">sudo service apache2 restart</span></pre>
<p><figure id="attachment_4272" aria-describedby="caption-attachment-4272" style="width: 537px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-4272" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/16-ins.png" alt="" width="537" height="411" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/16-ins.png 537w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/16-ins-300x230.png 300w" sizes="auto, (max-width: 537px) 100vw, 537px" /><figcaption id="caption-attachment-4272" class="wp-caption-text">configtest dan restart apache</figcaption></figure></li>
<li>Sekarang akses kembali <em>website </em>kalian dan sertifikat kini sudah diperbarui. Tidak ada lagi peringatan dari Google
<p><figure id="attachment_4277" aria-describedby="caption-attachment-4277" style="width: 485px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-4277" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/berhasil-diperbarui.png" alt="" width="485" height="412" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/berhasil-diperbarui.png 485w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/berhasil-diperbarui-300x255.png 300w" sizes="auto, (max-width: 485px) 100vw, 485px" /><figcaption id="caption-attachment-4277" class="wp-caption-text">Sertifikat berhasil diperbarui</figcaption></figure></li>
</ol>
<h3><strong>Catatan</strong></h3>
<ul>
<li style="text-align: justify;">Masa aktif sertifikat keluaran dari Let&#8217;s Encrypt adalah 3 bulan.</li>
<li>Untuk memperbarui semua sertifikat kalian, jalankan perintah <strong>&#8220;certbot renew&#8221;.</strong></li>
<li>Untuk memverifikasi apakah DNS Record kalian sudah aktif, kalian bisa memasukkan URL berikut di <em>browser </em>kalian:
<pre>sslforfree.com/create?dns_txt_verify=_acme-challenge.domain.kamu</pre>
<p><figure id="attachment_4276" aria-describedby="caption-attachment-4276" style="width: 1129px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-4276" src="https://blog.goreinnamah.com/wp-content/uploads/2019/12/15-menguji.png" alt="" width="1129" height="179" srcset="https://blog.goreinnamah.com/wp-content/uploads/2019/12/15-menguji.png 1129w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/15-menguji-300x48.png 300w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/15-menguji-1024x162.png 1024w, https://blog.goreinnamah.com/wp-content/uploads/2019/12/15-menguji-768x122.png 768w" sizes="auto, (max-width: 1129px) 100vw, 1129px" /><figcaption id="caption-attachment-4276" class="wp-caption-text">Verifikasi DNS Record</figcaption></figure></li>
</ul><p>The post <a href="https://blog.goreinnamah.com/blog/2019/12/05/lets-encrypt-free-ssl-wildcard/">Instalasi Sertifikat Let’s Encrypt Free SSL Wildcard pada Ubuntu 16/18</a> first appeared on <a href="https://blog.goreinnamah.com">GoBlog</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Object Caching 0/161 objects using Memcached
Page Caching using Disk: Enhanced 
Database Caching using Memcached (Request-wide modification query)

Served from: blog.goreinnamah.com @ 2026-10-07 08:53:41 by W3 Total Cache
-->