Posts Tagged ‘TLS’
Requirement : Create JKS keystore and truststore out of certificate and private key files given in pem format.
Try to open the certificate and key files and it contains ASCII text that starts with —–BEGIN CERTIFICATE—–, then it is in PEM format.
Using keytool in java, when a keystore is created it already has the private key [...]
Filed under: Uncategorized | Leave a Comment
Tags: TLS
When urgently you need some keystores and truststores to test out some security related java code this is a useful bat file to have. Copy the code below and create a bat file. run it and you got your stuff.
keytool -genkey -alias serverkeys -keyalg RSA -keystore server.k
eystore -storepass 123456 -keypass 123456 -dname “CN=localhost, OU=MYOU, O=MYORG, [...]
Filed under: TLS | 1 Comment
Tags: certificates, java, keystore, keytool, security, TLS