Discovery:  [error] Misconfiguration of certificate's CN and virtual name. The certificate CN has xxxx.fr . We expected yyyyy.fr as virtual name.

Version 2
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    BMC Discovery


    COMPONENT:

    BMC Atrium Discovery Content


    APPLIES TO:

    BMC Discovery / ADDM



    PROBLEM:

     

    HTTPS mode isn't working after importing a custom certificate, and an error similar to the one below appears in the logs:

      

    [Fri May 05 13:48:50 2017] [error] Misconfiguration of certificate's CN and virtual name. The certificate CN has XXX. We expected localhost4.localdomain4 as virtual name.

      

    As a result, HTTPS is not working and has to be disabled.

     


    CAUSE:

    The parameter "ServerName" is set to xxxx.fr in the httpd.conf file, even though the certificate was generated for the ServerName yyyyy.fr (which is probably the real hostname of the appliance).


    SOLUTION:

    There are two possible solutions for this issue:

    1)  The Certificate was not properly generated.
    Regenerate the certificate to match the value in the field "ServerName=" of the server httpd.conf file.


    2)  Update ServerName to the proper value.
    It is possible that the ServerName is set to "localhost4.localdomain4", but the real hostname of the appliance is yyyyy.fr. The certificate may have been issued for yyyyy.fr.
    To solve this:
    - Save the httpd.conf file.
    - Edit it and set "ServerName=" to "ServerName=yyyyy.fr" (replacing yyyyy.fr with the proper hostname for this appliance/your certificate)
    - Edit /etc/hosts and make sure it's set to match this "new" ServerName
    - Restart httpd or reload its configuration.
     


    Article Number:

    000135747


    Article Type:

    Solutions to a Product Problem



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles