30107: Domain private certificate has not been uploaded
MESSAGING
ERROR
Twilio returns this error when your Link Shortening domain is configured to serve shortened HTTPS links, but the certificate management step is not complete for that domain. If you use Bring Your Own Certificate, Twilio must have the domain's TLS certificate and private key before it can process shortened links over HTTPS.
- You selected Bring Your Own Certificate for the Link Shortening domain, but you did not upload a TLS certificate and private key.
- The certificate upload step for the domain was not completed in the Console or through the Link Shortening Certificate subresource.
- The domain is associated with your Twilio Organization, but certificate management for that Organization-level domain was never finished.
- Open the Link Shortening domain configuration in the Console and complete certificate management for the domain. If you use Bring Your Own Certificate, upload both the TLS certificate and the private key.
- If you use the API, send a
POSTrequest to the Link Shortening domain's Certificate subresource and provide the certificate and private key together in theTlsCertparameter. - Make sure the certificate and key are in PEM format, that the certificate matches the domain or subdomain you use for Link Shortening, and that you include the full certificate chain.
- Verify that the private key uses a supported format and includes the expected header and footer lines, such as
-----BEGIN PRIVATE KEY-----and-----END PRIVATE KEY-----. - Wait up to five minutes for certificate validation to complete, then confirm the certificate status before retrying your shortened message request.
- If you do not want to manage certificates yourself, switch the domain to a Twilio-managed certificate, which is the preferred option for Link Shortening.