Creating Certificate using Acrobat dll in C# program

Hello,
I need to create a certificate, basically .pfx file in C#. I used makecert tool to create the certificate first and then export it into .pfx file through command line. My attempt was successful. Then I used the .pfx file to encrypt a pdf using iTextSharp. The pdf is encrypted successfuly but when i try to open the pdf,  Acrobat/Reader shows a message "You do not have access rights to this encrypted document". I intalled the .pfx file but the problem still remains.
Can anyone please guide me what am I doing wrong. I used the following code from command prompt to create a certificate and then export the certificate to a pxf file
Create certificate - makecert -r -pe -n "CN=My CA" -ss CA -sr CurrentUser -a sha1 -sky signature -sv MyCA.pvk MyCA.cer
Export to pfx - pvk2pfx -pvk MyCA.pvk -spc MyCA.cer -pfx MySPC.pfx -po <password>
Is it possible to create a pfx file using acrobat dll in C#??
Please help me, its urgent.
Thanks in advance!

No, there are no APIs for working with certificates from C#.
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Tue, 13 Dec 2011 22:35:57 -0800
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: Creating Certificate using Acrobat dll in C# program
Re: Creating Certificate using Acrobat dll in C# program
created by poortip87<http://forums.adobe.com/people/poortip87> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4083490#4083490

Similar Messages

  • Creating PDF using Acrobat SDK

    Hello All,
                    I am developing application in VC++ which has requirement to create PDF file programatically and then write that file .
                    I just wanted to know can I use Acrobat SDK to create and Edit PDF file?
                    Please help me as I am new to this.
    Waiting 4 soon reply.......................
    Thanks

    Dear Arthi,
    This is the C++ code which will help u to create the pdf using the VC++ plugin, Hope this helps you,
    PDDoc TargetPDF = PDDocCreate();
    ASFixedRect mediaBox = { fixedZero, ASInt32ToFixed(792), ASInt32ToFixed(612), fixedZero };
    PDPage emptyPage = PDDocCreatePage (TargetPDF, PDBeforeFirstPage, mediaBox);
    PDPageRelease (emptyPage);
    PDDocSave (TargetPDF, PDSaveFull | PDSaveCollectGarbage | PDSaveLinearized,
        pdfPathName, ASGetDefaultUnicodeFileSys(), NULL, NULL);
    PDDocClose (TargetPDF);
    ASFileSysReleasePath(fileSys, pdfPathName);
    Regard's
    Amith Sai

  • Using Acrobat.dll

    HI,
    I am trying to direct print a pdf using visual c# and acrobat.dll without installing acrobat 11 pro. the dll is registered. however I am still getting the class not registered error. Any suggestion ?

    You can't use parts of Adobe Acrobat.

  • Create forms using Acrobat

    This question was posted in response to the following article: http://help.adobe.com/en_US/acrobat/X/pro/using/WSB3F26303-0F1D-494a-BC55-7BF7F6684B4D.htm l

    Just found the solution (and it worked):
    If for some reason “Enable Additional Features…” is greyed out, make sure that you are not still in the form editing mode.  Under the tasks panel (usually in the right-hand column) click the “Close Form Editing” button and it should solve your problem.

  • Creating DLL using Acrobat SDK

    Hi,
    I want to create one DLL using Acrobat SDK and VS 2010 Win32. If i use this dll in our program it should show functions for opening pddoc, total number of annots, Can I do this using Acrobat SDK. I know we can create plug-in extension with .API.
    Please let me know can i do this using Acrobat SDK.
    Thanks,
    Kruthi

    Please use the forum for Acrobat SDK.

  • How to create a certificate using keytool / terminal?

    I have problems with creating certificates using the terminal. I use the instructions below and typed in all the required information. When it asks me to type "yes" and confirm, the whole process just starts from the beginning over and over and I have to type in the same things. What do I do wrong? How do I confirm the information I typed in?
    I am trying to create a certificate to sign apps for GooglePlay and Amazon. I am using DPS Professional.
    Thanks for help!
    Instructions:
    (Mac OS) Create a certificate file using Keytool
    Open Terminal, which is located in the Applications > Utilities folder.
    Type (or paste) the following line (replace “myname.key.p12” with the actual name of your certificate):
    1
    keytool -genkey -v -keystore myname.key.p12 -alias alias_name -keyalg RSA -keysize 2048 -storetype pkcs12 -validity 10000
    Specifying “10000” sets the expiration date after 22 October 2033.
    Enter and reenter a password. Until the Viewer Builder supports the creation of custom Android apps, it's necessary to share this password with Adobe. Create a password that you can share.
    Follow the prompts to specify the certificate information.
    When prompted to confirm choices, enter yes, and then press Return to use the same password.
    A certificate is created in your prompt location, such as your user name folder. Copy this certificate file to a known location. Write down the password as well.

    It could be access/rights issue. Enable root user and try again.

  • How do we create certificate with .pem extension using keytool

    Hai all,
    please tell me the procedure to create certificates using keytool with .pem extension.

    I dont think keytool can do this, try OpenSSL:
    openssl pkcs12 -in test.p12 -out test.pem
    David

  • To access bookmarks in pdf doc using acrobat sdk with C#

    Hi, I am converting a word doc to PDF. While doing this the headlines in word doc are getting converted to bookmarks in PDF & I get a bookmark tree. I want the bookmarks to be collapsed. I am using acrobat dll to convert word doc to pdf. Want to use the same to collapse the bookmarks.
    Any help would be appreciated.
    Thanks & Regards,
    Lalit

    Hi Irosenth,
    If we have Acrobat installed on our m/c in Micorsoft office word I get an "Acrobat" tab. In that I get an option to create "PDF" from word.
    So keeping this in mind I created a  project in C# using VS 2008. In this project I took the reference of "Acrobat.dll" the com library.
    Using the reference of this library I converted the word/excel/ppt docs to PDF.
    Below is the code snippet :
    public 
    void startConversion(string docFile, string pdfFile){
    Acrobat.
    AcroAVDocClass _acroDoc = new Acrobat.AcroAVDocClass();Acrobat.
    AcroPDDoc _pdDoc = null; 
    string strNonPDFFile = docFile; 
    string strPDFFile = pdfFile; 
    _acroDoc.Open(strNonPDFFile, strPDFFile);
    _pdDoc = (Acrobat.
    AcroPDDoc)(_acroDoc.GetPDDoc());
    _pdDoc.Save(
    Convert.ToInt16(Acrobat.PDSaveFlags.PDSaveFull), strPDFFile); 
    _pdDoc.Close();
    _pdDoc =
    null;_acroDoc.Close(1);
    _acroDoc =
    null;}
    This does convert Word/exce/ppt to pdf successfully. But I wanted to get access to the bookmarks of the PDF file....
    Any help would be appreciated.
    Thanks & Regards,
    Lalit

  • Problem in Creating Certificate in java

    Dear all
    I have problem in creating certificate using the java lang
    I created the keystore as shown in my code:
    but i still hasing problem with the code as u can see in the pics...
    Please help me to create my digitale certificate because i have to verifying it later... and i am still having no idea how i am going to verify the certificate.....
    Thanks in advance..
    Mariah
    Message was edited by:
    screen83

    i am sorry the picture can't be displayed
    anywhy, this the the code:
    1KeyStore ks = KeyStore.getInstance("JKS");
    2               char[] password = getPassword();
    3               java.io.FileInputStream fis =
    4               new java.io.FileInputStream("keyStoreName");
    5               ks.load(fis, password);
    6               fis.close();
    7               // get my private key
    8               KeyStore.PrivateKeyEntry pkEntry = (KeyStore.PrivateKeyEntry)
    9               ks.getEntry("privateKeyAlias", password);
    10               PrivateKey myPrivateKey = pkEntry.getPrivateKey();
    11
    12               // save my secret key
    13               javax.crypto.SecretKey mySecretKey;
    14               KeyStore.SecretKeyEntry skEntry =
    15               new KeyStore.SecretKeyEntry(mySecretKey);
    16               ks.setEntry("secretKeyAlias", skEntry, password);
    17
    18               // store away the keystore
    19               java.io.FileOutputStream fos =
    20               new java.io.FileOutputStream("newKeyStoreName");
    21               ks.store(fos, password);
    22               fos.close();
    and I have error at line 2 when I am calling rhe method getPassword();
    and at line 9 when calling the method getEntry()
    and at line 16 when calling the mthod setEntry
    Thanks
    Mariah
    Message was edited by:
    screen83

  • Upgraded MS Office 2010 to 2013, how do I get the pdf menu option in Word, Excel, etc - Using Acrobat X

    Hi
    Have just upgraded from MS Office 2010 to Office 2013.
    Have lost the menu option "Acrobat" for creating pdfs (using Acrobat X).
    How to I get it back?
    Cheers

    uninstall acrobat, clean (Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs) and reinstall acrobat.

  • We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC

    We now use Acrobat xi for special active forms we created that include certifications and signature fields, some of the forms are programmed to create other forms, will we have a problem upgrading to DC
    Our users use a form template to create other adobe forms with calculated fields, signature fields (using digital signatures)
    , and buttons. Will we be able to continue developing these forms if we upgrade to Acrobat DC?

    Hi Alex ,
    In general ,you would not have any issues and problems moving to Acrobat DC .It has a different user interface and with more enhanced features .
    You would be able to develop the kind of forms you are referring to .
    You could refer to the following document to get more information about Acrobat DC .
    FAQ | Adobe Acrobat DC
    If in case you are referring to any particular issue or problem or if you face any regarding Acrobat DC ,we are always here to help you with that .
    Please feel free to write us back .
    Regards
    Sukrit Dhingra

  • Cannot creat pdf from Powerpoint using Acrobat Pro X

    I cannot create pdf files from Powerpoint 2010 using Acrobat Pro X.  I am using Windows 7 32-bit. There are no updates for my Acrobat Pro X and so the PDFMaker is up to date.  When trying to save to a pdf, the program will crash.  The problem signature from Powerpoint states that the problem name is "APPCRASH" and that the fault module named MPS.dll.  HELP!

    Here's a slightly better version.
    set urllist to {"http://www.cnn.com", "http://www.apple.com", "http://www.macintouch.com"}
    set numURLs to (count urllist)
    on pageloaded(timeoutvalue) -- in seconds
    delay 2
    repeat with i from 1 to timeout_value
    tell application "Safari"
    if (do JavaScript "document.readyState" in document 1) is "complete" then
    return true
    else if i is timeout_value then
    return false
    else
    delay 1
    end if
    end tell
    end repeat
    return false
    end page_loaded
    tell application "Safari"
    activate
    end tell
    tell application "System Events"
    tell process "Safari"
    set frontmost to true
    repeat with i from 1 to (numURLs)
    tell application "Safari"
    set URL of document 1 to item i of urllist
    end tell
    my page_loaded(5)
    keystroke "p" using {command down}
    click menu button "PDF" of sheet 1 of window 1
    click menu item 2 of menu 1 of menu button "PDF" of sheet 1 of window 1
    keystroke return
    end repeat
    end tell
    end tell
    Eric

  • Using Acrobat X and creating a PDF File from EXCEL 2010, I notice that the Pagination restarts at 1 for each Worksheet included in the PDF.

    I use Acrobat X Standard and created a PDF file from two or more worksheets using EXCEL 2010.
    The resulting PDF file restarts the PAGE # (In header/footer settings of Excel) at 1 for each worksheet.
    However, a colleague of mine who has Acrobat X Pro version, using EXCEL 2010 and same exact file does the same task, he gets a file that starts at page 1 and second worksheet continues the page # from the last page of the First worksheet.
    We both are using the ACROBAT menu (not the print to Adobe printer) to create the file so that we can get Bookmarks included in the resulting file for each worksheet.
    We cannot figure out any option in Acrobat's preferences that controls the pagination on either of these versions of Acrobat.
    So is this just a feature that works one way in Standard version and another way in the Pro version, and the user has no control over it?

    This is so sad. I read your comments and I said, "Huh?" Haha!
    I tried the indexed color option and it did make the final file smaller. Around 600KB. But there's probably another way to make it even smaller like the gazillion-paged pdf file that I mentioned that was only about 300KB.
    And by saying a layout program, does that mean like Adobe InDesign? Does that mean that I should just make my graphics in Photoshop and then import using another program and finish the file there?
    What other layout programs can I use?
    Thank you so much!

  • Create PDF from Web page using Acrobat X - Page Order

    I have a structured web site that is in fact Program Help The web pages are structured as follows:
    index.html - Main Topic Index page with links to all topic subject index pages
    topic/index.html - Topic Subject Index Page with links to all subject pages
    topic/subject.html - Subject page
    .....etc
    Using Acrobat 5 "Create PDF from Web Page" created a perfect logical PDF  page structure in the page order of of the web site. In Acrobat 5 page 1  was the Main Topic Index Page, page 2 was the 1st Topic Subject Index  Page, page 3 was the 1st Subject Page, then the 2nd subject of the 1st  Topic, etc. until the Topic Subjects were exhausted after which the 2nd  Topic Subject Index Page and so it went on. As a result the bookmark  structure was sensible. The page order was as follows:
    Main Topic Contents
    Topic 1 Contents
    Subject 1 of Topic 1
    Subject 2 of Topic 1
    Topic N Contents
    Subject 1 of Topic N
    Subject 2 of Topic N
    Acrobat X (just purchased) produces a differently structured PDF from the same HTML pages. The order is:
    Main Topic Contents
    Topic 1 Contents
    Topic 2 Contents
    Topic N Contents
    Main Topic Contents (a second time)
    Subject 1 of Topic 1
    Subject 2 of Topic 1
    Subject N of Topic 1
    Subject 1 of Topic 2
    Subject 2 of Topic 2
    Subject N of Topic N
    Question: Is there any way I can get back with Acrobat X the same page order I got with Acrobat 5?
    Any help appreciated. The website is www.caliach.com/caliach/vision/help/index.html
    Chris

    Acrobat is using the underlying mark up of the rendered HTML page.
    This may or may not provide an adequate input to Acrobat when it is noodling out how and what to tag.
    I suspect you may find that, to obtain an adequately tagged PDF, you may have to capture the web page content with the create bookmarks and create tags options off.
    Once you have the PDF make working copies.
    Try letting Acrobat tag this already created PDF to see what happens.
    You may have to manually tag the PDF.
    n.b., The default read order for western language can be altered by user selections in the accesibility setup or by selection in the PDF page(s) Page Properties.
    Be well...

  • Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?

    hi !
    Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?
    Please answer.

    hi !
    Can I include a ClickOnce deployment and rest Registry ActiveX dll to register (program created by c #)?
    Please answer.
    Hello,
    We could not registry activex dll with clickonce directly, but here is a workaround below.
    1. Create Package for that activex dll to registry it to com.
    2. Package that MSI to CAB file.
    #1,#2 for detailed steps, please refer to the following blog.
    How to develop and deploy ActiveX control in C#
    3.
    Deploying CAB Files Using ClickOnce Deployment
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for