[{"label":"Latest (1.3.0)","version":"latest"}]
vrealize-suite-lifecycle-manager

Generate Certificate V2

Description

This API is used to generate a new certificate.

Request

Request

URL

URL


post
https://localhost:8080/lcm/locker/api/v2/certificates
Copy

Request Body

Request Body

CertificateCreateRequestDTO of type(s) application/json Required

certificate

{
    "alias": "certificate1",
    "c": "IN",
    "cN": "cert1",
    "host": [
        "<host>"
    ],
    "ip": [
        "<ip>"
    ],
    "l": "IN",
    "o": "vmware",
    "oU": "vmware",
    "sT": "IN",
    "size": 2048,
    "validity": 729,
    "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
alias Optional

Alias


string
c Optional

Country Code


string
cN Optional

Common Name


array of string
host Optional

Server Domain/Hostname


array of string
ip Optional

IP Address


string
l Optional

Locality


string
o Optional

Organization


string
oU Optional

Organization Unit


string
sT Optional

State


integer as int32
size Optional

Key Length


string
transactionId Optional

integer as int32
validity Optional

Validity Period


string
vmid Optional
Authentication

Authentication

This operation uses the following authentication methods.

Authorization

Scopes: global

Response

Response

Response Body

Response Body

200 OK

Returns CertificateResponseDTO of type(s) */*
{
    "alias": "Certificate for vRealize Automation",
    "certChain": "-----BEGIN CERTIFICATE-----\\nMIID8jCCAtqgAwIBAgIGAXXgo1ZsMA0GCSqGSIb3DQEBCwUAMFMxMzAxBgNVBAMM\\nKnZSZWFsaXplIFN1aXRlIExpZmVjeWNsZSBNYW5hZ2VyIExvY2tlciBDQTEPMA0G\\nA1UECgwGVk13YXJlMQswCQYDVQQGEwJJTjAeFw0yMDExMTkxMzEzMjJaFw0yMjEx\\nMTkxMzEzMjJaMGAxDzANBgNVBAMMBlZNd2FyZTENMAsGA1UECwwEQ01CVTEPMA0G\\nA1UECgwGVk13YXJlMRIwEAYDVQQHDAlCQU5HQUxPUkUxDDAKBgNVBAgMA0tBUjEL\\nMAkGA1UEBhMCSU4wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC/58TJ\\nRVu0l33W9tT/PjUFOitfP0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MFMDkGA1UdEQQy\\nMDCCECouZW5nLnZtd2FyZS5jb22CCyouc3FhLmxvY2Fsgg8qLmRldi5sY20ubG9j\\nYWwwDgYDVR0PAQH/BAQDAgWgMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMCBggrBgEF\\nBQcDATAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBNaLU8wOseuIfl\\nmX43XE3DZqcpjU4KO2P0AO3spQISoCz0WlRtdbfsRGjulakiHxJjPk1iYiJQ6Pt6\\nMncJDxC+mcXSO1NCWOAvi0UAoebcnaJXlvDVHICcTnor3bDI1w7VmqCz849K4thl\\nDhzOLEqaBfJPPca1X2oI7t8nQCuxDChwu62nhUvRgblhzs4KwjzS69++jswlrf5N\\nZL4Byn46eFtfkwEW93vIOny0w4W6yzK0womm0nbGkH4L2eWhtQp5mHGVZRlk7pm0\\njQvWd6H8uqF/bjaHLbOFR4nyq66OO3obg4dRjgPUSAuwJ+HIqlBarCS3xPwj2VR0\\nWWHKMqdc\\n-----END CERTIFICATE-----\\n",
    "validations": [],
    "vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
alias Optional

Certificate Alias


string
certChain Optional

certInfo Optional

string
key Optional

string
leafCert Optional

string
transactionId Optional

validations Optional

validity Optional

string
vmid Optional

201 Created

Created

Errors

Errors

400

Bad Request


401

Unauthorized


403

Forbidden


404

Not Found



500

Internal Server Error

Code Samples

Code Samples

cURL Command

curl -X POST -H "Content-Type: application/json" -d '{"alias":"certificate1","c":"IN","cN":"cert1","host":["<host>"],"ip":["<ip>"],"l":"IN","o":"vmware","oU":"vmware","sT":"IN","size":2048,"validity":729,"vmid":"6c9fca27-678d-4e79-9a0f-5f690735e67c"}' https://localhost:8080/lcm/locker/api/v2/certificates


[{"label":"Latest (1.3.0)","version":"latest"}]
vrealize-suite-lifecycle-manager
Feedback

Was this page helpful?