I want to use custom domain for my API proxy instead of using "MYORG-test.apigee.net" However, I got "no alternative certificate" error. Can you please help me to solve it.
// It works $ curl https://MYORG-test.apigee.net/items // It does not work $ curl https://a.mydomain.com/items
I found the documentation. https://docs-new.apigee.com/custom-domain and I followed it.
(1) Add TLS Keystores on Admin > Environment > TLS Keystores Tab
(2) Add CNAME on my domain registration.
(3) Check DNS by using dig.
$ dig a.mydomain.com ;; ANSWER SECTION: a.mydomain.com.119 IN CNAME MYORG-test.apigee.net.
(4) Check by curl
$ curl https://a.mydomain.com/items curl: (51) SSL: no alternative certificate subject name matches target host name 'a.mydomain.com'
Hello @zono, Looks like you followed the documentation for the Developer Portal and not for the Edge API Services. You will need to update the virtual host configuration for the org-env you are trying to customize by reaching out to Apigee support as VH configuration in SaaS is a restricted resource.
Here is correct documentation for you are trying to achieve -- https://docs.apigee.com/api-platform/fundamentals/virtual-hosts#aboutvirtualhostdefinitions-aboutvir...