# 30120:  Domain certificate and private key are not uploaded

Log Type: APPLICATION

Log Level: ERROR

## Description

Twilio returns this when a Link Shortening domain has not had its TLS certificate and private key uploaded yet. Upload the certificate material before you use the domain for link shortening.

### Possible causes

* You haven't uploaded a TLS certificate/private key pair for the Link Shortening domain.
* You haven't completed the certificate upload step for the domain, so Twilio can't validate it yet.

### Possible solutions

* Upload the TLS certificate and private key in Console under Upload certificate, then click Upload. Make sure the certificate starts with `-----BEGIN CERTIFICATE-----` and the private key starts with `-----BEGIN PRIVATE KEY-----`.
* If you use the API, `POST` the concatenated certificate and private key to the domain's Certificate subresource in `TlsCert`.
* Wait for validation to complete before retrying. Certificate validation can take up to five minutes, and Twilio returns a pending `cert_in_validation.status` while validation is in progress.

#### Additional resources

* [Link Shortening onboarding guide](/docs/messaging/features/link-shortening/onboarding-guide)
* [Debugging Your Twilio Application](/docs/usage/troubleshooting/debugging-your-application)
