KNOWLEDGE BASE

Error "Certificate For <Localhost> Doesn't Match Any Of The Subject Alternative Names" When Restoring Tableau Server


Published: 06 Feb 2020
Last Modified Date: 06 Feb 2020

Issue

  • The following error occurs after running "tsm maitenance restore" command and the restore fails.

Restoring 'XXX.tsbak'...
Using server-side file name 'XXX.tsbak'

Restoring the backup 'XXX.tsbak' was unsuccessful.
See tsm.log for more information.

  • The following error could be found in tsm.log:

ERROR com.tableausoftware.tabadmin.cli.ServerApi - Exception sending request.
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://localhost:8850/api/0.5/configurations/requested/keys": Certificate for <localhost> doesn't match any of the subject alternative names: [<FQDN>]; nested exception is javax.net.ssl.SSLPeerUnverifiedException: Certificate for <localhost> doesn't match any of the subject alternative names: [<FQDN>]
 

Environment

  • Tableau Server for Linux

Resolution

  • When running "tsm maintenance restore", specify FQDN name of Tableau Server.
For example:  tsm maintenance restore -s https://<FQDN>:8850
 

Cause

"localhost" breaks certificate validation when TSM CLI communicates with tabadmincontroller and the certificate validation fails before the restore starts.

Additional Information

FQDN name means fully-qualified domain name (e.g. server123.mydomain.suffix) 
Did this article resolve the issue?