I am trying to log in to Azure from a Powershell Core script with Az module. This requires using a self signed certificate that is uploaded to Azure.

I tried creating a certificate using:

openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout /etc/ssl/private/key.pem -out /etc/ssl/private/cert.pem -subj "/C=LV/ST=Some-State/L=LV/O=IT/OU=IT"

and using the thumbprint to login, but Powershell gives me this error:

Connect-AzAccount : Unix LocalMachine X509Store is limited to the Root and CertificateAuthority stores.

Not sure what this means.

Problem is similar to this issue https://github.com/Azure/azure-powershell/issues/8658[1]

But not sure how to interpret the answers there. No experience with certificates and limited exp with Linux.

References

  1. ^ External link (github.com)

Source