Commit afafb3f2 authored by Cosmin Cojocar's avatar Cosmin Cojocar

Use the azure certificate password when decoding the certificate

parent 4ae3b032
...@@ -159,7 +159,7 @@ func newServicePrincipalToken(az *Cloud) (*azure.ServicePrincipalToken, error) { ...@@ -159,7 +159,7 @@ func newServicePrincipalToken(az *Cloud) (*azure.ServicePrincipalToken, error) {
if err != nil { if err != nil {
return nil, fmt.Errorf("reading the client certificate from file %s: %v", az.AADClientCertPath, err) 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 { if err != nil {
return nil, fmt.Errorf("decoding the client certificate: %v", err) return nil, fmt.Errorf("decoding the client certificate: %v", err)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment