wiki:GeneratingKeystoreAndPemForESGF

Version 1 (modified by terryk, 7 years ago) (diff)

--

Retrieve keystore in JKS format

https://meteo.unican.es/svn/repos/meteo/software/RetrieveESGFCredentials/RetrieveESGFCredentials/

Using keystore in jKS in toolsUI

Keystore must be in JKS format

java -Dkeystore=.esg/keystore.ks -Dkeystorepassword=changeit -Dtruststore=.esg/esg-truststore.ts -Dtruststorepassword=changeit -jar toolsUI-4.3.jar

From Keystore in JKS to pem

From keystore in JKS to keystore in PKCS12

keytool -importkeystore -srckeystore keystore.ks  -destkeystore keystore.p12 -srcstoretype jks -deststoretype pkcs12

From keystore in PKCS12 to pem

openssl pkcs12 -in keystore.p12 -out keystore.pem