Skip to content

Export-Certificate examples fixes #1645

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions docset/windows/pkiclient/Export-Certificate.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ Use the **Type** parameter to change the file format.

### EXAMPLE 1
```
PS C:\>$cert = (Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF)


PS C:\>$cert = Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF

PS C:\>Export-Certificate -Cert $cert -FilePath c:\certs\user.sst -Type SST
```
Expand All @@ -52,9 +50,7 @@ This example exports a certificate to the file system as a Microsoft serialized

### EXAMPLE 2
```
PS C:\>$cert = (Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF)


PS C:\>$cert = Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF

PS C:\>Export-Certificate -Cert $cert -FilePath c:\certs\user.cer
```
Expand All @@ -63,9 +59,7 @@ This example exports a certificate to the file system as a DER-encoded `.cer` fi

### EXAMPLE 3
```
PS C:\>$cert = ( Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF )


PS C:\>$cert = Get-ChildItem -Path cert:\CurrentUser\My\EEDEF61D4FF6EDBAAD538BB08CCAADDC3EE28FF

PS C:\>Export-Certificate -Cert $cert -FilePath c:\certs\user.p7b -Type p7b
```
Expand Down