I have set up an OpenVPN server on Ubuntu 20.04. According to the settings on the Internet , I created a file .ovpn, which I show below. The OpenVPN Connect application accepts the file, but when connecting it gives the error "PKey::parse_pem:error in private key:: error:0909006C:PEM routines:get_name:no start line". Please tell me what I did wrong.(I removed the personal data and trimmed the certificates.)
client
dev tun
proto udp
remote [ip] [port]
resolv-retry infinite
nobind
key-direction 1
persist-key
persist-tun
remote-cert-tls server
cipher AES-256-CBC
verb 3
<ca>
-----BEGIN CERTIFICATE-----
FGY6yOYE1uhrmCdfdZHr6N7LpGCOyZjcFi9hJDKxZdfq+cLZd8aVZ8uzUconydY2
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
1NaVSAWrnpsw9Cbuyp8xLN7IhDPuQQfJCcNPZE0uiy9hsCJpw7avV4FgtIE82zk1
-----END CERTIFICATE-----
</cert>
<key>
----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDC0550po56Vt5cnWZVuFbfDBc
-----END PRIVATE KEY-----
</key>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
ae1400d1dd6a72ac36bf0ec928c2438f
-----END OpenVPN Static key V1-----
</tls-auth>
I can't connect my iPhone to my OpenVPN server
-
- OpenVpn Newbie
- Posts: 1
- Joined: Fri Aug 18, 2023 8:57 am