Problems during encryption of mail

%3CLINGO-SUB%20id%3D%22lingo-sub-1491804%22%20slang%3D%22en-US%22%3EProblems%20during%20encryption%20of%20mail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1491804%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20there%3C%2FP%3E%3CP%3EWe%20have%20a%20problem%20with%20encryption%20of%20mails.%20We%20are%20using%20the%20danish%20NemID%20which%20is%20a%20S%2FMime%20method.%20A%20couple%20of%20weeks%20ago%2C%20we%20created%20the%20contact%20with%20the%20certificate%20and%20was%20able%20to%20send%20encrypted.%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20today%20we%20tried%20again%2C%20and%20it%20failed.%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20tried%20from%20another%20user%2C%20but%20the%20same%20contact..%20and%20the%20same%20user%20but%20another%20contact%2C%20and%20it%20worked.%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20tried%20deleting%20the%20contact%20and%20recreating%20it%2C%20restarting%20the%20computer%20but%20no%20luck..%20My%20best%20guess%20is%2C%20that%20we%20need%20to%20delete%20the%20certificate%20further%20down%20before%20we%20can%20reinstall%20it.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1491948%22%20slang%3D%22en-US%22%3ERe%3A%20Problems%20during%20encryption%20of%20mail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1491948%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F81065%22%20target%3D%22_blank%22%3E%40B%C3%B8rge%20Holse%3C%2FA%3E%26nbsp%3BHello%2C%20difficult%20to%20say%20with%20the%20attached%20information.%20How%20about%20deleting%20the%20contact%2C%20have%20the%20contact%20sending%20a%20new%20signed%20email%20to%20the%20user%2C%20import%20the%20certificate%2Fsave%20the%20contact%20and%20try%20setting%20it%20up%20again.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*edit*%20had%20a%20look%20at%20the%20attached%20photo.%20That%20shows%20when%20you%26nbsp%3B%3CSPAN%3Edo%20not%20have%20your%20recipient%E2%80%99s%20public%20key.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1492067%22%20slang%3D%22en-US%22%3ERe%3A%20Problems%20during%20encryption%20of%20mail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1492067%22%20slang%3D%22en-US%22%3EIs%20the%20public%20key%20the%20same%20as%20the%20certificate%20in%20the%20contact%3F%20Then%20we%20have%20it%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1493279%22%20slang%3D%22en-US%22%3ERe%3A%20Problems%20during%20encryption%20of%20mail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1493279%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F81065%22%20target%3D%22_blank%22%3E%40B%C3%B8rge%20Holse%3C%2FA%3E%26nbsp%3BHello%20again%20and%20sorry%20for%20the%20late%20reply.%20Yes%2C%20I%20did%20mean%20that.%20The%20contact%20has%20to%20send%20a%20signed%20email%20message%20to%20your%20user%20to%20have%20him%2Fher%20save%20the%20contact%20and%20the%20cert%2Fpublic%20key%20for%20the%20encryption%20to%20work.%20But%20I%20get%20the%20feeling%20you%20already%20know%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnother%20thing%20that%20could%20be%20causing%20the%20issue%2C%20as%20you've%20done%20the%20process%20all%20over%20again%2C%20could%20be%20that%20w%3CSPAN%3Ehen%20you%20send%20an%20encrypted%20email%20to%20a%20recipient%20the%20recipient's%20certificate%2Fpublic%20key%20is%20used%20to%20encrypt%20it.%20If%20the%20email%20address%20of%20the%20contact%20doesn't%20match%20the%20email%20address%20in%20the%20recipient's%20certificate%2C%20you'll%20also%20get%20the%20message%20you%20attached.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20just%20did%20a%20search%20and%20found%20a%20page%20that%20actually%20describes%20it.%20Don't%20be%20alarmed%20by%20the%20old%20%22applies%20to%22%2C%20it%20should%20still%20be%20possible%20if%20you%20use%20the%20appropriate%20key.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F276597%2Fhow-to-turn-off-e-mail-matching-for-certificates-in-outlook%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F276597%2Fhow-to-turn-off-e-mail-matching-for-certificates-in-outlook%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20it%20helps!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1494168%22%20slang%3D%22en-US%22%3ERe%3A%20Problems%20during%20encryption%20of%20mail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1494168%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3BThanks%20for%20the%20answer..%20I%20will%20try%20this%20on%20monday%20when%20the%20employees%20are%20back.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1496633%22%20slang%3D%22en-US%22%3ERe%3A%20Problems%20during%20encryption%20of%20mail%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1496633%22%20slang%3D%22en-US%22%3EHey!%20Any%20luck%20with%20the%20issue%3F%3C%2FLINGO-BODY%3E
New Contributor

Hi there

We have a problem with encryption of mails. We are using the danish NemID which is a S/Mime method. A couple of weeks ago, we created the contact with the certificate and was able to send encrypted. 

But today we tried again, and it failed. 

We tried from another user, but the same contact.. and the same user but another contact, and it worked. 

We tried deleting the contact and recreating it, restarting the computer but no luck.. My best guess is, that we need to delete the certificate further down before we can reinstall it. 

7 Replies

@Børge Holse Hello, difficult to say with the attached information. How about deleting the contact, have the contact sending a new signed email to the user, import the certificate/save the contact and try setting it up again.

 

*edit* had a look at the attached photo. That shows when you do not have your recipient’s public key.

Is the public key the same as the certificate in the contact? Then we have it

@Børge Holse Hello again and sorry for the late reply. Yes, I did mean that. The contact has to send a signed email message to your user to have him/her save the contact and the cert/public key for the encryption to work. But I get the feeling you already know this.

 

Another thing that could be causing the issue, as you've done the process all over again, could be that when you send an encrypted email to a recipient the recipient's certificate/public key is used to encrypt it. If the email address of the contact doesn't match the email address in the recipient's certificate, you'll also get the message you attached.

 

I just did a search and found a page that actually describes it. Don't be alarmed by the old "applies to", it should still be possible if you use the appropriate key.

 

https://support.microsoft.com/en-us/help/276597/how-to-turn-off-e-mail-matching-for-certificates-in-...

 

Hope it helps!

@ChristianBergstrom Thanks for the answer.. I will try this on monday when the employees are back. 

 

 

Hey! Any luck with the issue?

@ChristianBergstrom  Sorry for the late reply the employee had a couple of days off so we tried it today.. 

No luck with the link. 

 

You can see in sikker2.png that I added the registry key.. I emptied the outlook cache and started outlook. 

I started "certmgr" and found 2 certificates for the receiver under "Other people" and then I deleted the contact with the certificate and deleted the certificates from certmgr. Restarted outlook, reimported the contact with the certificate and checked that only one certificate installed in certmgr. 

 

But still the same error. 

@Børge Holse Hello! No worries. And the mail address of the contact match the email address in the recipient's certificate?

 

If all looks OK perhaps you need to raise a ticket with MS support.