NetCmdlets 2016
NetCmdlets 2016
Questions / Feedback?

New-Certificate Cmdlet

Parameters   Output Objects   Configuration Settings  

The New-Certificate cmdlet is used to create new X.509 certificates in a certificate store.

Syntax

New-Certificate [parameters]

Remarks

To create a new certificate in a store, the CertStore and CertStoreType parameters must be specified. You can also specify the CertStorePassword parameter if the store so requires it. Subject and SerialNumber would specify the subject and serial number of the new certificate.

If IssuerSubject is specified, the new certificate will be issued using the selected root certificate, which must have a private key available. Otherwise, a self-signed certificate will be created.

# Create new certificate in the user store
new-certificate -CertStore MY -CertStoreType User -Subject 'CN=Test' -SerialNumber 1235 -IssuerSubject $issuer

Parameter List


The following is the full list of the parameters of the cmdlet with short descriptions. Click on the links for further details.

LogFileThe location of a file to which debug information is written.
CertStoreThe name of the certificate store for the client certificate.
CertStorePasswordThe password for the certificate store (if any).
CertStoreTypeThe type of certificate store for the client certificate.
ConfigSpecifies one or more configuration settings.
IssuerSubjectSpecifies the subject of the issuer certificate.
LogFileThe location of a file to which debug information is written.
SerialNumberSpecifies the serial number.
SubjectSpecifies the subject of the certificate to create.

Output Objects


The following is the full list of the output objects returned by the cmdlet with short descriptions. Click on the links for further details.

CertificateThis object contains all the information about a certificate.

Configuration Settings


The following is a list of configuration settings for the cmdlet with short descriptions. Click on the links for further details.

CertCommentA comment to include in a saved certificate.
CertCustomExtensionCountThe number of records in the CertCustomExtension arrays.
CertCustomExtensionCritical[i]Whether or not the extension is defined as critical.
CertCustomExtensionOID[i]The ASN of the extension at index 'i'.
CertCustomExtensionValue[i]The raw value of the extension at index 'i'.
CertificateOutputFormatThe format of the certificate to save.
CertKeyLengthThe public key length for created certificates and keys.
CertKeyTypeThe types of keys created for new certificates.
CertSignatureAlgorithmThe signature algorithm used when creating certificates.
CertValidityTimeThe validity period for the certificate.
CertValidityOffsetThe number of days until the certificate becomes valid.
CSPThe Cryptographic Service Provider.
ExportedCertThe exported certificate file.
ExportFormatThe format of the exported certificate.
ImportCertActionSpecified the action to take if a matching certificate or a link to a matching certificate already exists.
KeyFormatHow the public and private key are formatted.
ReplaceKeyWhether or not to replace an existing key when creating a new key.
CodePageThe system code page used for Unicode to Multibyte translations.

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
NetCmdlets 2016 - Version 16.0 [Build 6335]