Skip to content

Commit

Permalink
Merge pull request #1197 from vmware/fix-sni
Browse files Browse the repository at this point in the history
Fix SNI paths assignment in LB virtual server
  • Loading branch information
annakhm authored Apr 29, 2024
2 parents 4904bd8 + 03cc87b commit ebd6e3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nsxt/resource_nsxt_policy_lb_virtual_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -909,12 +909,14 @@ func getPolicyClientSSLBindingFromSchema(d *schema.ResourceData) *model.LBClient
crlList := interface2StringList(data["crl_paths"].([]interface{}))
certPath := data["default_certificate_path"].(string)
profilePath := data["ssl_profile_path"].(string)
sniList := interface2StringList(data["sni_paths"].([]interface{}))
profileBinding := model.LBClientSslProfileBinding{
CertificateChainDepth: &chainDepth,
ClientAuth: &clientAuth,
ClientAuthCaPaths: caList,
ClientAuthCrlPaths: crlList,
DefaultCertificatePath: &certPath,
SniCertificatePaths: sniList,
SslProfilePath: &profilePath,
}

Expand All @@ -936,6 +938,7 @@ func setPolicyClientSSLBindingInSchema(d *schema.ResourceData, binding *model.LB
}
elem["ca_paths"] = binding.ClientAuthCaPaths
elem["crl_paths"] = binding.ClientAuthCrlPaths
elem["sni_paths"] = binding.SniCertificatePaths
elem["default_certificate_path"] = binding.DefaultCertificatePath
if binding.SslProfilePath != nil {
elem["ssl_profile_path"] = *binding.SslProfilePath
Expand Down

0 comments on commit ebd6e3a

Please sign in to comment.