Hi guys,

I've spent most of the day trying different things to install a certificate via a batch file so I can deploy it to machines via SCCM.

It's for a Microsoft Lync package and the certificate extension is ".p7b".

I have read you can use the CertUtil.exe but it's just not working for me.  Maybe this will only work for ".cer" certificates?

I've never really worked with certificates before so it's all new to me, any guidance is appreciated.

0 Comments   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity


Answered 04/23/2012 by: henrik80
Second Degree Blue Belt

Please log in to comment

Thanks for the reply.  I've just been testing with that, and the following command:

Certmgr /add "Intermediate Certification Authorities" certificate.p7b


Error: Failed to open the source store

Answered 04/23/2012 by: philljp
Senior Yellow Belt

Please log in to comment

I found the correct syntax:

certutil -addstore -f "CA" certificate.p7b


Hopefully this helps someone in the future :)

Answered 04/24/2012 by: philljp
Senior Yellow Belt

  • Thanks for the update to the thread, first time with certificate imports for me too and the above command has saved me a lot of time.
    • Is this setup as a program or do you run a batch file?
Please log in to comment