Skip to content

SmimeTrustAnchor

Additional certificate authority trusted when validating recipient S/MIME certificates.

This object can be configured from the WebUI under Settings › Encryption › Trust Anchors

Type: String · required

Description of the certificate authority

Type: Text · required

CA certificate in PEM format

Type: Boolean · default: true

Whether the certificate authority is trusted

Type: String · server-set

Subject of the CA certificate, taken from the certificate itself

Type: UTCDateTime · server-set

Expiration date of the CA certificate, taken from the certificate itself

The SmimeTrustAnchor 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 sysSmimeTrustAnchorGet permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:SmimeTrustAnchor/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 sysSmimeTrustAnchorCreate permission.

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

This operation requires the sysSmimeTrustAnchorUpdate permission.

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

This operation requires the sysSmimeTrustAnchorDestroy permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:SmimeTrustAnchor/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 sysSmimeTrustAnchorQuery permission.

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

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

Terminal window
stalwart-cli get SmimeTrustAnchor id1
Terminal window
stalwart-cli create SmimeTrustAnchor \
--field description=Example \
--field certificate=Example
Terminal window
stalwart-cli query SmimeTrustAnchor
Terminal window
stalwart-cli update SmimeTrustAnchor id1 --field description='updated value'
Terminal window
stalwart-cli delete SmimeTrustAnchor --ids id1