certificate question with dynamicPDF creation

certificate question with dynamicPDF creation

Forum member · Aug 3, 2010
hi all, This is my first post! We are using cete.DynamicPDF but we need to secure the PDF we create dynamically. Each PDF is available from a URL like this. https://xxx.com/a/b/JASH72348923njASBSDASDA_DASNMdas12 We are currently using the following code in C# to create the certificate but I'm not sure how this works. I'm not sure whether this means the certificate is related to the certificate on the url as above (i.e. https) or whether we need a new address to hold the certificate, i.e. pdf.xxx.com please advise? Many thanks, P.s. I think the 'forum' is correct although I'm not sure (?) Signature signature = new Signature("MySignature", 0, 0, 0, 0); _document.Pages[0].Elements.Add(signature); Certificate certificate = new Certificate(StoreName.TrustedPublisher, StoreLocation.LocalMachine, _certificateSubject); _document.Sign("MySignature", certificate);

Re: certificate question with dynamicPDF creation

Forum member · Aug 3, 2010
When testing the certificate locally I get the following error message "Cannot extract the certificate from the store." please advise? Thanks,

Re: certificate question with dynamicPDF creation

Support · Aug 3, 2010
Hello, You can add a certificate to the PDF document using the file path of the certificate or by getting the certificate from the certificate store. The code you are using is to get the certificate from the store. You are getting this error probably because the certificate is not available in the given store and given location. Please double check that the certificate is available or give a correct store name and location. This should work for you. Also the certificate should have a private key to access from store using our product. If you are still having a problem then please try using another location. Certificate certificate = new Certificate(StoreName.TrustedPublisher, StoreLocation.CurrentUser, "John Doe"); You should also give a correct certificate subject or a part of the certificate subject. Thanks, ceTe Software Support Team.