Configure the JMeter SMIME Assertion assertions: properties, defaults, and practical usage notes for building reliable load tests.
Part of the Assertions category. Also documented in context in the full Component Reference.

The SMIME Assertion can be used to evaluate the sample results from the Mail Reader Sampler.
This assertion verifies if the body of a mime message is signed or not. The signature can also be verified against a specific signer certificate.
As this is a functionality that is not necessarily needed by most users, additional jars need to be downloaded and added to JMETER_HOME/lib:
bcmail-xxx.jar(BouncyCastle SMIME/CMS)bcprov-xxx.jar(BouncyCastle Provider)
These need to be downloaded from BouncyCastle.
If using the Mail Reader Sampler,
please ensure that you select โStore the message using MIME (raw)โ otherwise the Assertion wonโt be able to process the message correctly.
| Name | Required | Description |
|---|---|---|
| Name | No | Descriptive name for this element that is shown in the tree. |
| Verify Signature | Yes | If selected, the assertion will verify if it is a valid signature according to the parameters defined in the Signer Certificate box. |
| Message not signed | Yes | Whether or not to expect a signature in the message |
| Signer Certificate | Yes | โNo Checkโ means that it will not perform signature verification. โCheck valuesโ is used to verify the signature against the inputs provided. And โCertificate fileโ will perform the verification against a specific certificate file. |
| Message Position | Yes | The Mail sampler can retrieve multiple messages in a single sample. Use this field to specify which message will be checked. Messages are numbered from 0, so 0 means the first message. Negative numbers count from the LAST message; -1 means LAST, -2 means penultimate etc. |