OVPN file generator: make one .ovpn, split it, check it
Drop the .ovpn with its certificates and keys and get one file with everything inside, or take such a file apart again. The checker shows what OpenVPN 2.5, 2.6 and 2.7 won't accept, when the certificate ends and whether the key belongs to it. Nothing is uploaded: the keys stay in your browser.
Runs in your browser, nothing is sent
Check your connection
Links and subscriptions
Network and router
DNS and addresses
The .ovpn and its ca.crt, client.crt, client.key, ta.key become one file.
Drop the files here or paste the config. Certificates and keys are recognised by their content, not only by name.
Paste the config or drop the files, and the single file appears here.
Everything is worked out in your browser: keys and addresses are not sent anywhere. Try it offline: once the page has loaded, turn the internet off, and everything still works.
Veli builds the config itself: paste a link, a subscription or a file into Add. Free, no sign-up.
Download VeliReference
OpenVPN client config options
The lines most often met in an .ovpn file, and what each one does. The versions are from OpenVPN's own documentation and source code.
The server and the tunnel
client- The file is a client's: it connects first and takes settings from the server (the same as pull and tls-client).
dev- The kind of tunnel: tun carries IP packets, tap carries Ethernet frames. It must match the server.
remote- The server's address, port and, if needed, udp or tcp. Several lines are tried one after another.
proto- udp or tcp. UDP is faster; TCP is for networks that don't let UDP through.
nobind- Use any free local port. Since 2.6 a client does this by itself.
resolv-retry- How long to keep looking up the server's name. infinite is the default.
Certificates, keys, login
ca- The certificate of the CA that signed the server's certificate. Inline: <ca>…</ca>.
cert- The client's own certificate, signed by the server's CA. Inline: <cert>…</cert>.
key- The private key of that certificate. Inline: <key>…</key>. Never send it to anyone.
tls-auth- A shared key that signs the packets of the handshake. Has a direction: 1 on the client.
key-direction- The direction of an inline tls-auth key: 1 on the client, 0 on the server.
tls-crypt- A shared key that signs and encrypts the handshake. No direction.
tls-crypt-v2- The same with a key of its own for every client.
pkcs12- The certificate, the key and the CA in one .p12 file. Inline it is base64.
remote-cert-tls- server: accept only a server's certificate, so that another client can't pose as the server.
verify-x509-name- Accept only a server with this name in its certificate.
auth-user-pass- Ask for a login and password. With a file name they are read from the file.
Encryption
data-ciphers- The ciphers for traffic, in order. The default is AES-256-GCM, AES-128-GCM and, since 2.6, CHACHA20-POLY1305.
cipher- The cipher before negotiation existed. Since 2.6 it is ignored with certificates.
auth- The digest for signing packets. With GCM and ChaCha20 it is used only for tls-auth.
tls-version-min- The oldest TLS version to accept. The default since 2.6 is 1.2.
Routes, DNS, packet size
redirect-gateway- Send all traffic through the VPN. def1 keeps the old default route, ipv6 covers IPv6.
route-nopull- Ignore the server's routes and use only those in the file.
dhcp-option- DNS server and search domain for the tunnel: dhcp-option DNS 1.1.1.1.
block-outside-dns- Windows only: close DNS on the other adapters, against DNS leaks.
tun-mtu- The biggest packet inside the tunnel, 1500 by default.
mssfix- Limit the size of TCP packets so that they fit the line.
Outdated or dangerous
comp-lzo- Compression. Opens the way to VORACLE; 2.7 no longer compresses what it sends.
ns-cert-type- The old server check, replaced by remote-cert-tls server.
keysize- Removed in 2.6: OpenVPN stops at this line.
ncp-disable- Removed in 2.6: cipher negotiation can't be turned off any more.
persist-key- Since 2.7 it is always on and the line does nothing.
up- Run a script when the tunnel is up. Dangerous in a file from a stranger.
script-security- 2 and 3 allow the config to run scripts.
FAQ
Is it safe to put my private key here?
Yes: the files are read by JavaScript in your browser and go neither to our site nor anywhere else. You can check it: open the page, turn the internet off and build the file. The site's statistics count only page views and button clicks.
How do I put certificates inside an .ovpn file?
Each file becomes a block: the text of ca.crt goes between <ca> and </ca>, client.crt between <cert> and </cert>, client.key between <key> and </key>, ta.key between <tls-auth> and </tls-auth>, and the lines such as “ca ca.crt” are removed. With tls-auth the direction turns into a separate line, key-direction 1. The “Build” tab does all of this.
Can I make an .ovpn file without a server?
The file itself, yes: the “From scratch” tab writes a client config. But it connects only to a server that trusts your certificate, so ca.crt, the client certificate and the key have to come from that server or from whoever runs it.
Why does an old .ovpn file stop working after an update?
Newer versions drop options. OpenVPN 2.6 no longer knows keysize and ncp-disable and stops at such a line, and it doesn't add cipher to the negotiation any more: an old server with AES-256-CBC then needs data-ciphers with that cipher. 2.7 turns off secret (a static key without certificates). The checker names the version next to each line.
What is the difference between tls-auth and tls-crypt?
Both use a shared key on top of TLS. tls-auth only signs the packets and has a direction: 0 on the server, 1 on the client. tls-crypt also encrypts them, hides the certificate from view and has no direction. The key file looks the same for both, so the config has to say which one the server uses.
Does Veli open .ovpn files?
On Windows and Linux, yes, through OpenVPN itself. On macOS and Android Veli doesn't connect OpenVPN profiles. Veli refuses files that run commands or plugins, and it keeps only the .ovpn, so certificates have to be inside it.