Digital Signature error at step 2: Subject name string is em

Stimulsoft Reports.WEB discussion
Post Reply
mbikl
Posts: 2
Joined: Mon Jul 25, 2016 2:43 pm

Digital Signature error at step 2: Subject name string is em

Post by mbikl »

Hello,

I would like to export document to PDF and sign by digital signature.
If I use my code on my local computer, everything is right. If I use this code on my production server - Windows Server 2012 R2, I get message "Digital Signature error at step 2: Subject name string is empty". Where is a problem? Any setting of Windows Server?

Code: Select all

            FileStream fs = new FileStream("c:\\apl\\certifikates\\test.pfx", FileMode.Open);
            byte[] buf = new byte[fs.Length];
            fs.Read(buf, 0, buf.Length);

            settings.UseDigitalSignature = true;
            settings.GetCertificateFromCryptoUI = false;
            settings.CertificateData = buf;
.......
            report.ExportDocument(StiExportFormat.Pdf, stream, settings);

Thank you

Martin Bíkl
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Digital Signature error at step 2: Subject name string i

Post by HighAley »

Hello.

Could you specify which version you use?
There could be error if there is no access to the certificate.

Thank you.
mbikl
Posts: 2
Joined: Mon Jul 25, 2016 2:43 pm

Re: Digital Signature error at step 2: Subject name string i

Post by mbikl »

Hello,

I use last version 2016.1.21.0.

Martin
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Digital Signature error at step 2: Subject name string i

Post by HighAley »

Hello.

We have an idea what this could be.
Please, write us to support@stimulsoft.com.
We will prepare a special build for you that will help us to know why you get this error.

Thank you.
Post Reply