The POST /environments/{environmentId}/keys operation creates a new environment key resource for the specified environment.

For the subjectDN attribute, a valid DN must contain commonName, organization, organizationUnit, city, state, and country (CN=commonName, O=organization, OU=organizationUnit, C=country, ST=state, L=city).

Instead of posting the key attributes in the request body, this operation also supports the application/x-pkcs12-certificates media type to upload a pkcs12 file.