Importing Security Certificates

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cchian
    Forum Member
    • Apr 2001
    • 92

    Importing Security Certificates

    Our software sometimes requires the user to import our Security Certificate in order to communicate wih our server securely over the internet. Normally we have the user double-click or right-click on our certificate, this launches the Certificate Manager Import Wizard. Has anyone tried to have AMS 3.0 launch the Certificates Manager Import Wizard? Seems like Windows uses Rundll32.exe to do this.

    Thanks,

    Carlos
  • Mark
    Indigo Rose Staff Member
    • Jun 2000
    • 1945

    #2
    Re: Importing Security Certificates

    Hi,

    What is the file extension of the Security Certificate? Is it something like *.P12, or *.p10? What options do you get when right click on the certificate?

    You might try these Execute Program actions although I would test them thoroughly in order to make sure that either works properly:

    File Name: %SysDir%\rundll32.exe
    Arguments: cryptext.dll,CryptExtOpenP7R %SrdDir%\MyCertificat

    Or

    File Name: %SysDir%\rundll32.exe
    Arguments: cryptext.dll,CryptExtOpenSTR %SrdDir%\MyCertificat

    I believe the "CryptExtOpenXXX" argument depends on what sort of certificate you are using.

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment

    • Mark
      Indigo Rose Staff Member
      • Jun 2000
      • 1945

      #3
      Re: Importing Security Certificates

      Hi,

      I have figured it out. These should be your arguments:

      cryptext.dll,CryptExtAddSPC c:\mycertificate.p7b

      Make sure that you do not put quotes around the path to your certificate, they seem to cause problems.

      mark.
      MSI Factory The Next Generation Intelligent Setup Builder

      Comment

      • cchian
        Forum Member
        • Apr 2001
        • 92

        #4
        Re: Importing Security Certificates

        Mark,

        Your last post did the trick. Thank you!!!

        Carlos

        Comment

        • cchian
          Forum Member
          • Apr 2001
          • 92

          #5
          Re: Importing Security Certificates

          Hi Mark, thanks for your reply. I will play around with your suggestions and see how it goes.

          The file extension is .p7b
          When users double-click or right-click on the certificate, it brings up the Certificate Manager Import Wizard, then we have users click on Next > Place all certificates into the following store > Browse > Trusted Root Certification Authorities > OK > Next > Finish.

          This process only seems to work if user system is updated enough to support Security Certificates.

          Carlos

          Comment

          • Mark
            Indigo Rose Staff Member
            • Jun 2000
            • 1945

            #6
            Re: Importing Security Certificates

            Hi,

            Try using this as your argument:

            rundll32.exe cryptext.dll,CryptExtOpenPKCS7 "%SrdDir%\MyCertificat.p7b"

            I think that will work.

            mark.
            MSI Factory The Next Generation Intelligent Setup Builder

            Comment

            Working...
            X