We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ade7b96 commit ed70cd5Copy full SHA for ed70cd5
lib/config.go
@@ -440,3 +440,15 @@ func WithCatalog(cat catalog.Catalog) NucleiSDKOptions {
440
return nil
441
}
442
443
+
444
+// WithCertificates allows to use custom auth certificates, all 3 must be set if any
445
+func WithCertificates(ClientCAFile string, ClientCertFile string, ClientKeyFile string) NucleiSDKOptions {
446
+ return func(e *NucleiEngine) error {
447
+ if ClientCAFile != "" && ClientCertFile != "" && ClientKeyFile != "" {
448
+ e.opts.ClientCAFile = ClientCAFile
449
+ e.opts.ClientCertFile = ClientCertFile
450
+ e.opts.ClientKeyFile = ClientKeyFile
451
+ }
452
+ return nil
453
454
+}
0 commit comments