Custom domain with Cloudflare

Hi there,

I’m trying to setup the custom domain by adding the CNAME provided to my Cloudflare DNS settings. However, I keep getting the error about SSL handshare failed. I tried adding an origin cert and key from Cloudflare to apidog but the issue seems to persist.

What is the format of your SSL certificate and key? Could you please provide additional screenshots for the custom domain settings?

If you are configuring DNS in Cloudflare’s control panel, please ensure that Cloudflare’s proxying (the orange cloud, also called “Proxy status” in your domain settings) is disabled.

Hello, I have the same issue: I have declared CNAME where hostmane is myapi.mydomain.com and redirecting to xxx.apidog.io, as suggested by apidog. My provider or hosting platform is DigitalOcean,
My understanding is that In that case, Apidog, as the remote service provider, must install the SSL certificate on his domain apidog.io to allow https://myapi.mydomain.com.

Is this a correct assemblent ? If not, what is the correct configuration to get https working with the custom domain ?

Thanks for your help to a newbie witn apidog (which I really love!).

At present, you need to apply for or purchase an SSL certificate yourself, and then fill in the content of the certificate here. We will support the automatic generation of SSL certificates in the future, which will eliminate the above step. This feature is currently under development, and we will release it as soon as possible.


OK thank you. Should I configure on my side and add this new cert on the myapi.mydomain.com apache virtual host ? Or I just get the cert and key, fill the content on apidog app and wait apidog to apply the cert on his server ? Sorry if my questions are a little silly …

If you use CNAME, you only need to fill in the cert and key into Apidog.

It just worked :slightly_smiling_face: Thank you for your help.

I am also facing issues with custom domain.

I’ve followed advice & instructions to set up CNAME (using AWS Route53 as DNS) and getting green check marks. However, when I go to the documentation link (mydocs.mydomain.com) my browser shows the following error:

This site can’t provide a secure connection mydocs.mydomain.com uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH


image.png

image.png

When you enable HTTPS, you should fill in with the right SSL certificate and certificate key in Apidog. Can you confirm it?

I believe I have done this. My certificate came from AWS Certificates Manager which issues a certificate of type CNAME. I copied the CNAME name & value into the “certificate” and “certificate key” respectively in Apidog.

Could you please tell us your domain name so we can check it?

developer.app.alphaiq.ai

It should be an incorrect SSL Certificate and SSL Private Key you set. SSL Certificate is the String started with “-----BEGIN CERTIFICATE-----” with length about 2000.

and the private key is a string with a length about 4000

Ok, thanks

Hi, we have released the feature of automatically generating SSL certificates in version 2.5.23, and you can upgrade and try it.


Hi, I trying to Generate a SSL certificate with Apidog but it gives me the ‘Certificate error’.
When I click the link I get the following: DNS_PROBE_FINISHED_NXDOMAIN

Please check the following:

  1. Is the domain expired?
  2. Is the CNAME configuration correct?

Hi Evans,

  1. No the domain name is not expired.
  2. Yes, CNAME - Custom domain is ‘Effective’