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: Set<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: Uri? · server-set

The prefix for hashed account URIs advertised by the ACME server in its directory, used to build DNS-PERSIST-01 validation records.

Type: Set<String> · server-set

The issuer domain names advertised by the ACME server in its directory for DNS-PERSIST-01 validation records.

Type: Set<String> · server-set

The CAA issuer domain names advertised by the ACME server in its directory, published in CAA issue records.

Type: AcmeRenewBefore · default: "R23"

How long before expiration the certificate should be renewed

Type: Id<Tenant>? · enterprise

Identifier for the tenant this ACME provider belongs to

Type: String?

Preferred certificate chain to use when multiple chains are available

Type: Boolean · default: false

Whether to reuse the existing private key when renewing a certificate

Type: String · required

A name for this provider, used to identify it when selecting it for a domain

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/jmap/ \
-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 the following operations in a single call: create, update, destroy.

This operation requires the sysAcmeProviderCreate permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:AcmeProvider/set",
{
"create": {
"new1": {
"contact": {},
"description": "Example"
}
}
},
"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/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:AcmeProvider/set",
{
"update": {
"id1": {
"preferredChain": "updated value"
}
}
},
"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/jmap/ \
-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/jmap/ \
-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={}' \
--field description=Example
Terminal window
stalwart-cli query AcmeProvider
stalwart-cli query AcmeProvider --where text=example
Terminal window
stalwart-cli update AcmeProvider id1 --field preferredChain='updated value'
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