SSL certificate types and file formats
Validation levels
-
DV (Domain Validation)
Domain validation- What's checked
- Control of the domain only, for example through a file on the site or a DNS record
- Organization name in the certificate
- Not included
- Best for
- Most websites
The certificate authority only verifies that the requester controls the domain, so issuance is automated and usually takes a few minutes. Free certificates, such as Let's Encrypt certificates, are DV certificates. Encryption strength is the same at every validation level, and the only difference is the check before issuance.
-
OV (Organization Validation)
Organization validation- What's checked
- Control of the domain, plus the organization's identity and address
- Organization name in the certificate
- Included in the Subject field
- Best for
- Organizations that want their details to appear in the certificate
In addition to the domain check, the certificate authority verifies the organization's identity and address, and the organization name is included in the certificate. Browsers show an OV certificate the same way as a DV certificate, and you can see the organization name in the certificate details.
-
EV (Extended Validation)
Extended validation- What's checked
- The organization's legal existence, address, and operations, and the authority of the requesters
- Wildcard
- Not allowed in an EV certificate
- In the address bar
- No special indicator in current browsers
The strictest validation level. Under the CA/Browser Forum guidelines, the certificate authority verifies the organization's legal existence, address, and business operations, as well as the authority of the people who sign and approve the request. Browsers used to show the organization name in the address bar. Today they show an EV certificate like any other certificate, and you can see the organization details in the certificate details.
Names the certificate covers
-
Single-name certificate
Single Domain- Example
- shop.example.com
Covers one name only. A name with www and a name without www are two separate names, so to cover both example.com and www.example.com, you need a certificate that includes both names.
-
Multi-name certificate (SAN)
Multi-Domain- Example
- example.com, www.example.com, example.net
- Adding a name
- Requires issuing a new certificate
One certificate that includes several names in the Subject Alternative Name list, even from different domains. The browser checks the site name against this list, and under RFC 9525, the Common Name field isn't used to identify the site. Each name in the list is validated separately.
-
Wildcard certificate
*.example.com- Covers
- Every direct subdomain, for example www.example.com and shop.example.com
- Doesn't cover
- example.com itself or a.b.example.com
- Validation with Let's Encrypt
- DNS validation only
The asterisk appears only in the leftmost part of the name and replaces exactly one level. That's why you usually request a certificate with both names, example.com and *.example.com, and a deeper subdomain, such as a.b.example.com, needs another name in the certificate, for example *.b.example.com. All the servers that use a wildcard certificate hold the same private key, so if the key is exposed on one server, all the subdomains are affected.
Certificates for internal use
-
Self-signed certificate
Self-signed- Signed by
- The certificate's own private key
- In the browser
- A security warning, because no certificate authority vouches for it
A certificate signed with its own private key, without a certificate authority. Encryption works, but the browser can't verify the site's identity, so it shows a warning. Suitable for testing, development environments, and internal services, not for a public website.
-
Private certificate authority
Private CA- Trusted by
- Only devices with the organization's root certificate installed
- Best for
- Internal networks, VPNs, and server-to-server communication
The organization creates its own root certificate and uses it to sign certificates for internal servers and services. For devices to trust these certificates, you install the organization's root certificate on them. Internet visitors don't trust the internal root certificate, so it isn't suitable for a public website. Keep the root certificate's private key in a secure place, off the servers.
Key types
-
RSA 2048
Most common- Security level
- 112 bits according to NIST
- Compatibility
- Very broad, including older systems and software
The most common key type in certificates. The CA/Browser Forum requirements allow an RSA key of at least 2048 bits in a public certificate, with a length divisible by 8.
-
RSA 3072 and RSA 4096
- Security level
- RSA 3072: 128 bits according to NIST
- Drawback
- Slower signing and more data in every connection
A longer RSA key provides a bigger safety margin, but it increases the load on the server when connections are opened. Suitable when the organization's policy requires a long RSA key, or when RSA is required and you want a higher security level than RSA 2048.
-
ECDSA P-256
ECC- Security level
- 128 bits according to NIST, like RSA 3072
- Default
- In Certbot and acme.sh
A key based on elliptic curves (ECC), much smaller than an RSA key at a similar security level, so connections open faster and the server does less work. Supported by all current browsers, and suitable for most websites.
-
ECDSA P-384
ECC- Security level
- 192 bits according to NIST
- Allowed curves
- P-256, P-384, and P-521 in a public certificate
A longer ECC key, with a higher security level than P-256. Suitable when the organization's policy requires a higher security level, and it's still much smaller than an RSA key.
The certificate chain
-
Site certificate
Leaf- Sent by the server
- Yes, first in the chain
- Signed by
- An intermediate certificate of the certificate authority
The certificate issued for the site's names, with the server's public key. The Issuer field shows the name of the intermediate certificate that signed it.
-
Intermediate certificate
Intermediate- Sent by the server
- Yes, after the site certificate
- Other names
- CA bundle or chain
The certificate authority signs site certificates with an intermediate certificate, and the intermediate certificate is signed by the root certificate. The server needs to send the intermediate certificates after the site certificate. A missing intermediate certificate is a common problem after installing a certificate manually.
-
Root certificate
Root- Sent by the server
- Not needed
- Found in
- The certificate store of the browser and the operating system
The root certificate comes preinstalled in browsers and operating systems. The browser trusts the site certificate only when the chain leads to a root certificate in its store.
-
Fullchain file
fullchain.pem- Contains
- The site certificate followed by the intermediate certificates, in order
- Format
- PEM
One file that contains the entire chain the server sends, without the root certificate. Certbot and acme.sh create it as fullchain.pem, and Nginx expects such a file in its certificate setting. When you receive the certificate in separate files, combine them into one file with the cat command, as shown in the commands further down the page.
File formats
-
PEM
.pem .crt .cer- Encoding
- Base64 text between a BEGIN line and an END line
- Contains
- A certificate, chain, key, or CSR, one or more per file
- Common use
- Apache, Nginx, and most services on Linux servers
The most common format. The first line states what the file contains, for example BEGIN CERTIFICATE for a certificate, and you can combine several certificates in one file. The .crt and .pem extensions are only a convention, so identify the file type by its content.
-
Private key
.key- Header
- BEGIN PRIVATE KEY, or BEGIN ENCRYPTED PRIVATE KEY for a password-protected key
- Headers in the older format
- BEGIN RSA PRIVATE KEY or BEGIN EC PRIVATE KEY
The most sensitive file: anyone who holds it can impersonate the site. Keep it on the server with read permission for the owner only, and never send it by email or to the certificate authority, which receives only the CSR file.
-
DER
.der .cer- Encoding
- Binary, without BEGIN and END lines
- Contains
- One item per file, usually a certificate
The same content as a PEM file, in binary encoding. Common on Windows. The .cer extension is also used for PEM files, so check the content: a file that opens as text and starts with a BEGIN line is a PEM file.
-
PKCS#12
.pfx .p12- Contains
- The certificate, the private key, and the intermediate certificates in one file
- Protection
- Password
- Common use
- Windows and IIS, and moving a certificate between servers
A binary file that bundles the certificate, the private key, and the intermediate certificates, protected by a password. Newer versions of OpenSSL encrypt the file with AES-256 by default, and older systems may not open it. In that case, create the file with the -legacy option. Protect the file as you would a private key.
-
PKCS#7
.p7b- Contains
- Certificates only, without a private key
- Header in PEM encoding
- BEGIN PKCS7
A file that contains the site certificate and the intermediate certificates, without the private key. Common on Windows and with some certificate authorities, as the download file for the certificate with its chain. For Apache and Nginx, convert it to a PEM file.
-
CSR
.csr- Contains
- The public key and the requested names
- Header
- BEGIN CERTIFICATE REQUEST
A signing request created together with the private key and sent to the certificate authority. The request is signed with the private key but doesn't contain it, so it's safe to send.
Maximum validity under the CA/Browser Forum
-
From March 15, 2026
In effect now- Maximum validity
- 200 days
The maximum validity period of a public certificate issued from March 15, 2026, at every validation level.
-
From March 15, 2027
- Maximum validity
- 100 days
The maximum validity period of a certificate issued from March 15, 2027.
-
From March 15, 2029
- Maximum validity
- 47 days
The maximum validity period of a certificate issued from March 15, 2029. With such a short validity period, automatic certificate renewal becomes essential.
No matching cards.
Converting and checking certificate files
Converting between formats
-
openssl x509 -in example.der -inform DER -out example.crtConverts a certificate from DER to PEM.
-
openssl x509 -in example.crt -outform DER -out example.derConverts a certificate from PEM to DER.
-
openssl pkcs12 -export -inkey example.key -in example.crt -certfile chain.crt -out example.pfxCreates a PFX file from the private key, the certificate, and the intermediate certificates, for example for a Windows server. The command asks for a password to protect the file.
-
openssl pkcs12 -export -legacy -inkey example.key -in example.crt -certfile chain.crt -out example.pfxCreates a PFX file with the older encryption, for an older system that doesn't open the regular file. Use it only when the target system rejects the regular file.
-
openssl pkcs12 -in example.pfx -out example.pem -noencConverts a PFX file to a single PEM file with the private key, the certificate, and the intermediate certificates. In older versions of OpenSSL, use the -nodes option instead of -noenc. Caution: the private key is saved in the file unencrypted, so restrict the file permissions.
-
openssl pkcs12 -in example.pfx -clcerts -nokeys -out example.crtExtracts only the site certificate from a PFX file.
-
openssl pkcs12 -in example.pfx -cacerts -nokeys -out chain.crtExtracts only the intermediate certificates from a PFX file.
-
openssl pkcs12 -in example.pfx -nocerts -noenc -out example.keyExtracts the private key from a PFX file, unencrypted. Caution: restrict the permissions of the new file.
-
openssl pkcs7 -in example.p7b -print_certs -out example.pemConverts a P7B file to a PEM file with all the certificates in it. When the P7B file is binary, add -inform DER.
-
openssl crl2pkcs7 -nocrl -certfile example.crt -certfile chain.crt -out example.p7bCreates a P7B file from the site certificate and the intermediate certificates.
-
cat example.crt chain.crt > fullchain.pemCreates a fullchain file: the site certificate first, followed by the intermediate certificates.
Identifying and checking
-
head -n 1 example.cerShows the first line of the file. A BEGIN line means a PEM file, and unreadable characters mean a binary file, usually DER.
Example:
-----BEGIN CERTIFICATE----- -
openssl x509 -in example.crt -noout -subject -issuer -datesShows who the certificate was issued to, who issued it, and its validity dates.
-
openssl x509 -in example.crt -noout -ext subjectAltNameShows the names the certificate covers, including wildcard names.
-
openssl pkcs12 -in example.pfx -info -nooutChecks a PFX file and shows its encryption algorithms, without writing the certificates and the key to a file. The command asks for the file password.
-
openssl x509 -in example.crt -noout -pubkey | openssl sha256Calculates a fingerprint of the public key in the certificate. Compare it with the result of the next command: when the values match, the private key matches the certificate. Works with RSA and ECDSA keys.
-
openssl pkey -in example.key -pubout | openssl sha256Calculates the fingerprint of the public key from the private key, to compare with the previous command.
No matching commands.
Which certificate and which file you need
- For a regular website: a DV certificate for the name with www and the name without www is enough, and its encryption is the same as in an OV or EV certificate.
- For many subdomains: a wildcard certificate, together with the domain itself.
- For a Linux server with Apache or Nginx: a chain file and a private key in PEM format.
- For a Windows server with IIS: a PFX file that contains the certificate, the key, and the intermediate certificates.
The file names and the domain example.com on this page are examples, so replace them with your real names. More commands for creating keys and CSRs and for checking the certificate chain are on the OpenSSL commands page, and you can check the certificate your site actually shows with the SSL certificate checker tool.
With our web hosting plans, an SSL certificate is activated for your site with one click, at no cost, and for sites that need a commercial certificate, you can purchase an SSL certificate as a paid add-on service. On a Linux VPS, you connect over SSH with full root access, and install the certificate yourself in the format the services on your server require.
SSL certificate types FAQ
What's the difference between DV, OV, and EV certificates?
The difference is the level of checking the certificate authority performs before issuing. A DV certificate checks only control of the domain, an OV certificate also checks the organization's identity and address, and an EV certificate checks the organization more thoroughly. Encryption strength is the same in all types, and current browsers show them all the same way in the address bar.
Does a wildcard certificate also cover the main domain?
No. A certificate for *.example.com covers subdomains one level deep, such as www.example.com and shop.example.com, but not example.com itself or a.b.example.com. That's why you request a certificate that includes both example.com and *.example.com.
How do I convert a PFX file to files for Apache or Nginx?
The openssl pkcs12 command extracts the site certificate, the intermediate certificates, and the private key from the PFX file, each to a separate PEM file. After extracting them, combine the site certificate and the intermediate certificates into one fullchain file. All the commands are in the "Converting between formats" section on this page.
How do I check that my private key matches my certificate?
Calculate a fingerprint of the public key in the certificate and a fingerprint of the public key derived from the private key, and compare them. When the values match, the key matches the certificate. This check works with both RSA and ECDSA keys.
Which key type is right for my site, RSA or ECDSA?
An ECDSA P-256 key suits most websites: it's much smaller than an RSA key at a similar security level, and connections to the site open faster. An RSA key of 2048 bits or more is the right choice when you need support for older systems and software.