VPN Certificates Explained for Beginners
A beginner's guide to the digital certificates behind many VPN connections: what they prove, where they are used, when to install one, and how to read common errors.
10 min readUpdated Oct 15, 2026By XPASS Editorial Team

When you tap connect in a VPN app, a lot happens before the first web page loads. Your device and the VPN server have to agree on how to encrypt the tunnel, and, just as important, your device has to be sure it is talking to the real server and not to an impostor. Digital certificates are one of the main tools used for that second job. They are also the reason you sometimes see a puzzling message about an untrusted or expired certificate.
This article explains VPN certificates from scratch: what they are, how the chain of trust works, where they appear in different kinds of VPN setups, and how to read the most common certificate errors. You do not need to know any cryptography. If you want the wider picture of how tunnels are built first, our explainer on VPN protocols is a good companion.
A certificate in one minute
A digital certificate is a small file that links a name to a cryptographic key and carries a signature from someone who vouches for that link. The common format is called X.509, and it is the same family of certificate that secures ordinary websites with HTTPS.
Think of a passport. A passport says "this person has this name and this photo", and it carries the stamp of a government that the border officer trusts. The officer does not know you, but they know the issuing authority. A certificate works the same way:
- Subject. Who or what the certificate is for, usually a server name such as
vpn.example.net, written in fields called the common name or the subject alternative names. - Public key. The key that others use to start an encrypted conversation with that subject.
- Issuer. The authority that signed the certificate.
- Validity period. A start date and an end date. Outside those dates the certificate is not accepted.
- Signature. The mathematical stamp of the issuer, which your device can check.
The signature is the important part. Anyone can create a certificate that says "I am the real VPN server". Only a certificate signed by an authority your device already trusts will pass the check.

The chain of trust: root, intermediate and server
Your phone or computer ships with a built-in list of trusted organisations called root certificate authorities, or root CAs. These are stored in what is often called the trust store. A root CA rarely signs server certificates directly, because its private key is kept very safe. Instead it signs one or more intermediate certificates, and those sign the certificates that servers actually use.
The result is a chain:
- Root certificate. Already in your trust store.
- Intermediate certificate. Signed by the root, sent by the server during the connection.
- Server certificate. Signed by the intermediate, also sent by the server.
When you connect, the server presents its certificate and the intermediates. Your device walks up the chain, checking each signature, until it reaches a root it already trusts. It also checks that every certificate is within its dates and that the name in the certificate matches the address you are connecting to. If all of this passes, the connection continues. If any step fails, you get a certificate warning.
Free automated authorities have made this routine for ordinary websites. The way a certificate request is proven and issued is described in the Let's Encrypt overview of how it works, which is a readable reference for the same idea of proving control of a name. The VPN version of the story is the same, only the server is a VPN gateway instead of a web server.
Why not just trust everything?
Because anyone sitting between you and the server could present their own certificate. Without the signature check, a rogue Wi-Fi hotspot could answer your VPN connection itself, read what you send, and pass it on. The chain of trust is what turns "some computer answered" into "the computer I meant to reach answered".
Where certificates appear in different VPN setups
Not every VPN uses certificates in the same way. The role depends on the protocol and on how the service is run.
| Setup | Typical certificate role | What the user usually sees |
|---|---|---|
| OpenVPN | A private certificate authority signs a server certificate and, optionally, a certificate per client | A profile file that may bundle the CA certificate, and sometimes a client certificate and key |
| IKEv2/IPsec | The server presents a certificate; the client logs in with a username and password, a certificate, or a shared secret | Often only a server address and login details; sometimes a certificate to install |
| SSTP | The tunnel runs inside a TLS session, so the server needs a certificate from a CA the client trusts | A server name that must match the certificate exactly |
| WireGuard | No certificates; each side has a public and private key pair | A configuration containing keys and an endpoint address |
| Browser or web-based tools | Normal HTTPS website certificates | A padlock in the address bar |
If you want a comparison of two popular modern options, see WireGuard vs OpenVPN. The key point for certificates is that OpenVPN, IKEv2 and SSTP lean on them, while WireGuard replaces them with raw keys. Neither approach is automatically better for a home user. Certificates scale well to large organisations because trust can be revoked centrally, while a key pair is simpler to set up for a small group.
For the technical details of how IKEv2 uses certificates to authenticate gateways, the IKEv2 specification (RFC 7296) is the primary source, and TLS 1.3 (RFC 8446) describes the handshake that SSTP-style and web connections rely on. You never need to read them to use a VPN, but it is reassuring that these are open, published standards.
Server certificates, client certificates and passwords
Authentication has two directions, and certificates can serve either.
Server authentication answers "am I really talking to the VPN I meant to?" It is done with the server certificate and is almost always present. This protects you from impostor gateways.
Client authentication answers "is this device allowed in?" There are three common ways to do it:
- Username and password. Easy to hand out and easy to change. Most consumer VPN services work this way, and the weakness is the usual one: passwords can be guessed, reused or phished.
- Client certificate. Each device holds its own certificate and private key. There is no password to steal over the network, and an individual device can be blocked by revoking its certificate. The cost is more administration.
- Both together. Some company networks ask for a certificate and a password, or a certificate plus a one-time code. Our article on two-factor authentication explains why combining factors is stronger.
For a typical individual customer, the practical picture is simple. The app trusts the server through a normal certificate check, and you sign in with a username and password. You do not manage certificates yourself. For a small office or a family running its own server, certificates become a real topic, because someone has to create, distribute, renew and revoke them.
A worked example: the fake cafe gateway
Imagine Mali, a freelance designer, working from a cafe. She connects to the cafe Wi-Fi, then starts her work VPN. Unknown to her, someone on the same network has set up a device that tries to answer VPN connection attempts and pose as her company's gateway.
What stops the attack is the certificate check:
- The impostor must present a certificate for the name Mali's client expects.
- It cannot get a trusted authority to sign such a certificate for a name it does not control.
- It could present a self-made certificate, but Mali's device does not trust the issuer, so the client refuses to continue and shows a warning.
If Mali taps "continue anyway", she throws away that protection. If instead she stops and switches to mobile data, she keeps her work safe. This is also why a VPN does not replace attention: the tunnel only helps if the identity check at the start is respected. For more habits on shared networks, see our guide to public Wi-Fi safety.
When to install a certificate, and when not to
Sometimes a service asks you to install a certificate file. The two situations look similar but carry very different risk.
Usually fine. Your employer or school IT team gives you a profile containing the private CA certificate for their own VPN, delivered through their official portal, and explains what it is for. The certificate covers only their network.
Be careful. Installing a new root certificate into your device trust store gives that authority the technical ability to vouch for any website name. A malicious root certificate could let someone read protected traffic, including HTTPS, if they can also sit in the path. That is why a random website, a messaging link, a pop-up or an unknown app asking you to install a root certificate should be refused.
A simple rule set:
- Install certificates only from the organisation that runs the network, using a channel you started yourself.
- Ask what the certificate is for and which names it covers.
- Prefer a client certificate or a CA certificate limited to one VPN profile over adding a general root to the whole device when the platform allows it.
- Remove certificates you no longer need, for example after leaving a job.
- Never install a certificate to "fix" a website warning you do not understand.
This also connects to phishing. Pages that tell you to download a "security certificate" before you can view content are a classic trick. Our guide to recognizing phishing websites lists other warning signs.

Reading common certificate errors
Certificate warnings look scary but are usually diagnosable. Here are the typical messages and what to try.
| Message idea | Likely cause | What to do |
|---|---|---|
| Certificate expired or not yet valid | The certificate dates do not include today, or your device clock is wrong | Set date and time to automatic first; if still failing, the server owner must renew |
| Name does not match | You used an address that is not in the certificate, such as an IP address instead of the hostname | Use the exact server name given in your instructions |
| Untrusted issuer or unknown authority | Your device does not have the issuing authority in its trust store, or the server did not send its intermediate | Install the official CA certificate if one was provided, or tell the owner to fix the chain |
| Revoked certificate | The issuer cancelled it, often because a key was lost or an employee left | Request a new certificate |
| Self-signed certificate | The server vouches for itself | Acceptable only if you control the server and can verify its fingerprint yourself |
The single most common cause for individuals is a wrong clock. A phone that has been off for days, or a laptop with a dead clock battery, will think every certificate is not yet valid or already expired. Turn on automatic date and time, reconnect, and try again before changing anything else. If the app still cannot connect, our troubleshooting guide on VPN not connecting walks through the other usual suspects.
Certificates and the expiry date
Certificates are deliberately short-lived. Public website certificates now often last only a few months, and renewal is automated. Private VPN certificates can last longer, which is convenient but easy to forget. A classic outage story: a small office VPN works for a year, then fails on a Monday morning because the server certificate expired over the weekend and nobody put the date in a calendar. If you run your own server, write the expiry dates down and set reminders a month ahead.
A short checklist for running your own VPN
If you manage a home or small-office VPN that uses certificates, a few habits prevent most trouble.
- Keep the CA private key offline. Anyone who has it can create valid certificates for your network.
- Use one certificate per device. When a laptop is lost, you can revoke only that one.
- Choose sensible lifetimes. Shorter is safer; longer is easier. Match it to your ability to renew on time.
- Use correct names. Put the hostname that clients use into the certificate, not just an IP address.
- Keep a revocation process. Know in advance how you will block a lost device.
- Test from a fresh device. A new phone shows you whether the whole chain is delivered properly.
- Back up configuration and keys securely, and store the backup separately from the server.
Hosting your own tunnel has trade-offs beyond certificates, which we compare in self-hosted vs commercial VPN.
What certificates do not do
It helps to be precise about the limits, so that certificates are neither over- nor under-valued.
- A certificate proves identity, not trustworthiness. A malicious service can have a perfectly valid certificate for its own name. A valid certificate means "this is really that server", not "that server is good".
- A certificate does not make a website safe. A padlock on a phishing page only means the connection to that page is encrypted; see HTTPS vs VPN for how the two layers differ.
- A certificate does not hide your activity from the VPN operator. Once the tunnel ends at their server, they handle your traffic. Choosing an operator is a trust decision about the company, separate from the cryptography.
- A certificate cannot protect a device that is already infected or a password that has been phished.
- Encryption strength is set by the protocol and its settings, not by the certificate alone. Our overview of what VPN encryption is covers that part.
Summary
VPN certificates are signed files that let your device check that it is talking to the real VPN server, and sometimes let the server check your device. They work through a chain of trust that ends at a root authority your device already knows. OpenVPN, IKEv2 and SSTP use them in different ways, while WireGuard uses plain keys instead. Most certificate problems for ordinary users come down to a wrong clock, an expired certificate or a mismatched name, and the safest response to a warning is to stop and fix the cause rather than click through. Only install a certificate from an organisation you chose to trust, and never because a pop-up told you to.
If you are comparing passes and want a VPN app that handles the server checks for you, you can look at the options on the pricing page.
Frequently asked questions
Do I need to install a certificate to use a VPN?
Usually not for a consumer VPN app, because the app and your device already trust the common certificate authorities. Some company or school networks ask you to install a certificate file. Only install one that your own IT team or the service owner gave you through a channel you trust.
What is the difference between a server certificate and a client certificate?
A server certificate proves to you that you reached the real VPN server. A client certificate proves to the server that your device is an approved one. Many consumer setups use only the server side and then ask for a username and password.
Why does my VPN say the certificate is not trusted?
The usual causes are a wrong date or time on your device, a certificate that has expired, a name that does not match the address you typed, or an issuer your device does not know. Fix the clock first, then check the server address.
Does WireGuard use certificates?
No. WireGuard identifies each side with a pair of keys instead of certificates, which makes it simpler but moves the job of distributing and approving keys to whoever runs the VPN.
Is it safe to click Continue anyway on a certificate warning?
No. The warning exists because your device could not confirm who it is talking to. Clicking through removes the protection the certificate was meant to give you, especially on public Wi-Fi.
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a VPN for a short trip or a busy month?
XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.
See passesKeep reading

VPN Security
What Is VPN Encryption?
VPN encryption scrambles your data between your device and the VPN server. Here is how keys, ciphers and the handshake work, and what encryption cannot do.
10 min read

VPN Basics
What Is a VPN Protocol?
A VPN protocol sets the rules for how your device and a VPN server connect and protect traffic. Here is what that means in plain language, with the main trade-offs.
9 min read

VPN Security
WireGuard vs OpenVPN Explained
WireGuard and OpenVPN both build encrypted tunnels, but they differ in design, complexity and flexibility. Here is a plain comparison and how to think about the choice.
9 min read

VPN Security
HTTPS vs VPN: What Each One Protects
HTTPS secures the connection between your browser and a website. A VPN secures the path between your device and the VPN server. They overlap less than most people think.
9 min read

Privacy Guides
How to Recognize Phishing Websites
Phishing websites imitate real services to steal your login or card details. This guide shows the warning signs worth checking, a calm routine for suspicious links, and what to do if you entered details.
9 min read