Settings

Who the certificate is for

A web server’s passphrase has to be typed every time it starts, so most server keys are left without one and protected by who can read the file instead.

How it works

CSR makes an ECDSA or RSA key pair with WebCrypto and a PKCS #10 certificate signing request carrying your host names as subject alternative names, ready to paste into a certificate authority. It can also make a self-signed X.509 certificate for testing. The private key comes out as PKCS #8, encrypted with your passphrase if you give one.

What is in it

The key is made by the browser’s own cryptography and does not leave this tab. The request is PKCS #10, signed with that key, and carries the host names as subject alternative names, which is where browsers and certificate authorities look for them; the common name is added to them if it is a host name and you left it out. The private key is PKCS #8 PEM, and with a passphrase it is encrypted with PBKDF2 and AES-256, which OpenSSL, nginx and Apache read.

A self-signed certificate is for a test server or a device on your own network. Browsers will warn about it, as they should, because nobody vouches for it but itself. To look inside a certificate or a request, CERTLENS takes it apart.

Questions people ask about CSR

What is a CSR?

A certificate signing request: your public key, the names the certificate is for, and a signature made with the matching private key, which proves the request came from whoever holds it. You paste it into the certificate authority, and it sends back a certificate. The private key never goes to the authority.

Why put the host name in the alternative names too?

Browsers have ignored the common name since 2017 and look only at the subject alternative names, so a certificate whose host name is only in the common name is refused. The page adds the common name to the alternative names if you did not, and lists every name the certificate will cover.

ECDSA or RSA?

ECDSA P-256 is smaller and faster and every current browser and authority accepts it. Use RSA 2048 or 3072 where an older system or an authority’s form asks for RSA.

Should the private key have a passphrase?

For a key that is kept or moved around, yes. A web server has to be given the passphrase every time it starts, so server keys are usually left without one and protected by who can read the file: chmod 600, readable by the server’s own account only.

What is a self-signed certificate for?

A test server, a device on your own network, or a development machine. Nobody vouches for it but itself, so browsers warn about it until you trust it on each device. For a public website use a certificate authority; many, such as Let’s Encrypt, are free.

Doing this often? The OBSCURA Sovereign Suite keeps a certificate inventory: every certificate with its expiry and key, soonest to expire first. On its own, US$2 a month; with everything else, US$5 a month or US$48 a year.