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.


SUSE Linux Enterprise Server 15

SUSE Linux Enterprise Server 12



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".


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


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:


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 Support Forums

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

Join Our Community

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.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

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

Go to Customer Center