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.

Wed Jun 05, 2024 10:17 am

Hi
I am digitally signing a pdf with a PFX file.
When I do this on my local development environment, the signature validates properly.
However when I deploy the code into my production server, the PDF document show this error message:
"there are error in the formatting or information contained in the signature"

we are using c# .net 4.8.

Same signature is used, with the same PDF. the only difference is the server doing the signing.
Can you please instruct how we can solve this?

moranium
 
Posts: 3
Joined: Wed Jun 05, 2024 10:12 am

Thu Jun 06, 2024 2:18 am

Hello,

Thanks for your inquriy.
To help us investigate your issue further, please provide us with the following information. You can attch them here as an attachment or send them to this email: support@e-iceblue.com. Thanks in advance.
1. Certificate file and password;
2.System information of your production environment (e.g. Windows server 2022);
3.Full test code and test file.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Thu Jun 06, 2024 5:42 am

Hi
Thanks for your reply
I have some news
When we changed the IIS "load user profile" app pool setting to "true" , it now works.
Do you know what we can do to run this code without changing this setting to "true"?

moranium
 
Posts: 3
Joined: Wed Jun 05, 2024 10:12 am

Thu Jun 06, 2024 6:37 am

Hello,

Thanks for your feedback.
Yes, when the program is deployed to IIS, you need to set "load user profile" to "true" to ensure that the PFX file is loaded by the program. Sorry, we are not particularly clear about the specific rules at present, so we have no other options to offer. I have searched for some information for your reference: https://stackoverflow.com/questions/171 ... f-iis-pool.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 454
Joined: Mon Dec 27, 2021 2:23 am

Thu Jun 06, 2024 7:50 am

Ok thank you

moranium
 
Posts: 3
Joined: Wed Jun 05, 2024 10:12 am

Return to Spire.PDF