Contact Info

Crumbtrail

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

New-SelfSignedCertificate - Powershell 3.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
New-SelfSignedCertificate [-CertStoreLocation <String>] [-CloneCert <Certificate>] [-DnsName <String>] [-Confirm [<Swit
chParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]





Description
The New-SelfSignedCertificate cmdlet creates a self-signed certificate for testing purposes. Using the CloneCert parame
ter, a test certificate can be created based on an existing certificate with all settings copied from the original cert
ificate 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 c
reated: 
 ● 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.