Skip to content

Add missing NGINXaaS certificate error descriptions and resolutions #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -319,3 +319,33 @@ The following section describes common errors you might encounter while adding S
az keyvault certificate set-attributes --enabled true --id $certificate_id
```
</details>

#### Error code: `NoCertificateContent`

**Description:** No certificate was found when parsing the file.

**Resolution:** Ensure the file is not empty and contains properly formatted PEM or PKCS12 certificate data.

#### Error code: `MissingContentType`

**Description:** The retrieved secret is missing the *contentType* field.

**Resolution:** When creating an [Azure certificate](https://learn.microsoft.com/en-us/azure/key-vault/certificates/about-certificates) in key vault, the *contentType* field will be properly set to either *application/x-pem-file* or *application/x-pkcs12*. If a certificate is added as a generic [Azure secret](https://learn.microsoft.com/en-us/azure/key-vault/secrets/about-secrets) the *contentType* field must be manually set to help with interpreting the secret data when it is retrieved. We recommend creating a certificate object, instead of a secret object containing certificate data, to ensure proprer formatting and *contentType*.

#### Error code: `UnrecognizedContentType`

**Description:** The retrieved secret's content type, as interpreted from the *contentType* field, is of an unsupported type.

**Resolution:** When creating an [Azure certificate](https://learn.microsoft.com/en-us/azure/key-vault/certificates/about-certificates) in key vault, the *contentType* field will be properly set to either *application/x-pem-file* or *application/x-pkcs12*. NGINXaaS does not support other content types added as generic [Azure secrets](https://learn.microsoft.com/en-us/azure/key-vault/secrets/about-secrets). Ensure the provided certificate is either a PEM or PKCS12 [Azure certificate](https://learn.microsoft.com/en-us/azure/key-vault/certificates/about-certificates).

#### Error code: `PKCS12ParseFailure`

**Description:** The PKCS12 certificate could not be parsed.

**Resolution:** Ensure the file is not empty and contains properly formatted PKCS12 certificate data.

#### Error code: `PEMParseFailure`

**Description:** The PEM certificate could not be parsed.

**Resolution:** Ensure the file is not empty and contains properly formatted PEM certificate data.
Loading