The POST /environments/{environmentId}/keys operation creates a new key resource for the specified environment. It creates a key from an upload of an unencrypted PKSCS12 file. Properties returned in the response are parsed from the uploaded file.

The PKSCS12 file must be unencrypted. For example, if you create the PKCS12 using openssl pkcs12 -export -out keyStore.p12 -inkey myPrivateKey.pem -in myCertificate.crt, do not enter an export password.

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.

The response returns a 202 Accepted message and shows the certificate data parsed from the uploaded certificate file.