mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
fix(tls): set insecureSkipVerify to false in FIPS mode [BE-11932] (#849)
This commit is contained in:
parent
1332f718ae
commit
8ffe4e284a
2 changed files with 4 additions and 3 deletions
|
@ -32,9 +32,9 @@ type Service struct {
|
|||
}
|
||||
|
||||
// NewService initializes a new service.
|
||||
func NewService() *Service {
|
||||
func NewService(insecureSkipVerify bool) *Service {
|
||||
tlsConfig := crypto.CreateTLSConfiguration()
|
||||
tlsConfig.InsecureSkipVerify = true
|
||||
tlsConfig.InsecureSkipVerify = insecureSkipVerify
|
||||
|
||||
return &Service{
|
||||
httpsClient: &http.Client{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue