A worked example, rendered from real sample data. Sign in to run the tool on your own input.
cn=example.com
c=US
st=California
l=San Francisco
o=Example Corp
ou=Engineering
days=365
keysize=2048TLS Self-Signed Certificate Generated
═════════════════════════════════════
Subject:
Common Name (CN): example.com
Organization (O): Example Corp
Org Unit (OU): Engineering
Locality (L): San Francisco
State (ST): California
Country (C): US
Configuration:
Validity Days: 365
Key Size: 2048 bits
Algorithm: RSA
Signature: SHA256withRSA
Certificate (PEM):
-----BEGIN CERTIFICATE-----
MIIDazCCAlOgAwIBAgIUKbQDSNVN8+4kL8FJ3E7FvA4EBP0wDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCVVMxETAPBgNVBAgMCENhbGlmb3JuaWExEjAQBgNVBAcM
-----END CERTIFICATE-----
Private Key (PEM):
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAulXlUBvtakShajtUBYSpAz0DSi6xNVe0PEbylmUB8QtqkVuz
sEfYFUCoVS9k+zvHy/WfWEHSTIxI72FTahx+XU+wehs3mNGczeGKh/E+yauRNEai
-----END RSA PRIVATE KEY-----
Use: openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout key.pem -out cert.pem
Generate self-signed TLS certificates with custom CN, validity, and key size configuration. Part of the DevTools Surf developer suite. Browse more tools in the Security / Crypto collection.