http://www.perlmonks.org?node_id=1024458


in reply to SMIME using encrypted key

I'm using Crypt::SMIME If I decrypt a message the result is encrypted. I assume this is because I need to decrypt the key sent with the message and then use it to decrypt the rest of the message. How can I do this?

You're confused. You need public key to encrypt a message, you need private key to sign/decrypt a message. You don't include either key in the message. You share public keys via a certificate authority / keyserver. You don't share private keys.