Generating New Certificates

Generating New Certificates
Generating New Certificates

This returns a new RSA public/private certificate signed by Ops Manager's root CA certificate.

The returned certificate is not stored by Tanzu Ops Manager.

Request
URI
POST
https://{opsmanager-installation}/api/v0/certificates/generate
COPY
Request Body
CertificateGenerate of type(s) application/json
Optional
{
    "domains": [
        "string"
    ]
}
array of string
domains
Optional

List of wildcard domains

Responses
200

OK

{
    "certificate": "string",
    "key": "string"
}
string
certificate
Optional

certificate

string
key
Optional

key


400

Setup is not completed

Returns RequireSetupCompleted of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

401

Unauthorized

Returns UnauthorizedResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

403

Forbidden

Returns ForbiddenResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}

422

Unprocessable Content

Returns CommonErrors of type(s) application/json
{
    "errors": [
        "string"
    ]
}
array of string
errors
Required

errors


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v0/certificates/generate