login about faq

Hello,

the S/MIME v2 need a certificate with the hole email adress (like xxxx@domain.de) the S/MIME v3 accept a domain cert, that means, the cert inkludet only the eMal adress like admin@domain.de but the cert is valid vor all email adress for @domain.de

Accept/find the chilkat-functions FindCertForEmail and SendEncrypted this domain certifactes and distinguishes between S/MIME v2 and v3?

asked Nov 12 '12 at 04:18

Sok1950's gravatar image

Sok1950
1446


If an email is to be sent encrypted by only setting the "SendEncrypted" property = true, then the Chilkat internals will search for a certificate that contains the exact email address of the recipient. On all operating systems, the cert will be searched in all PFX's indicated by calls to AddPfxSourceFile and/or AddPfxSourceData. On Windows systems, the registry-based certificate stores are also searched.

However, it is possible to use a certificate for encryption that does not exactly match the email address of the recipient. To do this, you would call the emailObject.SetEncryptCert method, passing the desired certificate object.

The problem then becomes a matter of locating the desired certificate. The FindCertForEmail(searchStr) method searches for a matching cert such that cert's "E" part of the Subject matches the searchStr, or the "Alternative RFC822 Name" found in an particular extension, matches the searchStr. The searchStr is typically a whole email address, but it need not be. It can be any string that would match these fields within the certificate.

link

answered Nov 12 '12 at 09:45

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Hi

and thanks for your answer. Your description is ok and works.

but, the emailObject.SetEncryptCert method encrypt the email with the selected cert for all receiver, also for CC and BC receiver

Normaly, only the TO receiver have the cert with the private key. The other receiver can not decrypt the email.

The email.SendEncrypted function used more then one certificate in the case, that the email has more then one receiver (used certificates for each of the CC and BC receiver)

link

answered Nov 13 '12 at 11:47

Sok1950's gravatar image

Sok1950
1446

See the AddEncryptCert method in the online reference documentation.

(Nov 13 '12 at 12:10) chilkat ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×15
×1
×1

Asked: Nov 12 '12 at 04:18

Seen: 1,201 times

Last updated: Nov 13 '12 at 12:10

powered by OSQA