Elektroda.com
Elektroda.com
X

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

tka 5784 6
This content has been translated flag-pl » flag-en View the original version here.
  • #1
    tka
    Level 8  
    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
    
  • #2
    WMichał
    Level 32  
    Show client and server files.
    Do you have this key on Windows?
    You can also run vpn without it.
  • #3
    tka
    Level 8  
    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
    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.
  • #5
    tka
    Level 8  
    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? : /
  • #6
    WMichał
    Level 32  
    The client is windows or mac?
  • #7
    tka
    Level 8  
    WMichał wrote:
    The client is windows or mac?


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