Skip to content

Commit

Permalink
added skip verify of cert
Browse files Browse the repository at this point in the history
  • Loading branch information
pscalise2 committed Jul 12, 2024
1 parent 480b743 commit 590a2c9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Nnrf_AccessToken/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ type Configuration struct {
func NewConfiguration() *Configuration {
tr := &http.Transport{
TLSNextProto: make(map[string]func(authority string, c *tls.Conn) http.RoundTripper),
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true, // Skip certificate verification
},
}

cfg := &Configuration{
Expand Down
3 changes: 3 additions & 0 deletions Nnrf_NFDiscovery/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ type Configuration struct {
func NewConfiguration() *Configuration {
tr := &http.Transport{
TLSNextProto: make(map[string]func(authority string, c *tls.Conn) http.RoundTripper),
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true, // Skip certificate verification
},
}

cfg := &Configuration{
Expand Down
3 changes: 3 additions & 0 deletions Nnrf_NFManagement/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ type Configuration struct {
func NewConfiguration() *Configuration {
tr := &http.Transport{
TLSNextProto: make(map[string]func(authority string, c *tls.Conn) http.RoundTripper),
TLSClientConfig: &tls.Config{
InsecureSkipVerify: true, // Skip certificate verification
},
}

cfg := &Configuration{
Expand Down

0 comments on commit 590a2c9

Please sign in to comment.