Question

API returning wrong public certificate?

Posted September 20, 2021 152 views
APIDatabases

Using Digital Ocean’s API, I’ve created database cluster ‘B’ from the restore point of database 'A’, but have not been able to connect due to a self-signed certificate error.

I have pulled the certificate from the endpoint: https://api.digitalocean.com/v2/databases/{database B id}/ca

If I manually download the certificate from the dashboard, everything works, btw.

The endpoint appears to be returning the wrong certificate, because when I pull the certificate from database A, they are the same.

Comparing certificates downloaded from the dashboard confirms that they are different.

Is this the expected behaviour? How do I get the correct certificate for database B?

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!