Post on 13-Oct-2015
description
5/24/2018 Step by Step Tutorial to Create Keystore
1/13
Install Java Certificate SSL Java Tutorial Java File
1 keytool -genkeypair -alias certificatekey -keyalg RSA -validity 7-keystorekeystore.jks
http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-9299486439709072&output=html&h=15&slotname=4967748211&w=728&lmt=1369377289&flash=11.7.700&url=http%3A%2F%2Fwww.techbrainwave.com%2F%3Fp%3D953&dt=1369359289456&bpp=14&bdt=332&shv=r20130516&cbv=r20130206&saldr=sa&correlator=1369359289771&frm=20&adk=1681385851&ga_vid=1476977548.1369359290&ga_sid=1369359290&ga_hid=2126722097&ga_fc=0&u_tz=-300&u_his=4&u_java=1&u_h=768&u_w=1366&u_ah=768&u_aw=1304&u_cd=32&u_nplug=11&u_nmime=57&dff=verdana&dfs=12&adx=464&ady=256&biw=1287&bih=707&eid=86860100&oid=3&ref=https%3A%2F%2Fwww.google.com%2F&fu=0&ifi=1&dtd=412&xpc=hsgdvN40xs&p=http%3A//www.techbrainwave.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=15&width=728&format=fp_al_lp&kw_type=radlink&prev_fmts=728x15_0ads_al&rt=ChBRnsO-AAlDBwowY9Q2AATAEglKYXZhIEZpbGUaCMwmPqWg2xW6IMuZmsYCKAFIy5maxgJSEwj-5cTyzK23AhVDazAKHTEXADg&hl=en&kw0=Install+Java&kw1=Certificate+SSL&kw2=Java+Tutorial&kw3=Java+File&okw=Java+Filehttp://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-9299486439709072&output=html&h=15&slotname=4967748211&w=728&lmt=1369377289&flash=11.7.700&url=http%3A%2F%2Fwww.techbrainwave.com%2F%3Fp%3D953&dt=1369359289456&bpp=14&bdt=332&shv=r20130516&cbv=r20130206&saldr=sa&correlator=1369359289771&frm=20&adk=1681385851&ga_vid=1476977548.1369359290&ga_sid=1369359290&ga_hid=2126722097&ga_fc=0&u_tz=-300&u_his=4&u_java=1&u_h=768&u_w=1366&u_ah=768&u_aw=1304&u_cd=32&u_nplug=11&u_nmime=57&dff=verdana&dfs=12&adx=464&ady=256&biw=1287&bih=707&eid=86860100&oid=3&ref=https%3A%2F%2Fwww.google.com%2F&fu=0&ifi=1&dtd=412&xpc=hsgdvN40xs&p=http%3A//www.techbrainwave.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=15&width=728&format=fp_al_lp&kw_type=radlink&prev_fmts=728x15_0ads_al&rt=ChBRnsO-AAlDAwowY9Q2AATAEg1KYXZhIFR1dG9yaWFsGgjQyxDaxwLy_CDLmZrGAigBSMuZmsYCUhMI_uXE8syttwIVQ2swCh0xFwA4&hl=en&kw0=Install+Java&kw1=Certificate+SSL&kw2=Java+Tutorial&kw3=Java+File&okw=Java+Tutorialhttp://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-9299486439709072&output=html&h=15&slotname=4967748211&w=728&lmt=1369377289&flash=11.7.700&url=http%3A%2F%2Fwww.techbrainwave.com%2F%3Fp%3D953&dt=1369359289456&bpp=14&bdt=332&shv=r20130516&cbv=r20130206&saldr=sa&correlator=1369359289771&frm=20&adk=1681385851&ga_vid=1476977548.1369359290&ga_sid=1369359290&ga_hid=2126722097&ga_fc=0&u_tz=-300&u_his=4&u_java=1&u_h=768&u_w=1366&u_ah=768&u_aw=1304&u_cd=32&u_nplug=11&u_nmime=57&dff=verdana&dfs=12&adx=464&ady=256&biw=1287&bih=707&eid=86860100&oid=3&ref=https%3A%2F%2Fwww.google.com%2F&fu=0&ifi=1&dtd=412&xpc=hsgdvN40xs&p=http%3A//www.techbrainwave.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=15&width=728&format=fp_al_lp&kw_type=radlink&prev_fmts=728x15_0ads_al&rt=ChBRnsO-AAlC_wowY9Q2AATAEg9DZXJ0aWZpY2F0ZSBTU0waCGlZIklgE1-ZIMuZmsYCKAFIy5maxgJSEwj-5cTyzK23AhVDazAKHTEXADg&hl=en&kw0=Install+Java&kw1=Certificate+SSL&kw2=Java+Tutorial&kw3=Java+File&okw=Certificate+SSLhttp://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-9299486439709072&output=html&h=15&slotname=4967748211&w=728&lmt=1369377289&flash=11.7.700&url=http%3A%2F%2Fwww.techbrainwave.com%2F%3Fp%3D953&dt=1369359289456&bpp=14&bdt=332&shv=r20130516&cbv=r20130206&saldr=sa&correlator=1369359289771&frm=20&adk=1681385851&ga_vid=1476977548.1369359290&ga_sid=1369359290&ga_hid=2126722097&ga_fc=0&u_tz=-300&u_his=4&u_java=1&u_h=768&u_w=1366&u_ah=768&u_aw=1304&u_cd=32&u_nplug=11&u_nmime=57&dff=verdana&dfs=12&adx=464&ady=256&biw=1287&bih=707&eid=86860100&oid=3&ref=https%3A%2F%2Fwww.google.com%2F&fu=0&ifi=1&dtd=412&xpc=hsgdvN40xs&p=http%3A//www.techbrainwave.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=15&width=728&format=fp_al_lp&kw_type=radlink&prev_fmts=728x15_0ads_al&rt=ChBRnsO-AAlC8wowY9Q2AATAEgxJbnN0YWxsIEphdmEaCDGwAfSL4kycIMuZmsYCKAFIy5maxgJSEwj-5cTyzK23AhVDazAKHTEXADg&hl=en&kw0=Install+Java&kw1=Certificate+SSL&kw2=Java+Tutorial&kw3=Java+File&okw=Install+Javahttp://www.google.com/url?ct=abg&q=https://www.google.com/adsense/support/bin/request.py%3Fcontact%3Dabg_afc%26url%3Dhttp://www.techbrainwave.com/%253Fp%253D953%26gl%3DMX%26hl%3Den%26client%3Dca-pub-9299486439709072&usg=AFQjCNF4YDyghTh2_2q9afMBepFEhgpFiA5/24/2018 Step by Step Tutorial to Create Keystore
2/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
Next we should verify the newly created key store file.
Step 2 Verifiy the newly created keystore file
In Step2, Let us verify the newly created keystore.jks file using the following command,
After excuting the above command, you will get the details as specified in the image below,
Next we should export the certificate.
1 keytool -list -v -keystore keystore.jks
http://www.techbrainwave.com/wp-content/uploads/2010/12/verifykeystore.jpghttp://www.techbrainwave.com/wp-content/uploads/2010/12/keytool.jpg5/24/2018 Step by Step Tutorial to Create Keystore
3/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
Step 3 Export the certificate
In step3, Either a self signed certificate or a commercial certificate from Verisign or other certificate authority should be exported.
exporting verisign certificates, the article Steps to configure Verisign certificate for Oracle Glassfish Serverwould be helpful. In this
article, Let us see how to export a self signed certificate.
BEGIN CERTIFICATE
MIICXjCCAccCBDwircEwDQYJKoZIhvcNAQEEBQAwdjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNB
MRIwEAYDVQQHEwlQYWxvIEFsdG8xHzAdBgNVBAoTFlN1biBNaWNyb3N5c3RlbXMsIEluYy4xFjAU
BgNVBAsTDUphdmEgU29mdHdhcmUxDTALBgNVBAMTBER1a2UwHhcNMDExMjIxMDMzNDI1WhcNMDEx
MjI4MDMzNDI1WjB2MQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExEjAQBgNVBAcTCVBhbG8gQWx0
bzEfMB0GA1UEChMWU3VuIE1pY3Jvc3lzdGVtcywgSW5jLjEWMBQGA1UECxMNSmF2YSBTb2Z0d2Fy
ZTENMAsGA1UEAxMERHVrZTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA1loObJzNXsi5aSr8
N4XzDksD6GjTHFeqG9DUFXKEOQetfYXvA8F9uWtz8WInrqskLTNzwXgmNeWkoM7mrPpK6Rf5M3G1
NXtYzvxyi473Gh1h9k7tjJvqSVKO7E1oFkQYeUPYifxmjbSMVirWZgvo2UmA1c76oNK+NhoHJ4qj
eCUCAwEAATANBgkqhkiG9w0BAQQFAAOBgQCRPoQYw9rWWvfLPQuPXowvFmuebsTc28qI7iFWm6BJ
TT/qdmzti7B5MHOt9BeVEft3mMeBU0CS2guaBjDpGlf+zsK/UUi1w9C4mnwGDZzqY/NKKWtLxabZ5M+4MAKLZ92ePPKGpobM2CPLfM8ap4IgAzCbBKd8+CMp8yFmifze9Q==
END CERTIFICATE
The preceding self signed certificate should be stored in a file named selfsignedcert.cer and then execute the following command,
After executing the above command, you will be asked for the password, Give the same password techbrainwave and you will get
details as specified in the image below,
Next we should import the certificate in to the truststore file.
Step 4 Import the certificate in to the truststore file
In step4, Let us import the certificate by executing the below command,
After executing the preceding command, Give the same password techbrainwave and you will get the details as specified in the im
below,
Metamucil: Ejerciciosmetamucil.com.mx
Acceda y conozca los ejercicios para una vida ms saludable!
1 keytool -export -alias certificatekey -keystore keystore.jks -rfc -fileselfsignedcert.cer
1 keytool -import -alias certificatekey -file selfsignedcert.cer \2 -keystore truststore.jks
http://www.google.com/url?ct=abg&q=https://www.google.com/adsense/support/bin/request.py%3Fcontact%3Dabg_afc%26url%3Dhttp://www.techbrainwave.com/%253Fp%253D953%26gl%3DMX%26hl%3Den%26client%3Dca-pub-9299486439709072%26ai0%3DCYdoHvsOeUe3bHOT_wQHYiIDwCsnT16sDwdOi2UfAjbcBEAEg2IqyCVDLiL2RAWDl4_OEgBbIAQGoAwHIA9MEqgR0T9DvmbwkbGnXkLRQMi3ls21yBRcaS58Uemg8mHN2szL4xEGuIna8JHuagJSsLkliFmjKkjlaixWtOq_sATu6qFkcLH-vOGjk5P52RdoaUADDtkkxxSaJ_STQHLR95q1QNtnDuYhP3IYEHt5RF9yWgYIlkMGAB5mztCI&usg=AFQjCNG89FP7Mfd5fk-C9AuFEi0szr11uAhttp://googleads.g.doubleclick.net/aclk?sa=L&ai=CYdoHvsOeUe3bHOT_wQHYiIDwCsnT16sDwdOi2UfAjbcBEAEg2IqyCVDLiL2RAWDl4_OEgBbIAQGoAwHIA9MEqgR0T9DvmbwkbGnXkLRQMi3ls21yBRcaS58Uemg8mHN2szL4xEGuIna8JHuagJSsLkliFmjKkjlaixWtOq_sATu6qFkcLH-vOGjk5P52RdoaUADDtkkxxSaJ_STQHLR95q1QNtnDuYhP3IYEHt5RF9yWgYIlkMGAB5mztCI&num=1&sig=AOD64_2tMt-Ef3mfN6SmCEdjuoS3CBScBA&client=ca-pub-9299486439709072&adurl=http://metamucil.com.mx/tipos.php%23hombres&nm=11http://www.techbrainwave.com/wp-content/uploads/2010/12/exportcert.jpghttp://www.techbrainwave.com/?p=5055/24/2018 Step by Step Tutorial to Create Keystore
4/13
SSL Certification Java Me Brain Wave Certificate Java
http://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-9299486439709072&output=html&h=15&slotname=4967748211&w=728&lmt=1369377290&flash=11.7.700&url=http%3A%2F%2Fwww.techbrainwave.com%2F%3Fp%3D953&dt=1369359289518&bpp=11&bdt=394&shv=r20130516&cbv=r20130206&saldr=sa&prev_slotnames=4967748211%2C6010954697&correlator=1369359289771&frm=20&adk=1681385851&ga_vid=1476977548.1369359290&ga_sid=1369359290&ga_hid=2126722097&ga_fc=0&u_tz=-300&u_his=4&u_java=1&u_h=768&u_w=1366&u_ah=768&u_aw=1304&u_cd=32&u_nplug=11&u_nmime=57&dff=verdana&dfs=12&adx=464&ady=4299&biw=1287&bih=707&eid=86860100&oid=3&ref=https%3A%2F%2Fwww.google.com%2F&fu=0&ifi=3&dtd=674&xpc=mnAoKIGXFX&p=http%3A//www.techbrainwave.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=15&width=728&format=fp_al_lp&kw_type=radlink&prev_fmts=728x15_0ads_al&rt=ChBRnsO-AArtDQowf7FGAEsMEhBDZXJ0aWZpY2F0ZSBKYXZhGgi9vPGUSelniiDLmZrGAigBMAJIy5maxgJSEwjy99DyzK23AhURXTAKHaF7AMA&hl=en&kw0=SSL+Certification&kw1=Java+Me&kw2=Brain+Wave&kw3=Certificate+Java&okw=Certificate+Javahttp://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-9299486439709072&output=html&h=15&slotname=4967748211&w=728&lmt=1369377290&flash=11.7.700&url=http%3A%2F%2Fwww.techbrainwave.com%2F%3Fp%3D953&dt=1369359289518&bpp=11&bdt=394&shv=r20130516&cbv=r20130206&saldr=sa&prev_slotnames=4967748211%2C6010954697&correlator=1369359289771&frm=20&adk=1681385851&ga_vid=1476977548.1369359290&ga_sid=1369359290&ga_hid=2126722097&ga_fc=0&u_tz=-300&u_his=4&u_java=1&u_h=768&u_w=1366&u_ah=768&u_aw=1304&u_cd=32&u_nplug=11&u_nmime=57&dff=verdana&dfs=12&adx=464&ady=4299&biw=1287&bih=707&eid=86860100&oid=3&ref=https%3A%2F%2Fwww.google.com%2F&fu=0&ifi=3&dtd=674&xpc=mnAoKIGXFX&p=http%3A//www.techbrainwave.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=15&width=728&format=fp_al_lp&kw_type=radlink&prev_fmts=728x15_0ads_al&rt=ChBRnsO-AArtCQowf7FGAEsMEgpCcmFpbiBXYXZlGgghjbGSvnhqWCDLmZrGAigBMAJIy5maxgJSEwjy99DyzK23AhURXTAKHaF7AMA&hl=en&kw0=SSL+Certification&kw1=Java+Me&kw2=Brain+Wave&kw3=Certificate+Java&okw=Brain+Wavehttp://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-9299486439709072&output=html&h=15&slotname=4967748211&w=728&lmt=1369377290&flash=11.7.700&url=http%3A%2F%2Fwww.techbrainwave.com%2F%3Fp%3D953&dt=1369359289518&bpp=11&bdt=394&shv=r20130516&cbv=r20130206&saldr=sa&prev_slotnames=4967748211%2C6010954697&correlator=1369359289771&frm=20&adk=1681385851&ga_vid=1476977548.1369359290&ga_sid=1369359290&ga_hid=2126722097&ga_fc=0&u_tz=-300&u_his=4&u_java=1&u_h=768&u_w=1366&u_ah=768&u_aw=1304&u_cd=32&u_nplug=11&u_nmime=57&dff=verdana&dfs=12&adx=464&ady=4299&biw=1287&bih=707&eid=86860100&oid=3&ref=https%3A%2F%2Fwww.google.com%2F&fu=0&ifi=3&dtd=674&xpc=mnAoKIGXFX&p=http%3A//www.techbrainwave.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=15&width=728&format=fp_al_lp&kw_type=radlink&prev_fmts=728x15_0ads_al&rt=ChBRnsO-AArtAwowf7FGAEsMEgdKYXZhIE1lGghyulCMqyjI-iDLmZrGAigBMAJIy5maxgJSEwjy99DyzK23AhURXTAKHaF7AMA&hl=en&kw0=SSL+Certification&kw1=Java+Me&kw2=Brain+Wave&kw3=Certificate+Java&okw=Java+Mehttp://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-9299486439709072&output=html&h=15&slotname=4967748211&w=728&lmt=1369377290&flash=11.7.700&url=http%3A%2F%2Fwww.techbrainwave.com%2F%3Fp%3D953&dt=1369359289518&bpp=11&bdt=394&shv=r20130516&cbv=r20130206&saldr=sa&prev_slotnames=4967748211%2C6010954697&correlator=1369359289771&frm=20&adk=1681385851&ga_vid=1476977548.1369359290&ga_sid=1369359290&ga_hid=2126722097&ga_fc=0&u_tz=-300&u_his=4&u_java=1&u_h=768&u_w=1366&u_ah=768&u_aw=1304&u_cd=32&u_nplug=11&u_nmime=57&dff=verdana&dfs=12&adx=464&ady=4299&biw=1287&bih=707&eid=86860100&oid=3&ref=https%3A%2F%2Fwww.google.com%2F&fu=0&ifi=3&dtd=674&xpc=mnAoKIGXFX&p=http%3A//www.techbrainwave.com&rl_rc=true&adsense_enabled=true&ad_type=text_image&oe=utf8&height=15&width=728&format=fp_al_lp&kw_type=radlink&prev_fmts=728x15_0ads_al&rt=ChBRnsO-AArs8wowf7FGAEsMEhFTU0wgQ2VydGlmaWNhdGlvbhoI1wjp1e5XllAgy5maxgIoATACSMuZmsYCUhMI8vfQ8syttwIVEV0wCh2hewDA&hl=en&kw0=SSL+Certification&kw1=Java+Me&kw2=Brain+Wave&kw3=Certificate+Java&okw=SSL+Certificationhttp://www.google.com/url?ct=abg&q=https://www.google.com/adsense/support/bin/request.py%3Fcontact%3Dabg_afc%26url%3Dhttp://www.techbrainwave.com/%253Fp%253D953%26gl%3DMX%26hl%3Den%26client%3Dca-pub-9299486439709072&usg=AFQjCNF4YDyghTh2_2q9afMBepFEhgpFiA5/24/2018 Step by Step Tutorial to Create Keystore
5/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
1. Apache Mina SSL Configuration | Tech Brainwavesays:
December 13, 2010 at 11:01 pm
[...] Truststore file. The Creation of these two files has been explained in the article Step by step tutorial to create Keystore
and Truststore file . The factory classes used in the SSLContextGenerator class [...]
Well-loved. Like or Dislike: 46 2
2. bojansays:
April 18, 2011 at 9:10 pm
hello, can i use keystore and truststore created by this tuturial for mutual certificate security on glassfish web server? i tried sett
web service and web service client using self-signed certificate,and i get Validation of self signed certificate failed error.
Well-loved. Like or Dislike: 14 2
[Reply]
3. tactothsays:
June 9, 2011 at 2:13 pm
I would see this is a very useful article, very intuitive and informative. It really helps me much on understanding certificates,
private/public keys, etc.
Well-loved. Like or Dislike: 9 2
[Reply]
4. timssays:
June 17, 2011 at 9:58 pm
It is not clear to me when the truststore file is created.
2 1
[Reply]
giftsamReply:June 18th, 2011 at 6:57 pm
In step4, the truststore file is created. The truststore file contains only public keys.
Well-loved. Like or Dislike: 6 0
[Reply]
5. Deepak Ku Patelsays:
June 28, 2011 at 5:00 pm
Its very good & clearly mention the right steps.
Thanks
http://www.techbrainwave.com/?p=953&cpage=1#comment-1229http://idd.com/http://void%280%29/http://www.techbrainwave.com/http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1226http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1225http://tactoth.weebly.com/http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1212http://www.techbrainwave.com/?p=953&cpage=1#comment-707http://www.techbrainwave.com/?p=9735/24/2018 Step by Step Tutorial to Create Keystore
6/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
2 0
[Reply]
6. Rishu Aggarwalsays:
July 26, 2011 at 1:46 pm
Nice work techbrainwave !! very handful info..
2 0
[Reply]
7. Resources about PKI infrastructure + SSL/TLS, standards, tools(keytool, openssl) | Tsetso's Stuffsays:
July 27, 2011 at 9:29 pm
[...] 6.1) Generating a KeyStore and TrustStore (Oracle documentation) > (link) 6.2) JKS and JCEKS keystores > (
JCEKS keystore (Oracle documentation) > (link) 6.3) Creating a key and trust store with JSSE in Java( client and server)
(link) 6.4) keystore vs. truststore (victor-jans blog) > (link) 6.5) Step by step tutorial to create Keystore and Truststore file
(techbrainwaves website) > (link) [...]
0 0
8. Adam Maugersays:
August 31, 2011 at 9:59 am
The preceding self signed certificate should be stored in a file named selfsignedcert.cer and then execute the following
command,
keytool -export -alias certificatekey -keystore
keystore.jks -rfc -file selfsignedcert.cer
Er, selfsignedcert.cer is just overwritten.
1 0
[Reply]
9. sureshkumar Chinnarajsays:
September 16, 2011 at 5:47 pm
This tutorial explains very well about signing jar files thanks a lot!!!
0 1
[Reply]
10. Narendrasays:
September 20, 2011 at 8:25 pm
Can I copy this file somewhere else and use it ?
0 0
[Reply]
http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1260http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1257http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1254http://www.techbrainwave.com/?p=953&cpage=1#comment-1241http://tsvetanv.wordpress.com/2011/07/27/pki-keytool-openssl/http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1240http://void%280%29/5/24/2018 Step by Step Tutorial to Create Keystore
7/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
giftsamReply:September 21st, 2011 at 2:55 pm
Narendra, Which file you want to copy?
0 0
[Reply]
11. Ramsays:
September 22, 2011 at 7:30 pm
Really useful information on keystore and truststore with simple explaination
2 0
[Reply]
12. Ronsays:October 24, 2011 at 11:33 am
Thanks for the great tutorial.. I want to use the certificate and truststore in my client server application.
How can I use it. I am using JSSE.
Just wondering how to use generated certificate and truststore in my application.
Thanks
0 1
[Reply]
13. Nurlansays:
December 5, 2011 at 2:37 pm
I need a keytool command which imports an existing private key(.pem) into the keystore.jks.
I tried
keytool -import -trustcacerts -file mypem.pem -alias CA_ALIAS -keystore keystore.jks
but it gave me the following error
keytool error: java.lang.Exception: Input not an X.509 certificate
Can anybody help??
Thanks in advance.
Nurlan
2 0
[Reply]
MadhurimaReply:May 21st, 2012 at 6:39 pm
http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1290http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1275http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1266http://void%280%29/http://www.techbrainwave.com/5/24/2018 Step by Step Tutorial to Create Keystore
8/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
Hi All,
I am also facing the same issue ,please help me.
Thanks,
Madhurima
0 0
[Reply]
J BrunReply:February 19th, 2013 at 3:30 am
There is NO keytool command that does this Nurlan. You will have to use another tool or script to convert everything into one
keystore file.
You can create a keystore file (with your private key) and a truststore file (with your public cert), as described above and
configure your tomcat or java application to use both files.
0 0
[Reply]
14. Jassays:
December 8, 2011 at 2:37 pm
step by step explanation helped me a lot in understanding certificate generation and keystore generation. Great Tutorial
Well-loved. Like or Dislike: 5 0
[Reply]
15. ammysays:
December 16, 2011 at 7:52 am
wonderful!!! thanks for such a detail article.
1 0
[Reply]
16. Eknathsays:
January 31, 2012 at 10:04 pm
Nice Tutorial.. Helped me a lot. and saved time.
Thanks a Ton !!!!!!!!!!!!
1 0
[Reply]
17. Naidusays:
http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1309http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1295http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1292http://void%280%29/http://void%280%29/5/24/2018 Step by Step Tutorial to Create Keystore
9/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
February 1, 2012 at 4:17 pm
How to create the private key and public key for a self signed certificate ?
0 0
[Reply]
18. ahmetsays:
March 6, 2012 at 9:43 pm
thank you very much.. perfect tutorial..
Well-loved. Like or Dislike: 4 0
[Reply]
19. ratishsays:
March 16, 2012 at 4:09 pm
awesome man
1 0
[Reply]
20. SSL Handshaking Using Self-Signed Certs and SSLEngine (JSSE) | PHP Developer Resourcesays:
May 23, 2012 at 6:23 pm
[...] The keystore and truststore referenced in the code snippit above were created using the following tutorial:
http://www.techbrainwave.com/?p=953[...]
0 0
21. john cenasays:
July 9, 2012 at 11:46 am
after creating truststore.jks what is the next step?
0 0
[Reply]
22. Pankajsays:September 27, 2012 at 1:20 pm
This tutorial explains very well creating keystore and trusstore.
very thanks..
0 0
[Reply]
23. Karthiksays:
http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1365http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1354http://www.techbrainwave.com/?p=953http://www.techbrainwave.com/?p=953&cpage=1#comment-1346http://www.dkphp.com/questions-2/ssl-handshaking-using-self-signed-certs-and-sslengine-jsse.htmlhttp://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1324http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1323http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-13105/24/2018 Step by Step Tutorial to Create Keystore
10/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
October 10, 2012 at 4:57 pm
This link was very useful. Thank you.
0 0
[Reply]
24. thirusays:
October 23, 2012 at 2:38 pm
good one. thanks.
0 0
[Reply]
25. maheshsays:
December 14, 2012 at 12:55 pm
wonderful and excellent
1 0
[Reply]
26. Trev Thorpesays:
December 18, 2012 at 12:56 am
Very useful link, cleared up an issue I was having.
Thanks,
Trev
1 0
[Reply]
27. Pritamsays:
January 21, 2013 at 9:02 pm
Gr8 information, helpful in implementation, and provide good guidace for development.
1 0
[Reply]
28. Lalitsays:
January 29, 2013 at 12:47 am
This is really great tutorial. Thanks buddy.
1 0
http://www.techbrainwave.com/?p=953&cpage=1#comment-1387http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1384http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1380http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1379http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1371http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-13705/24/2018 Step by Step Tutorial to Create Keystore
11/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
[Reply]
29. Sollysays:
February 12, 2013 at 7:12 pm
Before I read this article, I was clueless about Keystore and trustore files. Simple straight to the point article..thanks ma.
1 0
[Reply]
Name (required) Mail (required) Website
Submit
Notify me of follow-up comments via e-mail
Categories
Apache Mina
Application Server
Design PatternExcel
Facelets
Internet Explorer8
Java
Java EE
JDBC
JQuery
JSF
JSSE
Netbeans
http://www.techbrainwave.com/?cat=9http://www.techbrainwave.com/?cat=158http://www.techbrainwave.com/?cat=8http://www.techbrainwave.com/?cat=7http://www.techbrainwave.com/?cat=1http://www.techbrainwave.com/?cat=6http://www.techbrainwave.com/?cat=5http://www.techbrainwave.com/?cat=4http://www.techbrainwave.com/?cat=15http://www.techbrainwave.com/?cat=115http://www.techbrainwave.com/?cat=176http://www.techbrainwave.com/?cat=110http://www.techbrainwave.com/?cat=154http://www.addtoany.com/subscribe?linkname=Tech%20Brainwave&linkurl=http%3A%2F%2Fwww.techbrainwave.com%2F%3Ffeed%3Drss2http://void%280%29/http://www.techbrainwave.com/?p=953&cpage=1#comment-1392http://void%280%29/5/24/2018 Step by Step Tutorial to Create Keystore
12/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
Networking
Polls
Primefaces
Remoting
Richfaces
Seam
Servlets
Spring
Tomcat
Recent Posts
Java Factory Design Pattern
Tomcat Native Library (APR) Installation
Apache Mina SSL Configuration
Step by step tutorial to create Keystore and Truststore file
Apache Mina Simple client/Server Application
What web application test tool do you use?
Spring 3.0 AOP Advice
Tomcat Production Server Performance TuningJava based container configuration in Spring 3.0
Spring 3.0 + JPA 2.0 using plain API DAOs
Top Posts
Java code to Read an Excel file using POI
Step by step tutorial to create Keystore and Truststore file
Step by step tutorial to setup Primefaces in Netbeans
Java code to write to an Excel file using POI
Exception Handling in JSF
Recent Comments
Rita on Java code to Read an Excel file using POI
J Brun on Step by step tutorial to create Keystore and Truststore file
Ranjith g on Java code to Read an Excel file using POI
Ranjith on Java code to Read an Excel file using POI
Solly on Step by step tutorial to create Keystore and Truststore file
Archives
July 2011
http://www.techbrainwave.com/?m=201107http://www.techbrainwave.com/?p=953&cpage=1#comment-1392http://www.techbrainwave.com/?p=568&cpage=1#comment-1393http://www.techbrainwave.com/?p=568&cpage=1#comment-1394http://www.techbrainwave.com/?p=953&cpage=1#comment-1395http://www.techbrainwave.com/?p=568&cpage=1#comment-1396http://www.techbrainwave.com/?p=3http://www.techbrainwave.com/?p=554http://www.techbrainwave.com/?p=198http://www.techbrainwave.com/?p=953http://www.techbrainwave.com/?p=568http://www.techbrainwave.com/?p=725http://www.techbrainwave.com/?p=755http://www.techbrainwave.com/?p=836http://www.techbrainwave.com/?p=871http://www.techbrainwave.com/?p=877http://www.techbrainwave.com/?p=912http://www.techbrainwave.com/?p=953http://www.techbrainwave.com/?p=973http://www.techbrainwave.com/?p=1017http://www.techbrainwave.com/?p=1051http://www.techbrainwave.com/?cat=66http://www.techbrainwave.com/?cat=125http://www.techbrainwave.com/?cat=14http://www.techbrainwave.com/?cat=13http://www.techbrainwave.com/?cat=12http://www.techbrainwave.com/?cat=153http://www.techbrainwave.com/?cat=11http://www.techbrainwave.com/?cat=10http://www.techbrainwave.com/?cat=1555/24/2018 Step by Step Tutorial to Create Keystore
13/13
23/05/13 Step by step tutorial to create Keystore and Truststore file | Tech Brainwave
www.techbrainwave.com/?p=953
December 2010
November 2010
July 2010
June 2010
December 2009
November 2009
October 2009
September 2009
Meta
Log in
Entries RSS
Comments RSS
WordPress.org
Copyright 2013 Tech Brainwave- A Road Map for Innovative Technologies.
http://www.techbrainwave.com/http://wordpress.org/http://www.techbrainwave.com/?feed=comments-rss2http://www.techbrainwave.com/?feed=rss2http://www.techbrainwave.com/wp-login.phphttp://www.techbrainwave.com/?m=200909http://www.techbrainwave.com/?m=200910http://www.techbrainwave.com/?m=200911http://www.techbrainwave.com/?m=200912http://www.techbrainwave.com/?m=201006http://www.techbrainwave.com/?m=201007http://www.techbrainwave.com/?m=201011http://www.techbrainwave.com/?m=201012