Generate Certificate V2 Using POST
This API is used to generate a new certificate.
Request
URI
POST
https://{api_host}/lcm/locker/api/v2/certificates
COPY
Request Body
certificate
CertificateCreateRequestDTO of type(s) application/json
Required
{
"alias": "certificate1",
"c": "IN",
"cN": "cert1",
"host": [
"<host>"
],
"ip": [
"<ip>"
],
"l": "IN",
"o": "vmware",
"oU": "vmware",
"sT": "IN",
"size": 2048,
"transactionId": "string",
"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 As int32
size
Optional
Key Length
string
transactionId
Optional
transactionId
integer As int32 As int32
validity
Optional
Validity Period
string
vmid
Optional
vmid
Responses
200
OK
Returns CertificateResponseDTO of type(s) */*
{
"alias": "Certificate for vRealize Automation",
"certChain": "-----BEGIN CERTIFICATE-----\\nMIID8jCCAtqgAwIBAgIGAXXgo1ZsMA0GCSqGSIb3DQEBCwUAMFMxMzAxBgNVBAMM\\nKnZSZWFsaXplIFN1aXRlIExpZmVjeWNsZSBNYW5hZ2VyIExvY2tlciBDQTEPMA0G\\nA1UECgwGVk13YXJlMQswCQYDVQQGEwJJTjAeFw0yMDExMTkxMzEzMjJaFw0yMjEx\\nMTkxMzEzMjJaMGAxDzANBgNVBAMMBlZNd2FyZTENMAsGA1UECwwEQ01CVTEPMA0G\\nA1UECgwGVk13YXJlMRIwEAYDVQQHDAlCQU5HQUxPUkUxDDAKBgNVBAgMA0tBUjEL\\nMAkGA1UEBhMCSU4wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC/58TJ\\nRVu0l33W9tT/PjUFOitfP0ecc0uXUX3mAwcCbkubHOz2ZXRP66upxjBB7FX2mIbT\\ne2Bzsi0P4FjuWMSOXqrVQWyBwdbGSoNMJ5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q\\n9swYGVt0iys3GgljiHpdyBSqtI1s9IVFaQNF0AP1V+H1v7t9mjADEcTAsFcB\\n-----END CERTIFICATE-----\\n",
"certInfo": {
"algorithm": "SHA256WITHRSA",
"issuer": "C=IN, O=VMware, CN=vRealize Suite Lifecycle Manager Locker CA",
"keyAlgorithm": "RSA",
"keyLength": 2048,
"san": "DNS: *.vmware.com, DNS: *.dev.lcm.local",
"sha1": "fea1cfee3532b23027e9f48de03c23d2fb0dc346",
"sha256": "668430ffe699077b5555c482b3aeada10504f1331dd1a765e5448c55d446ba95",
"subject": "C=IN, ST=KAR, L=BANGALORE, O=VMware, OU=CMBU, CN=VMware"
},
"key": "PRIVATE KEY****",
"leafCert": "-----BEGIN CERTIFICATE-----\\nMIID8jCCAtqgAwIBAgIGAXXgo1ZsMA0GCSqGSIb3DQEBCwUAMFMxMzAxBgNVBAMM\\nKnZSZWFsaXplIFN1aXRlIExpZmVjeWNsZSBNYW5hZ2VyIExvY2tlciBDQTEPMA0G\\nA1UECgwGVk13YXJlMQswCQYDVQQGEwJJTjAeFw0yMDExMTkxMzEzMjJaFw0yMjEx\\nMTkxMzEzMjJaMGAxDzANBgNVBAMMBlZNd2FyZTENMAsGA1UECwwEQ01CVTEPMA0G\\nA1UECgwGVk13YXJlMRIwEAYDVQQHDAlCQU5HQUxPUkUxDDAKBgNVBAgMA0tBUjEL\\nMAkGA1UEBhMCSU4wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC/58TJ\\nRVu0l33W9tT/PjUFOitfP0ecc0uXUX3mAwcCbkubHOz2ZXRP66upxjBB7FX2mIbT\\ne2Bzsi0P4FjuWMSOXqrVQWyBwdbGSoNMJ5Ynqezx3GNz/PakbVguNnAzJuZEILBM\\nmGYvZD75ulH2zYa8Aj/ZHjDTVZdrL6PmjjAo1q8nE24+wXult2k6zftwaIUK6r7C\\nOz71v42EMvn5ilBcY0YJ0A+8cWb92sWTTAYwpYGhLCE5HFY84tMIZ+xmoGZ1KpbH\\nG1R6gkQpNrCiozIyZpDxNrZZFO51CJXCHh/36Ub3aeH/qQImyCD/98Bkzvw7w0m5\\nl41DYlUS5EEY/atLAgMBAAGjgb4wgbswHQYDVR0OBBYEFAQz1kWvwXYqTasuMouj\\n1vXRYlppMB8GA1UdIwQYMBaAFLsrrSU48NkJ6rySdO22osJTeQMFMDkGA1UdEQQy\\nMDCCECouZW5nLnZtd2FyZS5jb22CCyouc3FhLmxvY2Fsgg8qLmRldi5sY20ubG9j\\nYWwwDgYDVR0PAQH/BAQDAgWgMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMCBggrBgEF\\nBQcDATAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEBCwUAA4IBAQBNaLU8wOseuIfl\\nmX43XE3DZqcpjU4KO2P0AO3spQISoCz0WlRtdbfsRGjulakiHxJjPk1iYiJQ6Pt6\\nMncJDxC+mcXSO1NCWOAvi0UAoebcnaJXlvDVHICcTnor3bDI1w7VmqCz849K4thl\\nDhzOLEqaBfJPPca1X2oI7t8nQCuxDChwu62nhUvRgblhzs4KwjzS69++jswlrf5N\\nZL4Byn46eFtfkwEW93vIOny0w4W6yzK0womm0nbGkH4L2eWhtQp5mHGVZRlk7pm0\\njQvWd6H8uqF/bjaHLbOFR4nyq66OO3obg4dRjgPUSAuwJ+HIqlBarCS3xPwj2VR0\\nWWHKMqdc\\n-----END CERTIFICATE-----\\n",
"transactionId": "string",
"validations": [],
"validity": {
"expiresOn": "string",
"healthy": false,
"issuedOn": "string",
"period": "1 year, 11 months and 25 days"
},
"vmid": "6c9fca27-678d-4e79-9a0f-5f690735e67c"
}
string
alias
Optional
Certificate Alias
string
certChain
Optional
certChain
string
key
Optional
key
string
leafCert
Optional
leafCert
string
transactionId
Optional
transactionId
string
vmid
Optional
vmid
201
Created
Operation doesn't return any data structure
400
Bad Request
Returns GenericErrorResponseDTO of type(s) */*
{
"errorCode": "LCM_EXAMPLE_API_ERROR0000",
"errorLabel": "Example Error!",
"message": "Something went wrong!",
"recommendations": []
}
string
errorCode
Optional
errorCode
string
errorLabel
Optional
errorLabel
string
message
Optional
message
array of string
recommendations
Optional
recommendations
401
Unauthorized
Operation doesn't return any data structure
403
Forbidden
Operation doesn't return any data structure
404
Not Found
Operation doesn't return any data structure
409
Conflict
Returns GenericErrorResponseDTO of type(s) */*
{
"errorCode": "LCM_EXAMPLE_API_ERROR0000",
"errorLabel": "Example Error!",
"message": "Something went wrong!",
"recommendations": []
}
string
errorCode
Optional
errorCode
string
errorLabel
Optional
errorLabel
string
message
Optional
message
array of string
recommendations
Optional
recommendations
500
Internal Server Error
Returns GenericErrorResponseDTO of type(s) */*
{
"errorCode": "LCM_EXAMPLE_API_ERROR0000",
"errorLabel": "Example Error!",
"message": "Something went wrong!",
"recommendations": []
}
string
errorCode
Optional
errorCode
string
errorLabel
Optional
errorLabel
string
message
Optional
message
array of string
recommendations
Optional
recommendations
On This Page
Locker Certificates Controller Operations
POST
Create Csr And Key V2 Using POST
POST
Generate Certificate V2 Using POST
GET
Get Certificate Details By Vmid V2 Using GET
POST
Import Certificate By Json V2 Using POST
GET
List All Certificates V2 Using GET
DELETE
Remove Certificate V2 Using DELETE