d3vilh / openvpn-ui

Web User Interface for OpenVPN
MIT License
299 stars 70 forks source link

After "DELETE ALL" and "INITIALIZE ALL" the ta.key file is missing #113

Open gregewing opened 1 week ago

gregewing commented 1 week ago

I'm doing this with volumes, so it might be that I've got a folder mapping wrong or something, but I have noticed that before I do DELETE ALL and INITIALIZE ALL there are two identical copeis of ta.key on the openvpn-server container at the following paths:

/usr/share/easy-rsa/pki/ta.key
/etc/openvpn/pki/ta.key

However, after I do the delete and initialize, there is only one file here ...

/usr/share/easy-rsa/pki/ta.key

This is all well and good until I come to try and create a clinet connection profile and certificates, and then it fails. Investigating the logs I see its because the ta.key file is not found in /etc/openvpn/pki

Some advice or support would be greatly appreciated, even if it just a change to one of the internal scripts to re-copy the file after it has been recreated.

Thanks

gregewing commented 1 week ago

Further to my above, I find that the "Generate TA" button has no effect at all, meaning the user has to manually run the command on the container to create the certificate.

This seems like a pretty simple bug to fix.