FILTER BY TAG

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 in
    request_private.pem
    is stored.
  • The certificate in
    request_certificate.pem
    is 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.