*Приложение работает нормально на моем локальном компьютере с Windows.
*Приложение работает нормально на моем локальном компьютере с Windows.
*Приложение работает нормально. сильный>
Код: Выделить всё
Server Error in '/' Application.
A certificate chain could not be built to a trusted root authority.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Cryptography.CryptographicException: A certificate chain could not be built to a trusted root authority.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[CryptographicException: A certificate chain could not be built to a trusted root authority.]
System.Security.Cryptography.Pkcs.PkcsUtils.CreateBagOfCertificates(CmsSigner signer) +316270
System.Security.Cryptography.Pkcs.SignedCms.Sign(CmsSigner signer, Boolean silent) +259
System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent) +425
Digi_Sign.PFX.PFX_signing_Json_Multiple_Pan.Sign(Byte[] data, X509Certificate2 certificate) in C:\Users\BhushanBhalerao\Downloads\DotNet_sample\DotNet_Codes\Digi_Sign\Digi_Sign\PFX_signing_Json_Multiple_Pan.aspx.cs:387
Digi_Sign.PFX.PFX_signing_Json_Multiple_Pan.btnvalidate_Click(Object sender, EventArgs e) in C:\Users\BhushanBhalerao\Downloads\DotNet_sample\DotNet_Codes\Digi_Sign\Digi_Sign\PFX_signing_Json_Multiple_Pan.aspx.cs:96
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +11628060
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +274
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1959
[*]Я проверил с помощью консоли Kudu и FTP, и я могу подтвердить, что файл .pfx присутствует на сервере.
[*]Я также добавил файл .pfx< /code> сертификат в разделе сертификатов Службы приложений Azure.
Подробнее здесь: https://stackoverflow.com/questions/793 ... zure-app-s
Мобильная версия