Skip to content

Commit

Permalink
adding crl file support
Browse files Browse the repository at this point in the history
  • Loading branch information
RavinderReddyF5 committed Oct 15, 2024
1 parent d1eabd0 commit 8ad54d7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
12 changes: 10 additions & 2 deletions bigip/resource_bigip_ltm_profile_ssl_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,18 @@ func resourceBigipLtmProfileClientSsl() *schema.Resource {
Computed: true,
Description: "(Advertised Certificate Authorities)Specifies that the CAs that the system advertises to clients is being trusted by the profile. The default is `None`",
},

"crl_file": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Certificate revocation file name",
},

"allow_expired_crl": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "allow_expired_crl option to be `enabled` / `disabled`. Default is `disabled`.",
},
"forward_proxy_bypass_default_action": {
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -653,6 +657,9 @@ func resourceBigipLtmProfileClientSSLRead(ctx context.Context, d *schema.Resourc
if _, ok := d.GetOk("crl_file"); ok {
_ = d.Set("crl_file", obj.CrlFile)
}
if _, ok := d.GetOk("allow_expired_crl"); ok {
_ = d.Set("allow_expired_crl", obj.AllowExpiredCrl)

Check failure on line 661 in bigip/resource_bigip_ltm_profile_ssl_client.go

View workflow job for this annotation

GitHub Actions / golint

obj.AllowExpiredCrl undefined (type *"github.com/f5devcentral/go-bigip".ClientSSLProfile has no field or method AllowExpiredCrl)

Check failure on line 661 in bigip/resource_bigip_ltm_profile_ssl_client.go

View workflow job for this annotation

GitHub Actions / golint

obj.AllowExpiredCrl undefined (type *"github.com/f5devcentral/go-bigip".ClientSSLProfile has no field or method AllowExpiredCrl)
}
if _, ok := d.GetOk("forward_proxy_bypass_default_action"); ok {
_ = d.Set("forward_proxy_bypass_default_action", obj.ForwardProxyBypassDefaultAction)
}
Expand Down Expand Up @@ -891,6 +898,7 @@ func getClientSslConfig(d *schema.ResourceData, config *bigip.ClientSSLProfile)
}
config.ClientCertCa = d.Get("client_cert_ca").(string)
config.CrlFile = d.Get("crl_file").(string)
config.AllowExpiredCrl = d.Get("allow_expired_crl").(string)

Check failure on line 901 in bigip/resource_bigip_ltm_profile_ssl_client.go

View workflow job for this annotation

GitHub Actions / golint

config.AllowExpiredCrl undefined (type *"github.com/f5devcentral/go-bigip".ClientSSLProfile has no field or method AllowExpiredCrl)) (typecheck)

Check failure on line 901 in bigip/resource_bigip_ltm_profile_ssl_client.go

View workflow job for this annotation

GitHub Actions / golint

config.AllowExpiredCrl undefined (type *"github.com/f5devcentral/go-bigip".ClientSSLProfile has no field or method AllowExpiredCrl) (typecheck)
config.ForwardProxyBypassDefaultAction = d.Get("forward_proxy_bypass_default_action").(string)
config.GenericAlert = d.Get("generic_alert").(string)
config.HandshakeTimeout = d.Get("handshake_timeout").(string)
Expand Down
4 changes: 4 additions & 0 deletions docs/resources/bigip_ltm_profile_client_ssl.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ Don't insert empty fragments and No TLSv1.3 are listed as Enabled Options. `Usag

* `ca_file` - (Optional) (Trusted Certificate Authorities)Specifies a client CA that the system trusts. The default is `None`.

* `crl_file` - (Optional) Specifies the name of a file containing a list of revoked client certificates. The default is `None`.

* `allow_expired_crl` - (Optional) Instructs the system to use the specified CRL file even if it has expired. The default is `disabled`.

* `client_cert_ca` - (Optional)(Advertised Certificate Authorities)Specifies that the CAs that the system advertises to clients is being trusted by the profile. The default is `None`.

* `renegotiation` - (Optional) Enables or disables SSL renegotiation.When creating a new profile, the setting is provided by the parent profile
Expand Down
3 changes: 2 additions & 1 deletion vendor/github.com/f5devcentral/go-bigip/ltm.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8ad54d7

Please sign in to comment.