Skip to content

Commit

Permalink
misc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tarunKoyalwar committed Oct 16, 2023
1 parent 3c61b4e commit f5a3248
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ We have [a discussion thread around this](https://github.com/projectdiscovery/nu
### Using Nuclei From Go Code
Complete guide of using Nuclei as Library/SDK is available at [lib](lib/README.md)
Complete guide of using Nuclei as Library/SDK is available at [godoc](https://pkg.go.dev/github.com/projectdiscovery/nuclei/v3/lib#section-readme)
### Resources
Expand Down
6 changes: 0 additions & 6 deletions key.go

This file was deleted.

7 changes: 7 additions & 0 deletions pkg/keys/key.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// keys package contains the public key for verifying digital signature of templates
package keys

import _ "embed"

//go:embed nuclei.crt
var NucleiCert []byte // public key for verifying digital signature of templates
File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/templates/signer/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package signer

import (
"github.com/projectdiscovery/gologger"
v2 "github.com/projectdiscovery/nuclei/v3"
"github.com/projectdiscovery/nuclei/v3/pkg/catalog/config"
"github.com/projectdiscovery/nuclei/v3/pkg/keys"
errorutil "github.com/projectdiscovery/utils/errors"
)

Expand All @@ -12,7 +12,7 @@ var DefaultTemplateVerifiers []*TemplateSigner

func init() {
h := &KeyHandler{
UserCert: v2.NucleiCert,
UserCert: keys.NucleiCert,
}
if err := h.ParseUserCert(); err != nil {
gologger.Error().Msgf("Could not parse pd nuclei certificate: %s\n", err)
Expand Down

0 comments on commit f5a3248

Please sign in to comment.