logo elektroda
logo elektroda
X
logo elektroda

OpenVPN - "--tls-auth fails with 'ta.key': No such file or directory"

tka 6474 6
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16638937
    tka
    Level 9  
    Good evening, I have a VPS server at OVH, Debian 9 is running there. According to this guide -> link , I tried to install an OpenVPN based VPN server, I never set up a VPN, and I probably broke something during configuration, the OpenVPN program in logs gives me such a message and I can't connect to the VPN itself.
    Sat Aug 12 22:21:25 2017 NOTE: --user option is not implemented on Windows
    Sat Aug 12 22:21:25 2017 NOTE: --group option is not implemented on Windows
    Sat Aug 12 22:21:25 2017 WARNING: cannot stat file 'ta.key': Nie można odnaleźć określonego pliku.   (errno=2)
    Options error: --tls-auth fails with 'ta.key': No such file or directory
    Options error: Please correct these errors.
    Use --help for more information.
    


    The ruler from ta.key in server.conf looks like this:
    tls-auth /etc/openvpn/easy-rsa/keys/ta.key
    
  • ADVERTISEMENT
  • #2 16643894
    WMichał
    Level 32  
    Show client and server files.
    Do you have this key on Windows?
    You can also run vpn without it.
  • ADVERTISEMENT
  • #3 16645324
    tka
    Level 9  
    WMichał wrote:
    Show client and server files.
    Do you have this key on Windows?
    You can also run vpn without it.


    This file, which I created according to this guide, I put in the directory where they ordered, but crashes the above error, how can I still connect to the VPN? In particular, I use windows temporarily, I work under macOS on a daily basis and I only have the option to log in to the VPN there, unfortunately my knowledge of VPN is quite modest, so you need to explain to me like green forks. :)
  • #4 16645360
    korrus666
    Level 40  
    What user is the VPN server running on? Does this user have access to this file? Maybe no permissions if the file exists.
  • ADVERTISEMENT
  • #5 16645376
    tka
    Level 9  
    korrus666 wrote:
    What user is the VPN server running on? Does this user have access to this file? Maybe no permissions if the file exists.


    The user "nobody" according to the guide, now I have assigned him a sudo group, but nothing worked, I can assign chmod + x, but to what file? : /
  • ADVERTISEMENT
  • #6 16645843
    WMichał
    Level 32  
    The client is windows or mac?
  • #7 16646332
    tka
    Level 9  
    WMichał wrote:
    The client is windows or mac?


    Now windows, but when the laptop comes back from repair it is already mac.

Topic summary

The discussion revolves around an issue with OpenVPN configuration on a Debian 9 VPS server at OVH, where the user encounters an error related to the missing 'ta.key' file during VPN connection attempts. The user has followed a guide to set up the VPN but lacks experience in VPN configurations. Responses suggest checking the existence and permissions of the 'ta.key' file, as well as the user account under which the VPN server is running. The user has temporarily switched to Windows for testing but primarily uses macOS. There are suggestions to run the VPN without the 'ta.key' file if necessary.
Summary generated by the language model.
ADVERTISEMENT