Create the certificate store if it does not exist

This commit is contained in:
adnano
2020-09-29 11:12:23 -04:00
parent 8facfabec5
commit fbc1f76194
5 changed files with 7 additions and 9 deletions

View File

@@ -48,8 +48,6 @@ func init() {
}
return err
}
client.CertificateStore = gmi.CertificateStore{}
client.GetCertificate = func(hostname string, store gmi.CertificateStore) *tls.Certificate {
// If the certificate is in the store, return it
if cert, ok := store[hostname]; ok {