<?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>trustore.jks - GoBlog</title>
	<atom:link href="https://blog.goreinnamah.com/blog/tag/trustore-jks/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.goreinnamah.com</link>
	<description>LOG ALL LOGS</description>
	<lastBuildDate>Fri, 21 Jul 2017 13:13:04 +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>trustore.jks - GoBlog</title>
	<link>https://blog.goreinnamah.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Pemeriksaan Keystore pasca Instalasi EJBCA 6.2.0</title>
		<link>https://blog.goreinnamah.com/blog/2017/01/31/memeriksa-keystore-pasca-instalasi-ejbca/</link>
		
		<dc:creator><![CDATA[Darius Go Reinnamah]]></dc:creator>
		<pubDate>Tue, 31 Jan 2017 06:32:55 +0000</pubDate>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[ejbca]]></category>
		<category><![CDATA[ejbca 6.2.0]]></category>
		<category><![CDATA[jboss]]></category>
		<category><![CDATA[jboss as final 7.1.1]]></category>
		<category><![CDATA[Keystore]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[standalone.xml]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[tomcat.jks]]></category>
		<category><![CDATA[trustore]]></category>
		<category><![CDATA[trustore.jks]]></category>
		<category><![CDATA[validasi]]></category>
		<guid isPermaLink="false">http://blog.goreinnamah.com/?p=282</guid>

					<description><![CDATA[<p>Terlepas dari apakah kita mendapat masalah saat menciptakan keystore-keystore tersebut, memeriksa isi dari keystore merupakan hal yang cukup penting untuk[...]</p>
<p>The post <a href="https://blog.goreinnamah.com/blog/2017/01/31/memeriksa-keystore-pasca-instalasi-ejbca/">Pemeriksaan Keystore pasca Instalasi EJBCA 6.2.0</a> first appeared on <a href="https://blog.goreinnamah.com">GoBlog</a>.</p>]]></description>
										<content:encoded><![CDATA[<p style="text-align: justify;">Terlepas dari apakah kita mendapat masalah saat menciptakan keystore-keystore tersebut, memeriksa isi dari keystore merupakan hal yang cukup penting untuk dilakukan sebelum melanjutkan ke proses selanjutnya. Hal tersebut bukan hanya untuk memeriksa apakah isinya benar namun juga password yang terkait file-file tersebut itu sama seperti yang kita harapkan. Kita akan memeriksa keystore yang berada baik di EJBCA atau copy-an yang ada di jboss. Caranya:</p>
<pre><strong>cd /opt/ejbca/p12</strong>
<strong> keytool -list -v -keystore tomcat.jks</strong>
<strong> keytool -list -v -keystore truststore.jks</strong>
 

<strong>cd /opt/jboss/standalone/configuration/keystore</strong>
<strong> keytool -list -v -keystore keystore.jks</strong>
<strong> keytool -list -v -keystore truststore.jks
</strong></pre>
<p style="text-align: justify;">Sekali lagi, isi dari <strong>tomcat.jks</strong> atau <strong>keystore.jks</strong> haruslah:</p>
<ul style="text-align: justify;">
<li>sertifikat Root CA yang digunakan untuk mengidentifikasi Management CA (Root CA pribadi).</li>
<li>sertifikat TLS dari server kita, yang akan dikeluarkan untuk FQDN dari server kita.</li>
<li>copy tambahan dari rantai sertifikat (Certificate Chain) Management CA ke sertifikat TLS sebagai Signing Authority.</li>
</ul>
<p style="text-align: justify;">Kunci terkait perintah <strong>keytool</strong>: ketika kita menjalankan perintah di atas, kita mungkin menyadari kalau kunci-kunci tersebut akan sukses terdaftar dengan tanpa menggunakan password (tidak disarankan). Ketika keystore tersebut tidak memiliki password maka kalian akan melihat tulisan seperti ini pada keluaran perintah <strong>keytool</strong>:</p>
<p style="text-align: justify;"><strong>*****************  WARNING WARNING WARNING  *****************</strong><br />
<strong>* The integrity of the information stored in your keystore  *</strong><br />
<strong>* has NOT been verified!  In order to verify its integrity, *</strong><br />
<strong>* you must provide your keystore password.                  *</strong><br />
<strong>*****************  WARNING WARNING WARNING  *****************</strong></p>
<p style="text-align: justify;">Jika jboss tidak bisa memvalidasi keystore yang ada dengan password yang tersimpan di <strong>standalone.xml</strong> saat memulai servicenya, service akan berjalan namun akan gagal untuk menjalankan <strong>ejbca.ear</strong> dan pesan yang akan keluar dalam console log atau <strong>nohup.out</strong> (<a href="http://blog.goreinnamah.com/blog/2017/01/27/instalasi-ejbca-6-2-0-pada-jboss-7-1-1-dan-ubuntu-16-04/"><strong>silahkan baca postingan berikut soal nohup.out</strong></a>) adalah:</p>
<p style="text-align: justify;"><strong>20:45:43,566 ERROR [org.apache.tomcat.util.net.jsse.JSSESocketFactory] (MSC service thread 1-4) Failed to load keystore type JKS with path /opt/jboss/standalone/configuration/keystore/keystore.jks due to Keystore was tampered with, or password was incorrect: java.io.IOException: Keystore was tampered with, or password was incorrect</strong></p>
<p style="text-align: justify;">kembali kepada keystore yang coba kita buka, hasil keluaran dari perintah tersebut (dengan password yang benar) akan terlihat seperti berikut:</p>
<figure id="attachment_288" aria-describedby="caption-attachment-288" style="width: 768px" class="wp-caption aligncenter"><img fetchpriority="high" decoding="async" class="size-full wp-image-288" src="http://blog.goreinnamah.com/wp-content/uploads/2017/01/1-tomcat-cert1.png" alt="" width="768" height="800" srcset="https://blog.goreinnamah.com/wp-content/uploads/2017/01/1-tomcat-cert1.png 768w, https://blog.goreinnamah.com/wp-content/uploads/2017/01/1-tomcat-cert1-288x300.png 288w" sizes="(max-width: 768px) 100vw, 768px" /><figcaption id="caption-attachment-288" class="wp-caption-text">keystore.jks 1</figcaption></figure>
<figure id="attachment_289" aria-describedby="caption-attachment-289" style="width: 553px" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-289" src="http://blog.goreinnamah.com/wp-content/uploads/2017/01/2-tomcat-cert2.png" alt="" width="553" height="1000" srcset="https://blog.goreinnamah.com/wp-content/uploads/2017/01/2-tomcat-cert2.png 553w, https://blog.goreinnamah.com/wp-content/uploads/2017/01/2-tomcat-cert2-166x300.png 166w" sizes="(max-width: 553px) 100vw, 553px" /><figcaption id="caption-attachment-289" class="wp-caption-text">Keystore.jks 2</figcaption></figure>
<p style="text-align: justify;">Sedangkan file <strong>trustore.jks</strong> berisi kunci-kunci dari semua otoritas yang dipercaya oleh <strong>jboss</strong>, dimana isinya hanya 1 yaitu <strong>management CA (Root CA)</strong>:</p>
<figure id="attachment_290" aria-describedby="caption-attachment-290" style="width: 1022px" class="wp-caption aligncenter"><img decoding="async" class="size-full wp-image-290" src="http://blog.goreinnamah.com/wp-content/uploads/2017/01/6-trustore.png" alt="" width="1022" height="669" srcset="https://blog.goreinnamah.com/wp-content/uploads/2017/01/6-trustore.png 1022w, https://blog.goreinnamah.com/wp-content/uploads/2017/01/6-trustore-300x196.png 300w, https://blog.goreinnamah.com/wp-content/uploads/2017/01/6-trustore-768x503.png 768w" sizes="(max-width: 1022px) 100vw, 1022px" /><figcaption id="caption-attachment-290" class="wp-caption-text">trustore.jks</figcaption></figure>
<p style="text-align: justify;">Bilamana kita salah memasukkan password untuk keystore tersebut maka warning yang muncul kurang lebih seperti berikut:</p>
<figure id="attachment_291" aria-describedby="caption-attachment-291" style="width: 876px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="size-full wp-image-291" src="http://blog.goreinnamah.com/wp-content/uploads/2017/01/7-failed.png" alt="" width="876" height="271" srcset="https://blog.goreinnamah.com/wp-content/uploads/2017/01/7-failed.png 876w, https://blog.goreinnamah.com/wp-content/uploads/2017/01/7-failed-300x93.png 300w, https://blog.goreinnamah.com/wp-content/uploads/2017/01/7-failed-768x238.png 768w" sizes="auto, (max-width: 876px) 100vw, 876px" /><figcaption id="caption-attachment-291" class="wp-caption-text">Akibat dari salah memasukkan password keystore</figcaption></figure>
<h2 style="text-align: justify;"><a href="http://ejbcacentos.blogspot.co.id/2014/04/how-to-install-ejbca-611-on-centos-65.html"><strong>Source: EJBCACENTOS</strong></a></h2><p>The post <a href="https://blog.goreinnamah.com/blog/2017/01/31/memeriksa-keystore-pasca-instalasi-ejbca/">Pemeriksaan Keystore pasca Instalasi EJBCA 6.2.0</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/158 objects using Memcached
Page Caching using Disk: Enhanced 
Database Caching using Memcached (Request-wide modification query)

Served from: blog.goreinnamah.com @ 2026-09-03 02:07:23 by W3 Total Cache
-->