by
0
5
2,687
0
Top 1% !
Famous
Tagged
Specified
MultiPlatform
Popularity: 6433rd place

Published on:

Architecturex86_64
LanguageBatch

Transform a JKS keystore in a PEM certificate

This set of commands transform the certificate from a JKS to a PEM format. It requires JDK keytool and openssl.
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/1171641/Transform-a-JKS-keystore-in-a-PEM-certif?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
keytool -keystore client.ts -exportcert -alias mobile | openssl x509 -inform der -text #psw of keystore: changeit keytool -importkeystore -srckeystore client.ts -destkeystore client.p12 -srcstoretype jks -deststoretype pkcs12 #psw of destination keystore: changeit openssl pkcs12 -in client.p12 -out client.pem #import psw: changeit
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus