PSCredentialStore/docs/New-CSCertAttribute.md

148 lines
2.9 KiB
Markdown
Raw Normal View History

2019-04-08 13:12:15 +02:00
# 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.
## EXAMPLES
### BEISPIEL 1
```
New-CSCertAttribute -Country 'DE' -State 'BW' -City 'Karlsruhe' -Organization 'AwesomeIT' -OrganizationalUnitName '' -CommonName 'MyPrivateCert'
```
## PARAMETERS
2019-04-08 15:25:08 +02:00
### -City
Certificate city value.
2019-04-08 13:12:15 +02:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
2019-04-08 15:25:08 +02:00
Position: 3
2019-04-08 13:12:15 +02:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2019-04-08 15:25:08 +02:00
### -CommonName
The certificate common name.
2019-04-08 13:12:15 +02:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
2019-04-08 15:25:08 +02:00
Position: 6
2019-04-08 13:12:15 +02:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2019-04-08 15:25:08 +02:00
### -Country
County code like EN, DE, IT, FR...
2019-04-08 13:12:15 +02:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
2019-04-08 15:25:08 +02:00
Position: 1
2019-04-08 13:12:15 +02:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2019-04-08 15:25:08 +02:00
### -Days
2019-04-29 11:38:56 +02:00
The validation time itself.
2019-04-08 13:12:15 +02:00
```yaml
2019-04-08 15:25:08 +02:00
Type: Int32
2019-04-08 13:12:15 +02:00
Parameter Sets: (All)
Aliases:
2019-04-08 15:25:08 +02:00
Required: False
Position: 7
Default value: 365
2019-04-08 13:12:15 +02:00
Accept pipeline input: False
Accept wildcard characters: False
```
2019-04-08 15:25:08 +02:00
### -Organization
Certificate organization value.
2019-04-08 13:12:15 +02:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
2019-04-08 15:25:08 +02:00
Position: 4
2019-04-08 13:12:15 +02:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2019-04-08 15:25:08 +02:00
### -OrganizationalUnitName
Certificate OrganizationalUnitName value.
2019-04-08 13:12:15 +02:00
```yaml
Type: String
Parameter Sets: (All)
Aliases:
Required: True
2019-04-08 15:25:08 +02:00
Position: 5
2019-04-08 13:12:15 +02:00
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
2019-04-08 15:25:08 +02:00
### -State
Certificate state value.
2019-04-08 13:12:15 +02:00
```yaml
2019-04-08 15:25:08 +02:00
Type: String
2019-04-08 13:12:15 +02:00
Parameter Sets: (All)
Aliases:
2019-04-08 15:25:08 +02:00
Required: True
Position: 2
Default value: None
2019-04-08 13:12:15 +02:00
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
2019-04-29 11:38:56 +02:00
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
2019-04-08 13:12:15 +02:00
## INPUTS
### [None]
## OUTPUTS
2019-04-29 11:38:56 +02:00
### [PSCredentialStore.Certificate.CSRDetails]
2019-04-08 13:12:15 +02:00
## NOTES
- File Name : New-CSCertAttribute.ps1
- Author : Marco Blessing - marco.blessing@googlemail.com
- Requires :
## RELATED LINKS
[https://github.com/OCram85/PSCredentialStore](https://github.com/OCram85/PSCredentialStore)