Use the azure certificate password when decoding the certificate

pull/6/head
Cosmin Cojocar 2017-07-04 08:56:40 +02:00
parent 4ae3b032f4
commit afafb3f231
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ func newServicePrincipalToken(az *Cloud) (*azure.ServicePrincipalToken, error) {
if err != nil {
return nil, fmt.Errorf("reading the client certificate from file %s: %v", az.AADClientCertPath, err)
}
certificate, privateKey, err := decodePkcs12(certData, az.AADClientSecret)
certificate, privateKey, err := decodePkcs12(certData, az.AADClientCertPassword)
if err != nil {
return nil, fmt.Errorf("decoding the client certificate: %v", err)
}