Trusting a certificate with bouncyCastle
===

i am completely noob in security but i need to make a simple S/MIME message authenticator for a project. 
I have been using this example: https://github.com/protocol7/smime-java-example

but as you can see in the comment, the verification phase fails because the certificate is not trusted. How can i make the certificate trusted? 

Thanks in advance