EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Encrypt file, send by S/MIME email, using .cer

Posted: 02/20/2013 02:23:43
by Anne Onyme (Basic support level)
Joined: 02/20/2013
Posts: 7


for my project, i would like to do theses steps :

-find the public keys in a .cer certificat X509 V3 (1024 or 2048 bits)
-decrypt the session key using the RSA protocol encryption with the certificat's public key previously find
-use thies session key to encrypt a file with the AES encryption protocol
-send an S/MIME email with the encrypted file

Can you help me ? I work with Delphi 7.


Clement Cessin
Posted: 02/20/2013 02:33:17
by Vsevolod Ievgiienko (Team)

Thank you for getting in touch with us.

All these task can be performed using SecureBlackbox. You will find corresponding samples after the evaluation package installation.

However sending already encrypted file using S/MIME doesn't make sense as encryption is a part of S/MIME standard.
Posted: 02/20/2013 10:35:25
by Anne Onyme (Basic support level)
Joined: 02/20/2013
Posts: 7

Thank for your help.

I find an sample in the installation path. I'm now able to encrypt en send a mail usin S/MIME encryption protocol.

The new problem is : I can't sign my mail. I've got the 8194 error code.

What does it mean ? How can I resolve this problem ?


Clement Cessin
Posted: 02/20/2013 10:45:39
by Ken Ivanov (Team)


This means that your certificate does not contain an associated private key, which is vital for signing. It is likely that the private key is stored in a separate file and should be loaded manually via one of TElX509Certificate.LoadKeyFrom* methods.
Posted: 02/28/2013 03:35:10
by Anne Onyme (Basic support level)
Joined: 02/20/2013
Posts: 7

Thank you very much Vsevolod Ievgiienko and Ken Ivanov for your precious help. I'm now able to send a valid S/MIME mail using SBB.

I have a new question but i will open a new topic for that.



Topic viewed 1521 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!