Skip to content

AcmeProvider

Defines an ACME provider for automatic TLS certificate management.

This object can be configured from the WebUI under Settings › TLS › ACME Providers

Type: AcmeChallengeType · default: "TlsAlpn01"

The ACME challenge type used to validate domain ownership

Type: EmailAddress[] · min items: 1

Contact email address, which is used for important communications regarding your ACME account and certificates

Type: Uri · read-only · default: "https://acme-v02.api.letsencrypt.org/directory"

The URL of the ACME directory endpoint

Type: String? · read-only · secret

The External Account Binding (EAB) HMAC key

Type: String? · read-only

The External Account Binding (EAB) key ID

Type: String · server-set · secret

The account key used to authenticate with the ACME provider.

Type: Uri · server-set

The account URI returned by the ACME server after registration. Used for CAA record accounturi binding.

Type: AcmeRenewBefore · default: "R23"

How long before expiration the certificate should be renewed

Type: Integer · default: 10

Maximum number of retry attempts for failed challenges

Type: Id<Tenant>? · enterprise

Identifier for the tenant this ACME provider belongs to

The AcmeProvider object is available via the urn:stalwart:jmap capability.

This is a standard Foo/get method as defined in RFC 8620, Section 5.1.

This method requires the sysAcmeProviderGet permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:AcmeProvider/get",
{
"ids": [
"id1"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This is a standard Foo/set method as defined in RFC 8620, Section 5.3.

Supports create, update, and destroy operations in a single call.

This operation requires the sysAcmeProviderCreate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:AcmeProvider/set",
{
"create": {
"new1": {
"contact": {}
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This operation requires the sysAcmeProviderUpdate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:AcmeProvider/set",
{
"update": {
"id1": {
"challengeType": "TlsAlpn01"
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This operation requires the sysAcmeProviderDestroy permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:AcmeProvider/set",
{
"destroy": [
"id1"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This is a standard Foo/query method as defined in RFC 8620, Section 5.5.

This method requires the sysAcmeProviderQuery permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:AcmeProvider/query",
{
"filter": {
"text": "example"
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

The x:AcmeProvider/query filter argument accepts the following conditions (combinable with AnyOf / AllOf / Not per RFC 8620):

ConditionKind
texttext
memberTenantIdid of Tenant

stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.

Terminal window
stalwart-cli get AcmeProvider id1
Terminal window
stalwart-cli create AcmeProvider \
--field 'contact={}'
Terminal window
stalwart-cli query AcmeProvider
stalwart-cli query AcmeProvider --where text=example
Terminal window
stalwart-cli update AcmeProvider id1 --field challengeType=TlsAlpn01
Terminal window
stalwart-cli delete AcmeProvider --ids id1
ValueLabel
TlsAlpn01TLS-ALPN-01
DnsPersist01DNS-PERSIST-01
Dns01DNS-01
Http01HTTP-01
ValueLabel
R121/2 of the remaining time until expiration
R232/3 of the remaining time until expiration
R343/4 of the remaining time until expiration
R454/5 of the remaining time until expiration