KEMBAR78
Certificate Commands | PDF
0% found this document useful (0 votes)
69 views1 page

Certificate Commands

The document provides instructions to create a root certificate and client certificate. It uses PowerShell commands New-SelfSignedCertificate to generate self-signed certificates, specifying parameters like the subject name, key and hash algorithms, key length, and store location. The root certificate is first created and stored, then used to sign the client certificate also generated by New-SelfSignedCertificate.

Uploaded by

ganesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views1 page

Certificate Commands

The document provides instructions to create a root certificate and client certificate. It uses PowerShell commands New-SelfSignedCertificate to generate self-signed certificates, specifying parameters like the subject name, key and hash algorithms, key length, and store location. The root certificate is first created and stored, then used to sign the client certificate also generated by New-SelfSignedCertificate.

Uploaded by

ganesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Create root certificate

$cert = New-SelfSignedCertificate -Type Custom -KeySpec Signature `


-Subject "CN=rudratestsf.northeurope.cloudapp.azure.com" -
KeyExportPolicy Exportable `
-HashAlgorithm sha256 -KeyLength 2048 `
-CertStoreLocation "Cert:\CurrentUser\My" -KeyUsageProperty Sign -
KeyUsage CertSign

Create client certificate

New-SelfSignedCertificate -Type Custom -DnsName


rudratestsf.northeurope.cloudapp.azure.com -KeySpec Signature `
-Subject "CN=rudratestsf.northeurope.cloudapp.azure.com" -
KeyExportPolicy Exportable `
-HashAlgorithm sha256 -KeyLength 2048 `
-CertStoreLocation "Cert:\CurrentUser\My" `
-Signer $cert -TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.2")

You might also like