chore(openvpn): support multiple CAs in generated config

This commit is contained in:
Quentin McGaw
2023-12-19 18:21:03 +00:00
parent daa63c276d
commit 5467652b8b
25 changed files with 49 additions and 49 deletions

View File

@@ -16,7 +16,7 @@ type OpenVPNProviderSettings struct {
RemoteCertTLS bool
Ciphers []string
Auth string
CA string
CAs []string
CRLVerify string
Cert string
Key string
@@ -174,8 +174,8 @@ func OpenVPNConfig(provider OpenVPNProviderSettings,
lines.add("setenv", envKey, envValue)
}
if provider.CA != "" {
lines.addLines(WrapOpenvpnCA(provider.CA))
for _, ca := range provider.CAs {
lines.addLines(WrapOpenvpnCA(ca))
}
if provider.CRLVerify != "" {
lines.addLines(WrapOpenvpnCRLVerify(provider.CRLVerify))