bug:config-auto subdirectory Cannot pre-load keyfile

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
etongcai
OpenVpn Newbie
Posts: 1
Joined: Tue May 04, 2021 5:48 am

bug:config-auto subdirectory Cannot pre-load keyfile

Post by etongcai » Tue May 04, 2021 5:59 am

".ovpn " (config all file) in config-auto subdirectory (OpenVPNService)
eror:
Cannot pre-load keyfile (ta.key)
Exiting due to fatal error

".ovpn " file in config-auto(not in subdirectoriy) is ok.
".ovpn " file in config subdirectories is ok.

OpenVPN-2.5.2-I601-amd64

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: bug:config-auto subdirectory Cannot pre-load keyfile

Post by TinCanTech » Tue May 04, 2021 12:55 pm

Use inline files.

User avatar
fhaut
OpenVpn Newbie
Posts: 2
Joined: Thu Aug 12, 2021 11:20 pm

Re: bug:config-auto subdirectory Cannot pre-load keyfile

Post by fhaut » Thu Aug 12, 2021 11:27 pm

OpenVPN Version 2.5.3 on Windows Server 2012 R2

Using "OpenVPN GUI --->> server start successfully
Using "OpenVPN Service" --->> error below

Code: Select all

2021-08-12 20:23:41 Cannot pre-load keyfile (tc.key)
2021-08-12 20:23:41 Exiting due to fatal error

2021-08-12 20:23:51 Cannot pre-load keyfile (tc.key)
2021-08-12 20:23:51 Exiting due to fatal error

2021-08-12 20:24:01 Cannot pre-load keyfile (tc.key)
2021-08-12 20:24:01 Exiting due to fatal error

OVPN Conf File

Code: Select all

local 192.168.25.241
port 1194
proto udp
dev tun
windows-driver wintun
dev-node VPN
ca ca.crt
cert server.crt
key server.key
dh dh.pem
tls-crypt tc.key
crl-verify crl.pem
client-config-dir openvpn-csc
auth SHA512
topology subnet
server 10.10.0.0 255.255.255.0
push "route 192.168.25.0 255.255.255.0"
client-to-client
keepalive 10 60
cipher AES-256-CBC
data-ciphers AES-256-CBC
persist-key
persist-tun
verb 3
ping-timer-rem
persist-remote-ip
float
reneg-sec 0
route-method exe
route-delay 5 120

Yes, using the whole path works on OpenVPN Service.
Please fix the service to accept the same .ovpn file.

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: bug:config-auto subdirectory Cannot pre-load keyfile

Post by TinCanTech » Fri Aug 13, 2021 1:51 am

If this is a genuine bug then I am a purple cactus ...

Post Reply