create_ssl
Generate and configure SSL certificates in PEM format for secure communication. Specify certificates, keys, and client settings, including CA, depth, and SNI, using JSON schema.
Instructions
Create an SSL certificate
Input Schema
Name | Required | Description | Default |
---|---|---|---|
id | No | SSL certificate ID | |
ssl | Yes | SSL certificate configuration object |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"id": {
"description": "SSL certificate ID",
"type": "string"
},
"ssl": {
"additionalProperties": true,
"description": "SSL certificate configuration object",
"properties": {
"cert": {
"description": "SSL certificate in PEM format",
"type": "string"
},
"certs": {
"description": "SSL certificates in PEM format",
"items": {
"type": "string"
},
"type": "array"
},
"client": {
"additionalProperties": false,
"description": "SSL client configuration",
"properties": {
"ca": {
"description": "SSL client CA certificate in PEM format",
"type": "string"
},
"depth": {
"default": 1,
"description": "SSL client verification depth",
"type": "number"
},
"skip_mtls_uri_regex": {
"description": "URIs to skip mTLS verification",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"ca"
],
"type": "object"
},
"key": {
"description": "SSL private key in PEM format",
"type": "string"
},
"keys": {
"description": "SSL private keys in PEM format",
"items": {
"type": "string"
},
"type": "array"
},
"label": {
"description": "SSL label",
"type": "string"
},
"sni": {
"description": "Server Name Indication",
"type": "string"
},
"snis": {
"description": "Server Name Indications",
"items": {
"type": "string"
},
"type": "array"
},
"status": {
"description": "SSL certificate status",
"enum": [
0,
1
],
"type": "number"
},
"type": {
"default": "server",
"description": "SSL type",
"enum": [
"server",
"client"
],
"type": "string"
},
"validity_end": {
"description": "SSL certificate validity end timestamp",
"type": "number"
},
"validity_start": {
"description": "SSL certificate validity start timestamp",
"type": "number"
}
},
"required": [
"cert",
"key"
],
"type": "object"
}
},
"required": [
"ssl"
],
"type": "object"
}