mirror of
https://github.com/portainer/portainer.git
synced 2025-07-18 21:09:40 +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
|
@ -383,7 +383,8 @@ func buildServer(flags *portainer.CLIFlags) portainer.Server {
|
|||
|
||||
gitService := git.NewService(shutdownCtx)
|
||||
|
||||
openAMTService := openamt.NewService()
|
||||
// Setting insecureSkipVerify to true to preserve the old behaviour.
|
||||
openAMTService := openamt.NewService(true)
|
||||
|
||||
cryptoService := &crypto.Service{}
|
||||
|
||||
|
|
|
@ -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