1

Import-AzurePublishSettingsFile 引发 CryptographicException。

我们上传了管理证书,所有 Azure API 都返回结果,但 Import-AzurePublishSettingsFile 抛出以下异常:

importSystem.Security.Cryptography.CryptographicException:发生内部错误。在 System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 小时)

在 System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromBlob(Byte[] awData, IntPtr 密码, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle & pCertCtx)

在 System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromBlob(字节 [] rawData,对象密码,X509KeyStorageFlags keyStorageFlags)

在 System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(字节 [] rawData,字符串密码)

在 Microsoft.WindowsAzure.Commands.Utilities.Common.PublishSettingsImporter.PublishSubscriptionToAzureSubscription(PublishDataPublishProfile profile, PublishDataPublishProfileSubscription s) 在 e:\projects\azure-sdk-tools\WindowsAzurePowershell\src\Commands.Utilities\Common\PublishSettingsImporter.cs:line 56

在 System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()

在 System.Collections.Generic.List 1..ctor(IEnumerable1 集合)

在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 源)

在 Microsoft.WindowsAzure.Commands.Utilities.Common.WindowsAzureProfile.ImportPublishSettings(String fileName) 在 e:\projects\azure-sdk-tools\WindowsAzurePowershell\src\Commands.Utilities\Common\WindowsAzureProfile.cs:line 293

4

0 回答 0