Applies to
Creating a Self-Signed Certificate
- To create a Certificate, open Powershell as administrator and type in the following command:
New-SelfSignedCertificate -Type Custom -Subject "CN=CNNAMEHERE, O=ONAMEHERE C, C=US" -KeyUsage DigitalSignature -FriendlyName "FRIENDLYNAMEHERE" -CertStoreLocation "Cert:\CurrentUser\My" -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}")
- Rename the following parameters:
- CN=CNNAMEHERE (F.x. FSBackup Software)
- O=ONAMEHERE (F.x. KeepItSafe)
- -Friendlyname “FRIENDLYNAMEHERE” (f.x. fsbackup)
- Copy Thumbprint value for the certificate for later use.
- Then type the following command:
Set-Location Cert:\CurrentUser\My
- Setup a password in the following way (in this example I used 1Qa2ws3ed):
$password = ConvertTo-SecureString -String 1Qa2ws3ed -Force -AsPlainText
- Create a folder on the C-drive called “SSC” (Self-Signed Certificate)
- To export the certificate, paste the following command (remember to insert the Thumbprint value you copied earlier):
Export-PfxCertificate -cert "Cert:\CurrentUser\My\INSERTTHUMBPRINTVALUEHERE" -FilePath c:\ssc\ssc.pfx -Password $password
- The Self-Signed certificate will now be available within the C:\ssc folder.
The complete output should look like this: