mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-05 01:43:22 +08:00
Add TLS certificates for machine drivers (#73)
This commit is contained in:
@@ -304,6 +304,14 @@ func LoadSessionsFromDisk() error {
|
||||
for _, i := range s.Instances {
|
||||
// wire the session back to the instance
|
||||
i.session = s
|
||||
|
||||
if i.ServerCert != nil && i.ServerKey != nil {
|
||||
_, err := i.SetCertificate(i.ServerCert, i.ServerKey)
|
||||
if err != nil {
|
||||
log.Println(err)
|
||||
return err
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Connect PWD daemon to the new network
|
||||
|
Reference in New Issue
Block a user