Open kosli opened 1 year ago
Sounds good, although if it's for VPNs I think we could just update the logic in the VPN model of openwisp-controller, which already has something like that but for a deprecated extension (which we could leave just for backward compatibility a little longer):
Adding the possibility of defining additional extensions added automatically sounds interesting though so I would leave this issue here and create a new one in OpenWISP Controller.
Sounds good to me too.
Whereas for OpenVPN the extended usage extension should be added anyways. As for the --remote-cert client
option OpenVPN checks for "TLS Web Client Authentication".
And for --remote-cert server
it checks for "TLS Web Server Authentication" -> the one that I have added.
To be able to use the OpenVPN
remote-cert-tls server
option (see the OpenVPN manual), the server certificate needs to be created with an extended key usage of "TLS Web Server Authentication". When manually creating a certificate in OpenWISP, the Extensions field can be used with the below settings to add the needed extended key usage:Unfortunately the extension cannot be set on the certificate created via the "Automatic tunnel provisioning" feature -> it would be great if there would be an option to change the settings of the automatically created certificates. e.g. if one use the automatically created certificates not just for the OpenVPN client but also as a OpenVPN server certificate.