Announcement

Collapse
No announcement yet.

OpenVPN "WARN: could not open database for 4096 bits. Skipped" [solved]

Collapse
This topic is closed.
X
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • OpenVPN "WARN: could not open database for 4096 bits. Skipped" [solved]

    Yet another issue where search engine results did not include the fix on the first page of results.
    For the search engines.

    There are many causes for this error, "WARN: could not open database for 4096 bits. Skipped"

    In this case, the error was cause by importing a configuration files (*.ovpn) from windows, which had the ^M^J EOL terminator instead of just a ^J.

    The fix was simple:
    # sed -ie 's/*r//' /etc/openvpn/your-config-file.conf

    Or, for multiple confs, assuming bash/sh as your root shell:

    # for i in /etc/openvpn/*.conf ; do sed -ie 's/*r//' $i ; done

    There are other tools to convert MS-DOS End-of-line terminators to Linux/*nix, but the above sed should be more widely available on more *nix systems.
    tiny font: _. ___ _... ___ _.. _.__ .._ ... . ... __ ___ ._. ... . _._. ___ _.. . ._ _. _.__ __ ___ ._. .
Working...
X