【发布时间】:2019-11-08 09:40:06
【问题描述】:
我正在尝试从带有 Az 模块的 Powershell Core 脚本登录到 Azure。 这需要使用上传到 Azure 的自签名证书。
我尝试使用以下方法创建证书:
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"
并使用指纹登录,但 Powershell 给了我这个错误:
Connect-AzAccount : Unix LocalMachine X509Store is limited to the Root and CertificateAuthority stores.
不知道这是什么意思。
问题类似于这个问题https://github.com/Azure/azure-powershell/issues/8658
但不确定如何解释那里的答案。没有证书方面的经验,并且在 Linux 方面的经验有限。
【问题讨论】:
标签: linux azure powershell x509certificate x509