v1/ssh

Enrollment with public key

Enroll for a ssh certificate.

post/v1/ssh/certificaterequest

Request body

end_entity_profilestring

End Entity profile name

certificate_profilestring

Certificate profile name

certificate_authoritystring

Certificate Authority (CA) name

key_idstring

SSH Key Identifier

commentstring

Comment

public_keystring

Public Key

principalsstring[]

Valid principals

usernamestring

Username

passwordstring

Password

not_beforestring

Valid notBefore date

not_afterstring

Valid notAfter date

Example request

{
  "public_key": "ssh-rsa AAA...EWj",
  "not_after": "ISO 8601 Date string, eg. '2024-06-15T14:07:09Z'",
  "password": "foo123",
  "key_id": "ski-02",
  "critical_options": {
    "source_address": "1.2.3.0/24,1.10.10.1/32",
    "force_command": "./init.sh"
  },
  "not_before": "ISO 8601 Date string, eg. '2023-06-15T14:07:09Z'",
  "certificate_authority": "ExampleCA",
  "certificate_profile": "ENDUSER",
  "comment": "Yellow fish under blue water",
  "principals": "[\"Wishman\", \"Bradman\"]",
  "end_entity_profile": "ExampleEEP",
  "username": "JohnDoe"
}

Response

successful operation

certificatestring[]

Certificate

response_formatstring

Response format

Example response

{
  "response_format": "BYTE",
  "certificate": "c3N...T09"
}

Changes