cURL
curl --request POST \
--url https://us.infisical.com/api/v1/cert-manager/certificates \
--header 'Content-Type: application/json' \
--data '
{
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"applicationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"csr": "<string>",
"attributes": {
"commonName": "<string>",
"organization": "<string>",
"organizationalUnit": "<string>",
"country": "<string>",
"state": "<string>",
"locality": "<string>",
"keyUsages": [],
"extendedKeyUsages": [],
"altNames": [
{
"value": "<string>"
}
],
"ttl": "<string>",
"notBefore": "<string>",
"notAfter": "<string>"
},
"removeRootsFromChain": false,
"metadata": [
{
"key": "<string>",
"value": ""
}
]
}
'import requests
url = "https://us.infisical.com/api/v1/cert-manager/certificates"
payload = {
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"applicationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"csr": "<string>",
"attributes": {
"commonName": "<string>",
"organization": "<string>",
"organizationalUnit": "<string>",
"country": "<string>",
"state": "<string>",
"locality": "<string>",
"keyUsages": [],
"extendedKeyUsages": [],
"altNames": [{ "value": "<string>" }],
"ttl": "<string>",
"notBefore": "<string>",
"notAfter": "<string>"
},
"removeRootsFromChain": False,
"metadata": [
{
"key": "<string>",
"value": ""
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
profileId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
applicationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
csr: '<string>',
attributes: {
commonName: '<string>',
organization: '<string>',
organizationalUnit: '<string>',
country: '<string>',
state: '<string>',
locality: '<string>',
keyUsages: [],
extendedKeyUsages: [],
altNames: [{value: '<string>'}],
ttl: '<string>',
notBefore: '<string>',
notAfter: '<string>'
},
removeRootsFromChain: false,
metadata: [{key: '<string>', value: ''}]
})
};
fetch('https://us.infisical.com/api/v1/cert-manager/certificates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://us.infisical.com/api/v1/cert-manager/certificates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profileId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'applicationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'csr' => '<string>',
'attributes' => [
'commonName' => '<string>',
'organization' => '<string>',
'organizationalUnit' => '<string>',
'country' => '<string>',
'state' => '<string>',
'locality' => '<string>',
'keyUsages' => [
],
'extendedKeyUsages' => [
],
'altNames' => [
[
'value' => '<string>'
]
],
'ttl' => '<string>',
'notBefore' => '<string>',
'notAfter' => '<string>'
],
'removeRootsFromChain' => false,
'metadata' => [
[
'key' => '<string>',
'value' => ''
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://us.infisical.com/api/v1/cert-manager/certificates"
payload := strings.NewReader("{\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"applicationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"csr\": \"<string>\",\n \"attributes\": {\n \"commonName\": \"<string>\",\n \"organization\": \"<string>\",\n \"organizationalUnit\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"locality\": \"<string>\",\n \"keyUsages\": [],\n \"extendedKeyUsages\": [],\n \"altNames\": [\n {\n \"value\": \"<string>\"\n }\n ],\n \"ttl\": \"<string>\",\n \"notBefore\": \"<string>\",\n \"notAfter\": \"<string>\"\n },\n \"removeRootsFromChain\": false,\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://us.infisical.com/api/v1/cert-manager/certificates")
.header("Content-Type", "application/json")
.body("{\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"applicationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"csr\": \"<string>\",\n \"attributes\": {\n \"commonName\": \"<string>\",\n \"organization\": \"<string>\",\n \"organizationalUnit\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"locality\": \"<string>\",\n \"keyUsages\": [],\n \"extendedKeyUsages\": [],\n \"altNames\": [\n {\n \"value\": \"<string>\"\n }\n ],\n \"ttl\": \"<string>\",\n \"notBefore\": \"<string>\",\n \"notAfter\": \"<string>\"\n },\n \"removeRootsFromChain\": false,\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://us.infisical.com/api/v1/cert-manager/certificates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"applicationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"csr\": \"<string>\",\n \"attributes\": {\n \"commonName\": \"<string>\",\n \"organization\": \"<string>\",\n \"organizationalUnit\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"locality\": \"<string>\",\n \"keyUsages\": [],\n \"extendedKeyUsages\": [],\n \"altNames\": [\n {\n \"value\": \"<string>\"\n }\n ],\n \"ttl\": \"<string>\",\n \"notBefore\": \"<string>\",\n \"notAfter\": \"<string>\"\n },\n \"removeRootsFromChain\": false,\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"certificate": {
"certificate": "<string>",
"issuingCaCertificate": "<string>",
"certificateChain": "<string>",
"serialNumber": "<string>",
"certificateId": "<string>",
"privateKey": "<string>"
},
"certificateRequestId": "<string>",
"message": "<string>"
}{
"reqId": "<string>",
"statusCode": 400,
"message": "<string>",
"error": "<string>",
"details": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 401,
"message": "<string>",
"error": "<string>"
}{
"reqId": "<string>",
"statusCode": 403,
"message": "<string>",
"error": "<string>",
"details": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 404,
"message": "<string>",
"error": "<string>"
}{
"reqId": "<string>",
"statusCode": 422,
"error": "<string>",
"message": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 500,
"message": "<string>",
"error": "<string>"
}Certificates
Issue Certificate
POST
/
api
/
v1
/
cert-manager
/
certificates
cURL
curl --request POST \
--url https://us.infisical.com/api/v1/cert-manager/certificates \
--header 'Content-Type: application/json' \
--data '
{
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"applicationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"csr": "<string>",
"attributes": {
"commonName": "<string>",
"organization": "<string>",
"organizationalUnit": "<string>",
"country": "<string>",
"state": "<string>",
"locality": "<string>",
"keyUsages": [],
"extendedKeyUsages": [],
"altNames": [
{
"value": "<string>"
}
],
"ttl": "<string>",
"notBefore": "<string>",
"notAfter": "<string>"
},
"removeRootsFromChain": false,
"metadata": [
{
"key": "<string>",
"value": ""
}
]
}
'import requests
url = "https://us.infisical.com/api/v1/cert-manager/certificates"
payload = {
"profileId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"applicationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"csr": "<string>",
"attributes": {
"commonName": "<string>",
"organization": "<string>",
"organizationalUnit": "<string>",
"country": "<string>",
"state": "<string>",
"locality": "<string>",
"keyUsages": [],
"extendedKeyUsages": [],
"altNames": [{ "value": "<string>" }],
"ttl": "<string>",
"notBefore": "<string>",
"notAfter": "<string>"
},
"removeRootsFromChain": False,
"metadata": [
{
"key": "<string>",
"value": ""
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
profileId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
applicationId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
csr: '<string>',
attributes: {
commonName: '<string>',
organization: '<string>',
organizationalUnit: '<string>',
country: '<string>',
state: '<string>',
locality: '<string>',
keyUsages: [],
extendedKeyUsages: [],
altNames: [{value: '<string>'}],
ttl: '<string>',
notBefore: '<string>',
notAfter: '<string>'
},
removeRootsFromChain: false,
metadata: [{key: '<string>', value: ''}]
})
};
fetch('https://us.infisical.com/api/v1/cert-manager/certificates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://us.infisical.com/api/v1/cert-manager/certificates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'profileId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'applicationId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'csr' => '<string>',
'attributes' => [
'commonName' => '<string>',
'organization' => '<string>',
'organizationalUnit' => '<string>',
'country' => '<string>',
'state' => '<string>',
'locality' => '<string>',
'keyUsages' => [
],
'extendedKeyUsages' => [
],
'altNames' => [
[
'value' => '<string>'
]
],
'ttl' => '<string>',
'notBefore' => '<string>',
'notAfter' => '<string>'
],
'removeRootsFromChain' => false,
'metadata' => [
[
'key' => '<string>',
'value' => ''
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://us.infisical.com/api/v1/cert-manager/certificates"
payload := strings.NewReader("{\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"applicationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"csr\": \"<string>\",\n \"attributes\": {\n \"commonName\": \"<string>\",\n \"organization\": \"<string>\",\n \"organizationalUnit\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"locality\": \"<string>\",\n \"keyUsages\": [],\n \"extendedKeyUsages\": [],\n \"altNames\": [\n {\n \"value\": \"<string>\"\n }\n ],\n \"ttl\": \"<string>\",\n \"notBefore\": \"<string>\",\n \"notAfter\": \"<string>\"\n },\n \"removeRootsFromChain\": false,\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://us.infisical.com/api/v1/cert-manager/certificates")
.header("Content-Type", "application/json")
.body("{\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"applicationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"csr\": \"<string>\",\n \"attributes\": {\n \"commonName\": \"<string>\",\n \"organization\": \"<string>\",\n \"organizationalUnit\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"locality\": \"<string>\",\n \"keyUsages\": [],\n \"extendedKeyUsages\": [],\n \"altNames\": [\n {\n \"value\": \"<string>\"\n }\n ],\n \"ttl\": \"<string>\",\n \"notBefore\": \"<string>\",\n \"notAfter\": \"<string>\"\n },\n \"removeRootsFromChain\": false,\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://us.infisical.com/api/v1/cert-manager/certificates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"profileId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"applicationId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"csr\": \"<string>\",\n \"attributes\": {\n \"commonName\": \"<string>\",\n \"organization\": \"<string>\",\n \"organizationalUnit\": \"<string>\",\n \"country\": \"<string>\",\n \"state\": \"<string>\",\n \"locality\": \"<string>\",\n \"keyUsages\": [],\n \"extendedKeyUsages\": [],\n \"altNames\": [\n {\n \"value\": \"<string>\"\n }\n ],\n \"ttl\": \"<string>\",\n \"notBefore\": \"<string>\",\n \"notAfter\": \"<string>\"\n },\n \"removeRootsFromChain\": false,\n \"metadata\": [\n {\n \"key\": \"<string>\",\n \"value\": \"\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"certificate": {
"certificate": "<string>",
"issuingCaCertificate": "<string>",
"certificateChain": "<string>",
"serialNumber": "<string>",
"certificateId": "<string>",
"privateKey": "<string>"
},
"certificateRequestId": "<string>",
"message": "<string>"
}{
"reqId": "<string>",
"statusCode": 400,
"message": "<string>",
"error": "<string>",
"details": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 401,
"message": "<string>",
"error": "<string>"
}{
"reqId": "<string>",
"statusCode": 403,
"message": "<string>",
"error": "<string>",
"details": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 404,
"message": "<string>",
"error": "<string>"
}{
"reqId": "<string>",
"statusCode": 422,
"error": "<string>",
"message": "<unknown>"
}{
"reqId": "<string>",
"statusCode": 500,
"message": "<string>",
"error": "<string>"
}Body
application/json
Was this page helpful?
⌘I