Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Running WSO2 Identity Server on Port 443

DZone's Guide to

Running WSO2 Identity Server on Port 443

Read on to learn how to access the WSO2 Identity Server using HTTPS without needing to specify a port number in the URL.

· Integration Zone
Free Resource

Modernize your application architectures with microservices and APIs with best practices from this free virtual summit series. Brought to you in partnership with CA Technologies.

My day job currently has me playing with WSO2's Identity Server. In very simple terms, WSO2's Identity Server is used for identity and entitlement management across applications within an environment. It's quite a comprehensive product and is worth a look if you need to solve problems related to authentication, authorization, provisioning, etc. within your organization.

By default, the Identity Server starts up on the HTTPS protocol and runs on port 9443. No problems there. However, the standard HTTPS port is 443 so it is very conceivable that you may want to change Identity Server to run on the standard port instead.

Fortunately for us, Identity Server runs inside Tomcat so it's simply a matter of configuring Tomcat accordingly.

To do this, find the catalina-server.xml file that's contained inside the Identity Server distribution. It is located in the <WSO2-IS-HOME>/repository/conf/tomcat/ directory.

Locate the connector for port 9443. It should look similar to the below XML snippet:

.....
port="9443"
bindOnInit="false"
sslProtocol="TLS"
sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2"
server="WSO2 Carbon Server"
clientAuth="want"
.....

Update the connector to look as follows:

.....
port="443"
bindOnInit="false"
sslProtocol="TLS"
sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2"
server="WSO2 Carbon Server"
clientAuth="want"
.....

Notice that all we've done is change the port value from 9443 to 443. That's it! Job done. Now, you can access Identity Server using HTTPS without needing to specify a port number in the URL.

This was tested on Identity Server version 5.1.0.

The Integration Zone is proudly sponsored by CA Technologies. Learn from expert microservices and API presentations at the Modernizing Application Architectures Virtual Summit Series.

Topics:
integration ,wso2 ,identity server ,https

Published at DZone with permission of Raihaan Cassim. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}