• Post Reply Bookmark Topic Watch Topic
  • New Topic

cause of CertificateException(No subject alternative names present)  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Recently I was ordered to make a class which acts as an SSL client for a HTTP server over TLS.
Then I started to draw a specification of the class, and my typing stopped while writing a exception-cause matrix.
Because I was caught by the question about a cause of CertificateException which has a message "No subject alternative names present".
I found similar answers to cope with the cause, which indicate that identifying CN to host name is the remedy.
But I could not find any authorized reason to do so.
Is it correct to understand that discrepancy between CN and domain name is the only cause of CertificateException(No subject alternative names present) ?
Why is it so ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!