Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 4.0 » New-SelfSignedCertificate

New-SelfSignedCertificate - Powershell 4.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

New-SelfSignedCertificate

Short description
Creates a new self-signed certificate for testing purposes.

Syntax


Description
The New-SelfSignedCertificate cmdlet creates a self-signed certificate for testing purposes. Using the CloneCert 
parameter, a test certificate can be created based on an existing certificate with all settings copied from the 
original certificate except for the public key. A new key of the same algorithm and length will be created.


If an existing certificate is not being cloned, then an SSL server certificate with the following default settings is 
created: 

 -- Subject: Empty 

 -- Key: RSA 2048 

 -- EKUs: Client Authentication and Server Authentication 

 -- Key Usage: Digital Signature, Key Encipherment (a0) 

 -- Validity Period: One year


Delegation may be required when using this cmdlet with Windows PowerShell remoting and changing user configuration.