Hi, I'm completely new to security in Java and at this moment need to write an application that will sign emails and send them out. So, I'm using JavaMail and security package from Bouncy Castle. The problem is, I don't really understand how it all fits together. Can someone give me some pointers on how to get emails signed and encrypted with provided .pfx and .cer files? Maybe I need to use whole different library? Any help would be greatly appreciated.