Direct Message is not going out from Gateway

18 views
Skip to first unread message

anilja...@gmail.com

unread,
Mar 14, 2018, 6:24:38 AM3/14/18
to Direct Certificate Discovery Tool
Hello,

When i am sending any direct message from my Direct ID (en...@enkiworld.com), its not going out from my gateway and in gateway.log file its giving below error.
Can someone please help me as earlier it was working fine but when i update my certificate with new one its starts giving me issue.


System.Security.Cryptography.CryptographicException: Key does not exist.

   at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.CreateSignature(Byte[] content, X509Certificate2Collection signingCertificates)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.CreateSignatureEntity(Byte[] content, X509Certificate2Collection signingCertificates)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.Sign(MimeEntity entity, X509Certificate2Collection signingCertificates)
   at Health.Direct.Agent.DirectAgent.SignAndEncryptMessage(OutgoingMessage message)
   at Health.Direct.Agent.DirectAgent.ProcessOutgoing(OutgoingMessage message)

2018-03-14 10:18:07.2507 [11] Debug Health.Direct.SmtpAgent.SmtpAgent - Rejected Message
2018-03-14 10:18:07.2663 [11] Error Health.Direct.SmtpAgent.SmtpAgent - While processing message System.Security.Cryptography.CryptographicException: Key does not exist.

   at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.CreateSignature(Byte[] content, X509Certificate2Collection signingCertificates)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.CreateSignatureEntity(Byte[] content, X509Certificate2Collection signingCertificates)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.Sign(MimeEntity entity, X509Certificate2Collection signingCertificates)
   at Health.Direct.Agent.DirectAgent.SignAndEncryptMessage(OutgoingMessage message)
   at Health.Direct.Agent.DirectAgent.ProcessOutgoing(OutgoingMessage message)
   at Health.Direct.SmtpAgent.SmtpAgent.ProcessOutgoing(ISmtpMessage message, MessageEnvelope envelope)
   at Health.Direct.SmtpAgent.SmtpAgent.ProcessEnvelope(ISmtpMessage message, MessageEnvelope envelope)
   at Health.Direct.SmtpAgent.SmtpAgent.ProcessMessage(ISmtpMessage message)
2018-03-14 10:18:07.2663 [11] Fatal Health.Direct.SmtpAgent.MessageArrivalEventHandler - While ProcessCDOMessage 

Thanks
Anil

Joe Gmail

unread,
Mar 14, 2018, 4:10:54 PM3/14/18
to directt...@googlegroups.com
My guess is you imported a new certificate without a private key. 

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "Direct Certificate Discovery Tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to directtesttoo...@googlegroups.com.
Visit this group at https://groups.google.com/group/directtesttool.
To view this discussion on the web visit https://groups.google.com/d/msgid/directtesttool/712fce62-765b-438b-85cc-7df435646d5a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

anil jain

unread,
Mar 15, 2018, 8:04:31 AM3/15/18
to Direct Certificate Discovery Tool
Thanks Joe for your reply.
I imported certificate with private key and now that key error is resolved.
Now when i am sending email to myself means from "en...@enkiworld.com" to  "en...@enkiworld.com" then below error is coming.

DOMAIN RECIPIENTS=en...@enkiworld.com
Health.Direct.Agent.AgentException: Error=MissingSenderSignature
   at Health.Direct.Agent.TrustModel.Enforce(IncomingMessage message)
   at Health.Direct.Agent.DirectAgent.ProcessMessage(IncomingMessage message)
   at Health.Direct.Agent.DirectAgent.ProcessIncoming(IncomingMessage message)

2018-03-15 12:02:54.1463 [11] Debug Health.Direct.SmtpAgent.SmtpAgent - Rejected Message
2018-03-15 12:02:54.1463 [11] Error Health.Direct.SmtpAgent.SmtpAgent - While processing message Health.Direct.Agent.AgentException: Error=MissingSenderSignature
   at Health.Direct.Agent.TrustModel.Enforce(IncomingMessage message)
   at Health.Direct.Agent.DirectAgent.ProcessMessage(IncomingMessage message)
   at Health.Direct.Agent.DirectAgent.ProcessIncoming(IncomingMessage message)
   at Health.Direct.SmtpAgent.SmtpAgent.ProcessIncoming(ISmtpMessage message, MessageEnvelope envelope)
   at Health.Direct.SmtpAgent.SmtpAgent.ProcessEnvelope(ISmtpMessage message, MessageEnvelope envelope)
   at Health.Direct.SmtpAgent.SmtpAgent.ProcessMessage(ISmtpMessage message)
2018-03-15 12:02:54.1463 [11] Fatal Health.Direct.SmtpAgent.MessageArrivalEventHandler - While ProcessCDOMessage

Thanks
Anil

On Thu, Mar 15, 2018 at 1:40 AM, Joe Gmail <joes...@gmail.com> wrote:
My guess is you imported a new certificate without a private key. 

Sent from my iPhone

On Mar 14, 2018, at 12:24 AM, anilja...@gmail.com wrote:

Hello,

When i am sending any direct message from my Direct ID (en...@enkiworld.com), its not going out from my gateway and in gateway.log file its giving below error.
Can someone please help me as earlier it was working fine but when i update my certificate with new one its starts giving me issue.


System.Security.Cryptography.CryptographicException: Key does not exist.

   at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.CreateSignature(Byte[] content, X509Certificate2Collection signingCertificates)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.CreateSignatureEntity(Byte[] content, X509Certificate2Collection signingCertificates)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.Sign(MimeEntity entity, X509Certificate2Collection signingCertificates)
   at Health.Direct.Agent.DirectAgent.SignAndEncryptMessage(OutgoingMessage message)
   at Health.Direct.Agent.DirectAgent.ProcessOutgoing(OutgoingMessage message)

2018-03-14 10:18:07.2507 [11] Debug Health.Direct.SmtpAgent.SmtpAgent - Rejected Message
2018-03-14 10:18:07.2663 [11] Error Health.Direct.SmtpAgent.SmtpAgent - While processing message System.Security.Cryptography.CryptographicException: Key does not exist.

   at System.Security.Cryptography.Pkcs.SignedCms.ComputeSignature(CmsSigner signer, Boolean silent)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.CreateSignature(Byte[] content, X509Certificate2Collection signingCertificates)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.CreateSignatureEntity(Byte[] content, X509Certificate2Collection signingCertificates)
   at Health.Direct.Common.Cryptography.SMIMECryptographer.Sign(MimeEntity entity, X509Certificate2Collection signingCertificates)
   at Health.Direct.Agent.DirectAgent.SignAndEncryptMessage(OutgoingMessage message)
   at Health.Direct.Agent.DirectAgent.ProcessOutgoing(OutgoingMessage message)
   at Health.Direct.SmtpAgent.SmtpAgent.ProcessOutgoing(ISmtpMessage message, MessageEnvelope envelope)
   at Health.Direct.SmtpAgent.SmtpAgent.ProcessEnvelope(ISmtpMessage message, MessageEnvelope envelope)
   at Health.Direct.SmtpAgent.SmtpAgent.ProcessMessage(ISmtpMessage message)
2018-03-14 10:18:07.2663 [11] Fatal Health.Direct.SmtpAgent.MessageArrivalEventHandler - While ProcessCDOMessage 

Thanks
Anil

--
You received this message because you are subscribed to the Google Groups "Direct Certificate Discovery Tool" group.
To unsubscribe from this group and stop receiving emails from it, send an email to directtesttool+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Direct Certificate Discovery Tool" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/directtesttool/mjCQ0s7w_Vo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to directtesttool+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Anil Mehta, 
Sr. Software Eng., 
NextServices, Mumbai

Joe Gmail

unread,
Mar 15, 2018, 4:12:58 PM3/15/18
to directt...@googlegroups.com
Looking at this from my phone. But because the error is happening during trust processing I would say you do not have your own anchor installed. But in the past it was installed as we have had these kinds of conversations before. So my guess is you created a new certificate recently but not from the same anchor you originally installed. 


Sent from my iPhone
To unsubscribe from this group and stop receiving emails from it, send an email to directtesttoo...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages