SUSE Support

Here When You Need Us

SSL connection fails with "x509 certificate is not valid for any names, but wanted to match"

This document (000020714) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 15

SUSE Linux Enterprise Server 12

 


Situation

While in the past it was sufficient to have the server name as "Common Name(CN)" within the "Subject" of a certificate and additionally within "Subject Alternative Name", newer implementations may just check for "Subject Alternative Name".

Resolution

Recreate server certificate with "Subject Alternative Name" having DNS entry for the server name, for example:
openssl s_client -connect scc.suse.com:443 -showcerts 2>&1| openssl x509 -in - -noout -text|grep -A1 "Subject Alternative Name"            
...
       X509v3 Subject Alternative Name
               DNS:*.suse.com, DNS:suse.com

Cause

Newer implementations, for example, SUSEConnect within the package "suseconnect-ng", simply check for "Subject Alternative Name" within the certificate.

Additional Information

TID to recreate server certificate with "Subject Alternative Name" set for SMT:

https://www.suse.com/support/kb/doc/?id=000017336
 

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000020714
  • Creation Date: 28-Jul-2022
  • Modified Date:14-Sep-2022
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.