支持设置根证书校验服务端
This commit is contained in:
parent
425e9f1c5a
commit
38a986634c
|
@ -663,6 +663,10 @@ func (device *iotDevice) Init() bool {
|
|||
RootCAs: certPool,
|
||||
InsecureSkipVerify: false,
|
||||
})
|
||||
} else {
|
||||
options.SetTLSConfig(&tls.Config{
|
||||
InsecureSkipVerify: true,
|
||||
})
|
||||
}
|
||||
} else {
|
||||
options.SetTLSConfig(&tls.Config{
|
||||
|
|
Loading…
Reference in New Issue