According to the document of Microsoft HPC pack for windows server 2016, I have run the following command to create a certificate. There is no problem with the command but the HPC pack requires the PFX file and asks me to browse/import the certificate. I don't know the PFX location!
PS C:\Users\Administrator> New-SelfSignedCertificate -DnsName "", "" -CertStoreLocation "cert:\LocalMachine\My" PSParentPath: Microsoft.PowerShell.Security\Certificate::LocalMachine\My
Thumbprint Subject
---------- -------
48B96D527ACCB90D34E5FC4F51784B4BB6DF9B3F CN= Where should I look for that?
1 Answer
The command you ran placed the certificate in the LocalMachine\Personal store. To export it as a PFX file, follow these steps:
- Right-click the Start button and click Run
- Type mmc and hit Enter
- Hit Ctrl+M (or click File -> Add/Remove Snap-in...)
- Select Certificates from the Available snap-ins and click Add >
- Select Computer account and click Next, then Finish
- Expand Certificates (Local Computer) -> Personal -> Certificates
- Right-click your certificate in the pane on the right and select All tasks -> Export...
- Follow the wizard to export your certificate to a PFX file (select Yes, export the private key to export it as PFX).