Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Nov 10, 2015 3:29 pm

Hello,
I am getting a System.Security.Cryptography.CryptographicException when I try to load a certificate on the IIS to insert a signature in my PDF.
After searching the web I came to the result that it is possible to set the "Load user profile" option of the AppPool to "true". That would work but it gives the IIS the full user rights.
Is there another way to load the certificate?

Here is the full exception:

System.Security.Cryptography.CryptographicException: An internal error occurred.

at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
at System.Security.Cryptography.X509Certificates.X509Utils._LoadCertFromFile(String fileName, IntPtr password, UInt32 dwFlags, Boolean persistKeySet, SafeCertContextHandle& pCertCtx)
at System.Security.Cryptography.X509Certificates.X509Certificate.LoadCertificateFromFile(String fileName, Object password, X509KeyStorageFlags keyStorageFlags)
at Spire.Pdf.Security.PdfCertificate..ctor(String pfxPath, String password)


Best regards

eternity
 
Posts: 6
Joined: Thu Jul 30, 2015 7:21 am

Wed Nov 11, 2015 8:59 am

Hello,

Thanks for your feedback. I have found the issue you mentioned and posted it to our Dev team, once it is resolved or we have some other update for you, we will let you know ASAP.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Nov 24, 2015 10:49 am

Hi,
is there any process in this issue?

Best regards.

eternity
 
Posts: 6
Joined: Thu Jul 30, 2015 7:21 am

Wed Nov 25, 2015 2:56 am

Hello,

Sorry that let you wait for long time. Sorry that by investigation we found that there is no another way to load the certificate.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.PDF

cron