This article provides steps, when you have JKS and want to import the key, cert for setting up Keystores in Apigee
Step1: Convert JKS to pkcs12
you can do this using keytool
<JAVA_HOME>/bin/keytool -importkeystore -srckeystore <jksfile> -srcalias <keyalias> -srcstorepass <jks_filepassword> -srckeypass <jks_keypassword> -srcstoretype jks -destkeystore <p12_keystorename> -deststorepass <password> -destkeypass <key_password> -deststoretype pkcs12
>There are 2 passwords - one for the jks file and one for the key in the jks.
> Use the same values for <password> and <key_password>
Step 2: Extract Key and Cert
you can do this using openssl
openssl pkcs12 -in <p12_keystorename> -nocerts -nodes -out privateKey.pem openssl pkcs12 -in <p21_keystorename> -nokeys -out publicCert.pem