Request-VCFCertificate¶
Synopsis¶
Generate a certificate(s) for the selected resource(s) in a workload domain.
Syntax¶
Request-VCFCertificate [-json] <String> [-domainName] <String> [<CommonParameters>]
Description¶
The Request-VCFCertificate
cmdlet generates certificate(s) for the selected resource(s) in a workload domain.
Note
The cerificate authority must be configured and the certificate signing request must be generated beforehand.
Info
The resources that can be requested are: SDDC_MANAGER, PSC, VCENTER, NSX_MANAGER, NSXT_MANAGER, VRA, VRLI, VROPS, VRSLCM, VXRAIL_MANAGER.
Examples¶
Example 1¶
Request-VCFCertificate -domainName MGMT -json (Get-Content -Raw .\samples\certificates\requestCertificateSpec.json)
This example shows how to generate the certificate(s) based on the entries within the JSON specification file for resources within the workload domain named MGMT.
Sample JSON: Request Certificate
{
"caType": "Microsoft",
"resources": [
{
"fqdn": "sfo-w01-vc01.sfo.rainpole.io",
"name": "sfo-w01-vc01",
"resourceId": "56ec85d5-7276-4f81-ab93-bb3ce90e46a8",
"type": "VCENTER"
},
{
"fqdn": "sfo-w01-nsx01.sfo.rainpole.io",
"name": "sfo-w01-nsx01",
"resourceId": "05efb755-6107-4bc2-bd3f-6d59a5c47ee2",
"sans": [
"sfo-w01-nsx01a.sfo.rainpole.io",
"sfo-w01-nsx01b.sfo.rainpole.io",
"sfo-w01-nsx01c.sfo.rainpole.io",
"sfo-w01-nsx01.sfo.rainpole.io"
],
"type": "NSXT_MANAGER"
}
]
}
Parameters¶
-json¶
Specifies the JSON specification to be used.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-domainName¶
Specifies the name of the workload domain.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Common Parameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.