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](https://MYORG-test.apigee.net/items)
// It does not work
$ curl [https://a.mydomain.com/items](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](https://a.mydomain.com/items)
curl: (51) SSL: no alternative certificate subject name matches target host name 'a.mydomain.com'