Solved

SSL Silent Install

Posted on 2008-10-07
7
1,814 Views
Last Modified: 2012-06-27
I am trying to find a script to install SSL certificates silently.

i would prefer a way to do this with batch or VBS, but I am open to anything if these will not do the job!

Thanks guys!
0
Comment
Question by:geekhelp4u
  • 4
  • 3
7 Comments
 
LVL 31

Expert Comment

by:Paranormastic
ID: 22661642
If this is pushing a common cert to all (e.g. your CA's root certificate) this can be done via GPO:
Computer Settings / Windows Settings / Security Settings / Public Key Polices / Trusted Certificate Authorities

Otherwise, I believe this might work for you:
http://www.visualbasicscript.com/m_37106/tm.htm

Common cert store names when dealing with CAPICOM are:
User / Machine - MY
Intermediate -  CA
Root - ROOT
Sometimes you may need to put the intermediate in both CA and ROOT, if you are doing that keep that in the back of your head if just one or the other doesn't work.
0
 
LVL 1

Author Comment

by:geekhelp4u
ID: 22662995
how would i get this to install a .cer  in IE silently?
0
 
LVL 31

Expert Comment

by:Paranormastic
ID: 22669027
Try checking the second half of this, there is a code example at the bottom that you can look at too:
http://pkidev.internet2.edu/rootcerts/
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 1

Author Comment

by:geekhelp4u
ID: 22669617
Thanks, looks promising... but the page to download and install the CREN root certificate via the CEnroll control takes me to a blank white screen?
0
 
LVL 31

Expert Comment

by:Paranormastic
ID: 22678372
Don't worry about downloadign their root cert, just the code sample.  Their root cert is just for authenticating their root and doens't really have anything to do with your situation.
0
 
LVL 1

Author Comment

by:geekhelp4u
ID: 22678906
OK.. so have you done this before? If so, please break it down more dummy proof.

I am assuming that the:

 credentials = "MIID0gYJKoZIhvcNAQcCoIIDwzCCA78CAQExADALBgkqhkiG9w0BBwGgggOnMIIDozCCAoug" & _ ...

is my .cer file.  How do I get this code from a .cer?
0
 
LVL 31

Accepted Solution

by:
Paranormastic earned 250 total points
ID: 22712676
The MII... is the normal look to a certificate signing request (.csr) file or a signed cert file (.cer).  Working with your previous statement, yes this looks good.

To get the text format for the .cer you can use this command:
certutil -encode filename.cer filename.txt

Then you can open that up into notepad and copy/paste it or call it from another program.  If you're using perl or something you could grab that data submit it as part of your program that way.

The code example is using a PKCS #7 file, which is the server cert bundled with the root certificate chain in one file (.p7b).    Usually the best way to handle this is to create a p7 file for the root chain and handle the end entity's cert seperately.  You can download the p7 file from http://YourCAName/certsrv and click the last option and then get the root chain there.

Generally, either you would deploy the root chain via GPO, etc. or you could use the same sample code and put the root chain first, then follow it with a similar entry for the end entity cert (your .cer file that you encoded to get the text).
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
I have published numerous articles here at Experts Exchange that present programs/scripts written in a language called AutoHotkey. Each of those articles has a brief paragraph describing where to download the product and how to install it. I have al…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now