OpenVPN Cannot load inline certificate file

Scripts to manage certificates or generate config files

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
s110103
OpenVpn Newbie
Posts: 1
Joined: Wed Sep 04, 2019 7:30 am

OpenVPN Cannot load inline certificate file

Post by s110103 » Wed Sep 04, 2019 7:36 am

Dear ladies and gentlemen!

I installed openvpn on my server and wanted to create a .ovpn configuration file. I received that file an loaded it into my Windows OpenVPN client.
As soon as is want to establish a connection I receive the following error:

Wed Sep 04 09:07:12 2019 OpenVPN 2.4.7 x86_64-w64-mingw32 [SSL (OpenSSL)] [LZO] [LZ4] [PKCS11] [AEAD] built on Apr 25 2019
Wed Sep 04 09:07:12 2019 Windows version 6.2 (Windows 8 or greater) 64bit
Wed Sep 04 09:07:12 2019 library versions: OpenSSL 1.1.0j 20 Nov 2018, LZO 2.10
Enter Management Password:
Wed Sep 04 09:07:12 2019 MANAGEMENT: TCP Socket listening on [AF_INET]127.0.0.1:25343
Wed Sep 04 09:07:12 2019 Need hold release from management interface, waiting...
Wed Sep 04 09:07:13 2019 MANAGEMENT: Client connected from [AF_INET]127.0.0.1:25343
Wed Sep 04 09:07:13 2019 MANAGEMENT: CMD 'state on'
Wed Sep 04 09:07:13 2019 MANAGEMENT: CMD 'log all on'
Wed Sep 04 09:07:13 2019 MANAGEMENT: CMD 'echo all on'
Wed Sep 04 09:07:13 2019 MANAGEMENT: CMD 'bytecount 5'
Wed Sep 04 09:07:13 2019 MANAGEMENT: CMD 'hold off'
Wed Sep 04 09:07:13 2019 MANAGEMENT: CMD 'hold release'
Wed Sep 04 09:07:13 2019 OpenSSL: error:0906D06C:PEM routines:PEM_read_bio:no start line
Wed Sep 04 09:07:13 2019 OpenSSL: error:140AD009:SSL routines:SSL_CTX_use_certificate_file:PEM lib
Wed Sep 04 09:07:13 2019 MANAGEMENT: Client disconnected
Wed Sep 04 09:07:13 2019 Cannot load inline certificate file
Wed Sep 04 09:07:13 2019 Exiting due to fatal error

This is my configuration file:

client
dev tun
proto udp
sndbuf 0
rcvbuf 0
remote ipadress intentionally left out 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
setenv opt block-outside-dns
key-direction 1
verb 3
<ca>
</ca>
<cert>
</cert>
<key>
</key>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
e9ef0c7a3cfa0dda41c9f1b79e508647
d60f7968a610d3d604e77b5bdc20a2e8
99bbe89e70d8a9e56f44935a4e82971d
fbd9ecbb476d0ec73d0f39bca54cf96f
2dbb3c1be6049ad2419bdcd1365cd84b
d7c2ff82fa804c7560f17922af7ddd79
8d628536d3be6a997bc110767b2cca48
34b02acd07d3971436915a1521e8f29b
0335fbdce72f571c80be7789ccf52024
f49367f5fc7ccc90cc04ab3bf37898f2
3b4ef0fdbbc2f71f9d8669fb47a627df
328fd4e59f7a1faec50e2e0e35096518
a4db03ea27ceb856cc23ce73dc469271
9fef2abe3b436cad0362958ab1fe5ee6
84e53c9eefd74eedce5361306fde3a73
d151d2e2d2c5499a466b97e40487d5ef
-----END OpenVPN Static key V1-----
</tls-auth>

I did not edit this .ovpn config file or did anything else with it.

Do you have any questions on how to solve this error? I browsed throug the net but did not find any solutions fitting my problem.

Regards
Lukas

Post Reply