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)
- carbon.xml
- api-server.xml
- axis2.xml
- /repository/deployment/server/jaggeryapps/<PUBLISHER/DEVPORTAL>/site/public/theme/settings.js file,
- /repository/deployment/server/jaggeryapps/<PUBLISHER/DEVPORTAL>/site/public/theme/settings.js file
Service Provider Changes via carbon console
- Login to carbon console
- Navigate to service providers then select publisher / devportal
- Inbound Authentication Configuration
- OAuth/OpenID Connect Configuration
- Change the callback URL hostname correctly.
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
Very informative blog. Thanks for sharing
ReplyDeleteDevOps Training
DevOps Online Training