KNOWLEDGE BASE

Unable to start tableau server after configuring SAML with error "Failed to load the SP certificate from our SAML configuration"


Published: 15 Dec 2021
Last Modified Date: 16 Dec 2021

Issue

Unable to start tableau server after configuring SAML and the following error is displayed in vizportal log:

ERROR com.tableausoftware.samlauthentication.services.SAMLMetadataLoader - Failed to load the SP certificate from our SAML configuration.
java.lang.IllegalArgumentException: Failed to parse the certificate content

Environment

  • Tableau Server
  • Server-Wide SAML

Resolution

If SAML is enabled after previous disabling, apply the certificate again by clicking on 'Select File' for certificate file and key file.

If the certificate is not valid, create certificate and use the certificate and key when SAML is configured.

a. Open command prompt with administrator
b. Set config:
set OPENSSL_CONF=D:\Tableau\TableauServer\packages\apache.20204.21.0511.0936\conf\openssl.cnf
c. Navigate to openssl:
cd "D:\Tableau\TableauServer\packages\apache.<version>\bin"
d. Run the following commands to generate certificate:
openssl.exe req -newkey rsa:2048 -nodes -keyout <samltemp>.key -x509 -days 3650 -out <samlcertfile>.crt -sha256
openssl rsa -in <samltemp>.key -out <samlcertfile>.key

 

Cause

The certificate is not provided or is not valid.
 
Did this article resolve the issue?