Page 1 of 1

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

Posted: Mon Jul 25, 2016 2:53 pm
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

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

Posted: Tue Jul 26, 2016 10:46 am
by HighAley
Hello.

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

Thank you.

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

Posted: Tue Jul 26, 2016 12:13 pm
by mbikl
Hello,

I use last version 2016.1.21.0.

Martin

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

Posted: Wed Jul 27, 2016 10:50 am
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.