POST
/
api
/
v1
/
ssh
/
ca
curl --request POST \
  --url https://us.infisical.com/api/v1/ssh/ca \
  --header 'Content-Type: application/json' \
  --data '{
  "projectId": "<string>",
  "friendlyName": "<string>",
  "keyAlgorithm": "ED25519",
  "publicKey": "<string>",
  "privateKey": "<string>",
  "keySource": "internal"
}'
{
  "ca": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "projectId": "<string>",
    "friendlyName": "<string>",
    "status": "<string>",
    "keyAlgorithm": "<string>",
    "keySource": "<string>",
    "publicKey": "<string>"
  }
}

Body

application/json
projectId
string
required

The ID of the project to create the SSH CA in.

friendlyName
string
required

A friendly name for the SSH CA.

keyAlgorithm
enum<string>
default:ED25519

The type of public key algorithm and size, in bits, of the key pair for the SSH CA; required if keySource is internal.

Available options:
RSA_2048,
RSA_4096,
EC_prime256v1,
EC_secp384r1,
ED25519
publicKey
string

The public key for the SSH CA key pair; required if keySource is external.

privateKey
string

The private key for the SSH CA key pair; required if keySource is external.

keySource
enum<string>
default:internal

The source of the SSH CA key pair. This can be one of internal or external.

Available options:
internal,
external

Response

200
application/json
Default Response
ca
object
required