OpenVPNConfig¶
-
class
openvpn_server.
OpenVPNConfig
(ca=None, cert=None, key=None, dh=None, **kwargs)[source]¶ Class that holds configuration for OpenVPN
- Parameters
ca (
Optional
[str
]) –cert (
Optional
[str
]) –key (
Optional
[str
]) –dh (
Optional
[str
]) –kwargs (
str
) –
-
__init__
(ca=None, cert=None, key=None, dh=None, **kwargs)[source]¶ Store OpenVPN configuration in semi-parsed way and allow for generating proper content OVPN expects
- Parameters
ca (
Optional
[str
]) – Content of ca file.cert (
Optional
[str
]) – Content of cert file.key (
Optional
[str
]) – Content of key file.dh (
Optional
[str
]) – Content of dh file.kwargs (
str
) – Parameter name is option in OpenVPN configuration file, and value is its parameters as one string.