JAVA EXAMPLE PROGRAMS

JAVA EXAMPLE PROGRAMS

Publish Your Article Here

How to merge two jssecacerts files? - Merge key store files


If your application is already configured with key store, and you are requested to add another domain to your key store, then you need to generate jssecacerts for your domain and merge it with existing jssecacerts file. In the previous example we have given details about how to generate key store (jssecacerts) for any domain.

Here is the command to merge two key stores:

						keytool -importkeystore -srckeystore jssecacerts_tmp -destkeystore jssecacerts
					

The above command requires key store password, by default the password is "changeit". It will prompt for merge confirmation many times. If you want to avoid prompting and merge without any confirmation, use below command which doesnot ask any confirmation:

						keytool -importkeystore -noprompt -srckeystore jssecacerts_tmp -destkeystore jssecacerts
					

blog comments powered by Disqus

Java problems and solutions

  1. Unable to install Java 7 in Eclipse on Mac - Java 7 Mac OS issues
  2. How to change Java (JVM) version in Mac OS? - Java version Mac OS issues
  3. SunCertPathBuilderException: Unable To Find Valid Certification Path To Requested Target
  4. How to merge two jssecacerts files? - Merge key store files
  5. How to write Micro-Benchmark for java Hotspot?
  6. servlet-api-2.5.jar - jar not loaded - tomcat error
  7. How to exclude property files in a jar using Maven
  8. ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
  9. CGLIB is required to process @Configuration classes
  10. Git command to list conflicted files
Knowledge Centre
String Vs StringBuffer
We know that String is immutable object. We can not change the value of a String object once it is initiated. If we try to change the value of the existing String object then it creates new object rather than changing the value of the existing object. So incase, we are going to do more modificatios on String, then use StringBuffer. StringBuffer updates the existing objects value, rather creating new object.
Famous Quotations
Good judgment comes from experience, and experience comes from bad judgment.
-- Barry LePatner

About Author

Most Visited Pages

Other Interesting Sites

Reference: Java™ Platform Standard Ed. 7 - API Specification | Java is registered trademark of Oracle.
Privacy Policy | Copyright © 2017 by Nataraja Gootooru. All Rights Reserved.