Introduction:
How to force users to use HTTPS ENTM UI without disabling the HTTP connector in CA Privileged Identity Manager.
Instructions:
<Connector URIEncoding="UTF-8" acceptCount="150" address="${jboss.bind.address}" connectionTimeout="20000" disableUploadTimeout="true" emptySessionPath="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="250" port="18080" protocol="HTTP/1.1" redirectPort="18443"/>
<security-constraint>
<web-resource-collection>
<web-resource-name>PIM</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
Image clip of web.xml file (Before and after adding the Security Constraint)
BEFORE AFTER
<Please see attached file for image>
<Please see attached file for image>
<JBOSS_INSTALLED_DIRECTORY>\server\default\tmp
<JBOSS_INSTALLED_DIRECTORY>\server\default\work
Now, when accessing the HTTP ENTM UI (Login Page), it will automatically be redirected to the HTTPS ENTM UI. This way, users are forced to use HTTPS page without disabling the HTTP connector in the server.xml.
Additional Information:
In this document ENTM refers to Enterprise Management Server.