WSO2 APIM 3.0.0 publisher and devportal UI not opening | HTTP 500 Error


Problem Statement
Recently I have come across a problem when I have an all-in-one deployment of WSO2 APIM 3.0.0 and I procured a signed SSL certificate. However, post-installation of SSL certificate as per the hostname requirement, the Publisher portal & DevPortal Web UI is not opening and causing HTTP 500 error.

Issue Log
Below logs captured in carbon console-
Caused by: org.mozilla.javascript.WrappedException: Wrapped org.jaggeryjs.scriptengine.exceptions.ScriptException: javax.net.ssl.SSLPeerUnverifiedException: SSL peer failed hostname validation for name: localhost (<<http>>/META-INF/scripts/http.js#220)

Solution
Changes in following files to replace localhost with actual hostname (mywebsite.com)

  1. carbon.xml
  2. api-server.xml
  3. axis2.xml
  4. /repository/deployment/server/jaggeryapps/<PUBLISHER/DEVPORTAL>/site/public/theme/settings.js file,
  5. /repository/deployment/server/jaggeryapps/<PUBLISHER/DEVPORTAL>/site/public/theme/settings.js file

Service Provider Changes via carbon console

  1. Login to carbon console
  2. Navigate to service providers then select publisher / devportal 
  3. Inbound Authentication Configuration
  4. OAuth/OpenID Connect Configuration 
  5. Change the callback URL hostname correctly.
Then restart the server and try opening the publisher portal and devportal. It should now open with normal login/logout functionality

References

  • https://github.com/wso2/product-apim/issues/8435
  • https://stackoverflow.com/questions/61811273/wso2-apim-3-0-0-unable-to-sign-in-from-publisher-and-devportal-after-install/62125413#62125413
  • https://medium.com/@igunawardana/how-to-change-hostname-in-wso2-is-with-self-signed-certificate-ea547605e015


Comments

Post a Comment

Popular posts from this blog

Oracle SOA Suite- Implementing Email Notification

Oracle SOA Suite 12c- PKIX path building failed & unable to find valid certification path to requested target

Migration of Oracle SOA Suite Composite from 11g to 12c