![]() ![]() EXAMPLE 3 PS C:\>$cert = ( Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF ) PS C:\>Export-Certificate -Cert $cert -FilePath c:\certs\user.p7b -Type p7b This example exports a certificate to the file system as a PKCS#7-fomatted. EXAMPLE 2 PS C:\>$cert = (Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF) PS C:\>Export-Certificate -Cert $cert -FilePath c:\certs\user.cer This example exports a certificate to the file system as a DER-encoded. EXAMPLE 1 PS C:\>$cert = (Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF) PS C:\>Export-Certificate -Cert $cert -FilePath c:\certs\user.sst -Type SST This example exports a certificate to the file system as a Microsoft serialized certificate store without its private key. The FileInfo object contains the information about the certificate file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |