Import a cert to WSO2 key store

Fathima Dilhasha
‘How to’ Guides by Dilhasha
1 min readOct 28, 2016

I will tell the story using github.com as example.

You can use the following command to import the cert to keystore. (you can change the highlighted parts depending on the website)

keytool -importcert -alias githubCert -keystore client-truststore.jks -storepass wso2carbon -file <path-to-cert>/github.com.crt

Don’t know how to download a cert from a secured website?

  • Visit github.com and click on the “lock” as shown.
  • Click on secure connection and proceed to see more details. You will see the following window. Choose to “view certificate” as shown.
  • Then import the cert to your file system by clicking details on the next window.

:) Enjoy!

--

--