@Anil Sagar Here our need is to create mutual TLS in Apigee Edge. We need a new virtual host with our own certificates to be created in prod environment for making this TLS communication. We have an internal CA which is not a external verified CA. We have created a Keystore in Apigee and uploaded Private Key and Certificate (signed by our root CA private key) in Apigee Edge Keystore. Since our CA is not a verified CA, we have also created a Truststore and uploaded the root CA cert in the Truststore.
Now while creating virtual host using the keystore and truststore, it is giving the following error:
“message”:“Virtual host creation/update failed due to keystore cert validation error. Cert is invalid or cannot be not be trusted by java trust anchors or CAs”****,
“contexts”:[]
}
We have tried both the options - one with API call and other from Edge portal for creating keystores/truststores. With API we uploaded certificate JAR file and from portal we uploaded the private key and certificate separately. But getting the same error in both cases. Any help on this topic from Apigee SME would be highly appreciated.
Thanks for your response. I have verified the cert chain using openssl command you suggested, and its shows ‘OK’, so I believe my cert chain is fine. Is there any restriction of creating VHOST? Do I need to contact Apigee support for creating new VHOST?
"You can only create a virtual host that supports TLS over HTTPS. You must have already created a keystore, and optionally a truststore, containing your TLS cert and key.
You must have a cert signed by a trusted entity, such as Symantec or VeriSign. You cannot use a self-signed cert."