Forked from zfwf/gist:64695924cb0941089f8163e73cfad209
Last active
September 27, 2023 10:54
-
-
Save shaoran/1db4ed8bba8bc054cd31e2ea05a668d1 to your computer and use it in GitHub Desktop.
NetworkManager tls-cipher=DEFAULT:@SECLEVEL=0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Client configs, 16.04, | |
script-security 2 | |
up /etc/openvpn/update-resolv-conf | |
down /etc/openvpn/update-resolv-conf | |
# network manager, 16.04, install below package to enable import openvpn client configs | |
sudo apt install network-manager-openvpn-gnome | |
# Client configs, 18.04/18.10 | |
# nm-connection-editor can help with adding option below | |
script-security 2 | |
up /etc/openvpn/update-systemd-resolved | |
down /etc/openvpn/update-systemd-resolved | |
## if you have the error: cert too weak (OpenSSL: error:140AB18E:SSL routines:SSL_CTX_use_certificate:ca md too weak) | |
## add to client config | |
tls-cipher "DEFAULT:@SECLEVEL=0" | |
# network manager, 18.04, install below package to enable import openvpn client configs | |
sudo apt install network-manager-openvpn-gnome | |
# to work around the cert too weak issue in network manager imported openvpn configs | |
# under the [vpn] section in `/etc/NetworkManager/system-connections/<connection name>` add the line: | |
tls-cipher=DEFAULT:@SECLEVEL=0 | |
# if need additonal domains not specified by the dhcp push | |
domain-search=<domain1>;<domain2>; |
i came here because htb openvpn gen certs needs this in the network manager connection config. works perfect now! thanks!
Yeah, mention that do systemctl restart NetworkManager
once adding that line in the .nmconnection
file.
I can add that: Ubuntu 22.04 make this error happen while Debian 11 was silent.
Thanks for this tip.
thank you very much !!!!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this. I needed to the tls-cipher setting for network manager with Ubuntu 22.04. Some things to note. Once you change the network manager configuration, you need to restart network manager. Also, any changes to that connection using network manager (such as a GUI config or nmcli) will wipe out this change so you have to add it back.