-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating an OpenVPN server in v2 of the API, there is no option to generate a TLS Key, as there was in v1 #570
Comments
I'll have these adjustments out in v2.2.0 but I've had to rework them a bit. The main issue here is the Instead, I've added a new v2.2.0 should be out later this week. A new pre-release build should be going out tonight if you want to try it out. |
Thank you. |
Expected behavior
As there was in v1 of the API when creating an OpenVPN server, there will be a way to specify the TLS key will be autogenerated.
In v2, the TLS key can either not exist or imported from outside.
Root Cause
In the v1 code, the TLS would have been auto-generated (with pfsense's
openvpn_create_key
function) based on some conditions:In v2, this functionality does not exist. I suggest adding the same functionality to the "validate_tls" function in the case the tls field is empty ("") and not null. Also, add to this field's definition the
allow_empty: true
property, for this to be possible.For example:
Affected Endpoints:
/api/v2/vpn/openvpn/server
The text was updated successfully, but these errors were encountered: