Skip to content

SMIME Assertion

Configure the JMeter SMIME Assertion assertions: properties, defaults, and practical usage notes for building reliable load tests.

Difficulty
intermediate
Guide type
reference
Estimated read time
1 min read
Last verified version
Verified JMeter 5.6

Part of the Assertions category. Also documented in context in the full Component Reference.

SMIME Assertion

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.

NameRequiredDescription
NameNoDescriptive name for this element that is shown in the tree.
Verify SignatureYesIf selected, the assertion will verify if it is a valid signature according to the parameters defined in the Signer Certificate box.
Message not signedYesWhether or not to expect a signature in the message
Signer CertificateYesโ€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 PositionYesThe 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.
On this page