Tag Archive: certificate


To display certificates on local computer store:

C:\Windows\system32>powershell -command “get-item cert:\\LocalMachine\\My\\* | foreach { echo $_.issuer }”

CN=ISSUINGCASERVER, O=company IT Group SA

 

To display certificates on local computer store only with a specified CA:

From a powershell command line:

PS C:\Windows\system32> get-item cert:\\LocalMachine\\My\\* | foreach { if ($_.issuer.Tolower().contains(“issuingcaserver”)){echo $_.issuer;$_.thumbprint}}

CN=ISSUINGCASERVER, O=company IT Group SA

E4895FD30B6BD31BB985F1FBD86FE4802145BC7A

Or

From a command line:

C:\Windows\system32> C:\Windows\system32>powershell -command “get-item cert:\\LocalMachine\\My\\* | foreach { if ($_.issuer.Tolower().contains(\”issuingcaserver\”)){echo $_.issuer}}”

CN=ISSUINGCASERVER, O=company IT Group SA

Or

C:\Windows\system32>powershell -command “$CA=\”issuingcaserver\”;get-item cert:\\LocalMachine\\My\\* | foreach { if ($_.issuer.Tolower().contains($CA)){echo $_.issuer}}”

CN=ISSUINGCASERVER, O=company IT Group SA

 

Finally, to remove a certificate issued by a specific CA:

C:\Windows\system32>powershell -command “$CA=\”issuingcaserver\”;get-item cert:\\LocalMachine\\My\\* | foreach { if ($_.issuer.Tolower().contains($CA)){remove-item $_}}”

Advertisements

How to create and deploy a client certificate for MAC: http://blogs.technet.com/b/configmgrteam/archive/2013/04/05/how-to-create-and-deploy-a-client-cert-for-mac-independently-from-configmgr.aspx

Transforming .cer to .pem or vice-versa: https://www.sslshopper.com/ssl-converter.html

using openssl to convert a certificate format to another format: https://support.ssl.com/Knowledgebase/Article/View/19/0/der-vs-crt-vs-cer-vs-pem-certificates-and-how-to-convert-them

Exporting a private key: https://technet.microsoft.com/en-us/library/cc754329.aspx