How can I automate the import of crt certificates

Housekat's picture

please advise

EdT's picture

What are crt certificates?

crt = cathode ray tube as far as I am aware...

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

philbenson's picture

Cathode Ray Tube...

your showing your age now EdT, next up you will be telling us you remember when Remote Controls for the (CRT) TV's had a cable ;-)

Back to the subject,
when importing cer's etc. just be aware to which "store" they are to be imported to, Computer or User.

Cheers
Phil

EdT's picture

I remember when CRT TV's were

I remember when CRT TV's were only monochrome and had no remote of any kind. That was before the time of couch potatoes too.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

AngelD's picture

Maybe HK is talking about how

Maybe HK is talking about how to import a .cer (certificate) file?
In that case; check out CertMgr.Exe

rpfenninger's picture

Check out my tip at appdeploy.com

It may help you.

www.appdeploy.com/tips/detail.asp

Cheers
Roland
 

VBScab's picture

CRTs aren't the same as CERs.

CRTs aren't the same as CERs. I believe the OP needs to use KeyTools.EXE. As usual, lots of words on MSDN. However, that tool requires a password input so perhaps it may involve the use of AutoIt :(

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.

Housekat's picture

Thanks AngelD and rpfenninger

certmgr.exe is working indeed

VBScab's picture

Really?!? I've always worked

Really?!? I've always worked on the basis that CRTs are completely different to CERs. Maybe someone renamed the CER as a CRT...

Don't know why 'x' happened? Want to know why 'y' happened? Use ProcMon and it will tell you.
Think about using http://www.google.com before posting.

Ravi's picture

It can be done thru MMC also.

It can be done thru MMC also.

Gene Kupfer's picture

Certs

.CER and .CRT are basically the same thing. You can convert your .CRT to a .CER by double-clicking the .CRT-->Details Tab-->click Copy to File, and follow the prompts.

If you have a certificate authority (CA) in your domain you can add a cert to it for distribution to domain members. You can also use a GPO. Otherwise you can use the keytool, MMC or IE to import it. I'm not familiar with any 3rd party automation tools for this, but you can probably script out the keytool syntax in a batch file (if all variables are constant, replace file name portion with %1) so that you can just drag and drop files on top of it. It will execute the command with %1 as the file you dropped on it. Don't forget to include the -storepass if applicable.

If you're doing this as part of a Wise package and your import variables are always the same, you can probably just handle the import action as part of the installation. With some advanced scripting you can set this up to handle certs with different names as well.

Symantec EndPoint Virtualization
Product Info
Facebook