Main Content

Simulink.ProtectedModel.verifySignature

Verify digital signature on protected model

Description

example

Simulink.ProtectedModel.verifySignature(protectedModel) verifies the digital signature on the protected model. If the signature is not valid, the function returns an error that indicates why the signature is invalid. A signature is invalid in the following cases:

  • The protected model was changed after it was signed.

  • The protected model was not signed.

  • The protected model was signed with an expired certificate.

  • The protected model was self-signed with a certificate issued by the publisher.

  • The protected model was signed with a missing or invalid certificate.

  • The certificate in your system certificate authority store is missing or invalid.

  • The model was signed with an invalid key.

Examples

collapse all

Verify the digital signature for the protected model signed_model_name.

Simulink.ProtectedModel.verifySignature('signed_model_name.slxp')

The function returns an error if the signature on the protected model cannot be verified.

Input Arguments

collapse all

Name of the signed protected model, specified as a character vector or a string scalar.

Example: 'my_model.slxp'

Introduced in R2020a