>
Import external certificate to keystore
Welcome, Guest

by Narendra on Friday, 28 August 2009
Import external certificate to keystore


While working with external API's using SSL verification with java applications we are required to add certificates to the keystore.

To create a keystore use command:

keytool -genkey -alias mydomain -keyalg RSA -keystore keystore.jks

And enter all the information required by the keystore.

:mydomain is the alias for the keystore domain
:RSA is the encryption algorithm

:keystore.jks is the name for java keystore

 

To import an external certificate use command:

keytool -import -trustcacerts -alias root -file Cert.crt -keystore keystore.jks

:root is the alias for the certificate.

:Cert.crt is the external certificate provided by vendor.

:keystore.jks is the name for java keystore


To run a program using certificates use command:

java -Djavax.net.ssl.trustStore=keystore.jks -Djavax.net.ssl.trustStorePassword=passwd ClassName

:keystore.jks is the name for java keystore

:passwd is the password for the keystore set in step1.

:ClassName is the name of the class you want to execute.

Hope it is useful

 



Blogger Image
My Blog Title

Product Engineering, software engineering company, Product Development, Product Migration, Product Re-engineering, Product Maintenance, Product Testing Commercial Application Development, Business Software development, commercial software for startups, Application Support and Maintenance, software testing Product Maintenance, Outsource product maintenance, product support and maintenance Product Migration, Product Re-engineering, product re-engineering services Product Research, Product Engineering, UI Prototyping Services Software Testing Services, Quality Assurance services, professional software testers, Load Testing, Functional Testing, Cross Platform, Browser Testing, Test Automation, Testing Tools, software quality analysis Functional Testing Services, software quality analysis, Software Testing Services, Application Testing Services, Functional Testing Types Automated Testing, Automated Testing Services, automation testing, test script development, Automation Test Tools, outsource automation testing Load Testing, Performance Testing Services, Load Testing Tools Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Benefits of IT Outsourcing, Offshore Software Development companies, offshore software development firms Outsource planning, IT outsourcing, IT development services, offshore IT companies, offshore software development Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering Offshore Software Development, Outsource software services, offshore outsourcing services, offshore software development services, IT outsourcing services, software quality assurance services, Offshore IT services, Custom Application Development Services, Offshore Product Engineering