< Back

New-CSCertAttribute

Sun Jan 19, 2020 6:36 pm

NAME New-CSCertAttribute



SYNOPSIS

Creates required data for a certificate signing request.





SYNTAX

New-CSCertAttribute [-Country] <String> [-State] <String> [-City] <String> [-Organization] <String>

[-OrganizationalUnitName] <String> [-CommonName] <String> [[-Days] <Int32>] [<CommonParameters>]





DESCRIPTION

Defines the certificate related properties for an upcoming New-PfxCertificate execution.





PARAMETERS

-Country <String>

County code like EN, DE, IT, FR...



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-State <String>

Certificate state value.



Required? true

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-City <String>

Certificate city value.



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Organization <String>

Certificate organization value.



Required? true

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-OrganizationalUnitName <String>

Certificate OrganizationalUnitName value.



Required? true

Position? 5

Default value

Accept pipeline input? false

Accept wildcard characters? false



-CommonName <String>

The certificate common name.



Required? true

Position? 6

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Days <Int32>

The validation time itself.



Required? false

Position? 7

Default value 365

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

[None]





OUTPUTS

[PSCredentialStore.Certificate.CSRDetails]





NOTES





- File Name : New-CSCertAttribute.ps1

- Author : Marco Blessing - marco.blessing@googlemail.com

- Requires :



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>New-CSCertAttribute -Country 'DE' -State 'BW' -City 'Karlsruhe' -Organization 'AwesomeIT'

-OrganizationalUnitName '' -CommonName 'MyPrivateCert'















RELATED LINKS

https://github.com/OCram85/PSCredentialStore