Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling https on Wso2 App Server

Tags:

rest

https

ssl

wso2

I have made the REST APIs using Spring MVC framework. The generated WAR file has been deployed on wso2 App server. It is working fine and the REST URI are like http://domainName:9743/context/api/service.

Now I want to make these service secure using SSL certificate so that they can be accessed as https://domainName:9743/context/api/service.

Please suggest the way how to proceed with that, and how and where I can install the certificate in Wso2 App server. Do I need to make changes in application to make it work over https.

We are using latest wso2 app server version 5.1.0

Thanks Shakshi

like image 282
ShakshiS Avatar asked Jun 26 '26 05:06

ShakshiS


1 Answers

You can access both http and https rest APIs without any change with WSO2 Application Server. But the default http port is 9763, and https port is 9443. So, you need to change these properly.

For ex. in you case, the rest urls will look like the following.

http://domainName:9763/context/api/service

https://domainName:9443/context/api/service

This is possible because WSO2 AS ships with a self-signed certificate by default. You can add your own certifacate to AS or you can add a CA-signed certificate.

Further HTTP/HTTPS security can be configured as described at Adding HTTP/HTTPS Channel Security. http, https port mappings etc. will be useful to you.

like image 120
Kasun Gajasinghe Avatar answered Jun 28 '26 18:06

Kasun Gajasinghe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!