Skip to content

Request-VCFCertificateCsr

Synopsis

Generate a certificate signing request(s) (CSR) for the selected resource(s) in a workload domain.

Syntax

Request-VCFCertificateCsr [-json] <String> [-domainName] <String> [<CommonParameters>]

Description

The Request-VCFCertificateCsr generates a certificate signing request(s) (CSR) for the selected resource(s) in a workload domain.

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-VCFCertificateCsr -domainName MGMT -json (Get-Content -Raw .\samples\certificates\requestCsrSpec.json)

This example shows how to generate the certificate signing request(s) (CSR) based on the entries within the JSON specification file for resources within the workload domain named MGMT.

Sample JSON: Request Certificate Signing Request
{
  "csrGenerationSpec": {
    "country": "US",
    "email": "support@rainpole.io",
    "keyAlgorithm": "RSA",
    "keySize": "2048",
    "locality": "San Francisco",
    "organization": "Rainpole",
    "organizationUnit": "Platform Engineering",
    "state": "CA"
  },
  "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.