none
Export / import local machine certificate using powershell

    Question

  • I need to know how i can export a certificate from the local machine or "MY" store and then import it back later using powershell. I
    Friday, February 17, 2012 4:03 PM

Answers

  • I had a look in the script repository for you and found this:

    http://gallery.technet.microsoft.com/scriptcenter/Certification-File-Manager-be4a6848

    This script by Michal Gajda seems to do what you need and more

    Friday, February 17, 2012 4:09 PM
    Moderator
  • I need to know how i can export a certificate from the local machine or "MY" store and then import it back later using powershell. I

    cd cert:

    11:11 PS>dir currentuser\my

        Directory: Microsoft.PowerShell.Security\Certificate::currentuser\my

    Thumbprint                                Subject

    invoke-item item cert:\CurrentUser\my\4E149FBDAFD94569257641F0BC73397D40019F07

    HELP certificate

    You can use certmgr at the commandline to export an import certificate.


    ¯\_(ツ)_/¯

    Friday, February 17, 2012 4:14 PM

All replies

  • I had a look in the script repository for you and found this:

    http://gallery.technet.microsoft.com/scriptcenter/Certification-File-Manager-be4a6848

    This script by Michal Gajda seems to do what you need and more

    Friday, February 17, 2012 4:09 PM
    Moderator
  • I need to know how i can export a certificate from the local machine or "MY" store and then import it back later using powershell. I

    cd cert:

    11:11 PS>dir currentuser\my

        Directory: Microsoft.PowerShell.Security\Certificate::currentuser\my

    Thumbprint                                Subject

    invoke-item item cert:\CurrentUser\my\4E149FBDAFD94569257641F0BC73397D40019F07

    HELP certificate

    You can use certmgr at the commandline to export an import certificate.


    ¯\_(ツ)_/¯

    Friday, February 17, 2012 4:14 PM