On This Page
Generate Certificate and Key Pair
Generate Certificate and Key Pair
Run the following command, but replace
RequestKey
with your request key and replace
YourOrg
with your account organization
ID:openssl req -x509 -newkey rsa:2048 -keyout request_private.pem -out request_certificate.pem -days 365 -nodes -subj "/CN=RequestKey/O=YourOrg/C=US" && cat request_certificate.pem | grep -v "BEGIN CERTIFICATE" | grep -v "END CERTIFICATE" | tr -d '\n' && echo
Result
- A 2048-bit RSA key pair is generated.
- A self-signed X.509 certificate valid for 365 days is created.
- The private key inrequest_private.pemis stored.
- The certificate inrequest_certificate.pemis stored.
- The certificate content is output as a single line, without headers.
- Separate keys for each organization ID or account that uses message-level encryption are created.