Skip to content

Fail to connect - crypto_alg: SHA*: bad digest for data channel use #220

Closed
@sid-the-sloth

Description

@sid-the-sloth

Describe the bug
OpenVPN3 gets stuck in opening a session.

Running openvpn3, on Debian 12 bookworm, installed from the repo as described in https://community.openvpn.net/openvpn/wiki/OpenVPN3Linux.

$ openvpn3 version
OpenVPN3/Linux v21 (openvpn3)
OpenVPN core v3.8.2 linux x86_64 64-bit
Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.

To Reproduce

Imported connection with:

$ openvpn3 config-import --config /etc/openvpn/my-connection.ovpn --persistent

Trying to open session with:

$ openvpn3 session-start --config /etc/openvpn/my-connection.ovpn

The connection cannot be established, getting errors (in journalctl) such

g_object_unref: assertion 'G_IS_OBJECT (object)' failed

as seen below:

# journalctl --since today -u dbus | less +G

Nov 15 12:28:18 machine-name net.openvpn.v3.backends[3967556]: OpenVPN3/Linux v21 (openvpn3-service-backendstart)
Nov 15 12:28:18 machine-name net.openvpn.v3.backends[3967556]: OpenVPN core v3.8.2 linux x86_64 64-bit
Nov 15 12:28:18 machine-name net.openvpn.v3.backends[3967556]: Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.
Nov 15 12:28:18 machine-name openvpn3-service-logger[3966148]: Attached: {tag:1838831745448410381}  [:1.6809/net.openvpn.v3.backends], pid 3967556
Nov 15 12:28:18 machine-name dbus-daemon[1025]: [system] Successfully activated service 'net.openvpn.v3.backends'
Nov 15 12:28:18 machine-name net.openvpn.v3.backends[3967560]: Re-initiated process from pid 3967560 to backend process pid 3967561
Nov 15 12:28:18 machine-name net.openvpn.v3.backends[3967561]: OpenVPN3/Linux v21 (openvpn3-service-client)
Nov 15 12:28:18 machine-name net.openvpn.v3.backends[3967561]: OpenVPN core v3.8.2 linux x86_64 64-bit
Nov 15 12:28:18 machine-name net.openvpn.v3.backends[3967561]: Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.
Nov 15 12:28:18 machine-name openvpn3-service-logger[3966148]: Attached: {tag:2898027044471729836}  [:1.6810/net.openvpn.v3.backends], pid 3967561
Nov 15 12:28:18 machine-name openvpn3-service-logger[3966148]: Attached: {tag:16977099851477502325}  [:1.6810/net.openvpn.v3.sessions], pid 3967561
Nov 15 12:28:18 machine-name openvpn3-service-logger[3966148]: Assigned session /net/openvpn/v3/sessions/feab0ea1scd88s4733s998cs0f06a0306ab2 to {tag:2898027044471729836}
Nov 15 12:28:18 machine-name dbus-daemon[1025]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.6810' (uid=125 pid=3967561 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien")
Nov 15 12:28:18 machine-name dbus-daemon[1025]: [system] Successfully activated service 'org.freedesktop.hostname1'
Nov 15 12:28:18 machine-name dbus-daemon[1025]: [system] Activating service name='net.openvpn.v3.netcfg' requested by ':1.6810' (uid=125 pid=3967561 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien") (using servicehelper)
Nov 15 12:28:18 machine-name net.openvpn.v3.netcfg[3967573]: Loading configuration file: /var/lib/openvpn3/netcfg.json
Nov 15 12:28:18 machine-name openvpn3-service-logger[3966148]: Attached: {tag:11965320258772559404}  [:1.6812/net.openvpn.v3.netcfg], pid 3967573
Nov 15 12:28:18 machine-name openvpn3-service-logger[3966148]: Attached: {tag:516827528801123380}  [:1.6812/net.openvpn.v3.netcfg.core], pid 3967573
Nov 15 12:28:18 machine-name net.openvpn.v3.netcfg[3967573]: OpenVPN3/Linux v21 (openvpn3-service-netcfg)
Nov 15 12:28:18 machine-name net.openvpn.v3.netcfg[3967573]: OpenVPN core v3.8.2 linux x86_64 64-bit
Nov 15 12:28:18 machine-name net.openvpn.v3.netcfg[3967573]: Copyright (C) 2012-2022 OpenVPN Inc. All rights reserved.
Nov 15 12:28:18 machine-name dbus-daemon[1025]: [system] Successfully activated service 'net.openvpn.v3.netcfg'
Nov 15 12:28:18 machine-name openvpn3-service-logger[3966148]: {tag:11965320258772559404} Redirect method: host-route

Nov 15 12:28:19 machine-name openvpn3-servic[3967561]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Nov 15 12:28:19 machine-name dbus-daemon[1025]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.6810" (uid=125 pid=3967561 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.6799" (uid=125 pid=3966164 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi")
Nov 15 12:28:19 machine-name openvpn3-servic[3967561]: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Nov 15 12:28:19 machine-name dbus-daemon[1025]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.6810" (uid=125 pid=3967561 comm="/usr/libexec/openvpn3-linux/openvpn3-service-clien") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.6799" (uid=125 pid=3966164 comm="/usr/libexec/openvpn3-linux/openvpn3-service-sessi")

Expected behavior
I expect it to connect. Same connection file works with OpenVPN2 client.

Version information (please complete the following information):

  • OS: Debian 12 bookworm
  • OpenVPN version: OpenVPN3/Linux v21 (openvpn3), OpenVPN core v3.8.2 linux x86_64 64-bit

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions