Configure HTTPS for Apache Tomcat 10.1
Configure HTTPS for Apache Tomcat 10 to enable secure access to meshIQ Manage using an SSL/TLS certificate. This procedure describes how to generate a self-signed certificate, configure the HTTPS connector, and restart Tomcat.
Prerequisites
- Apache Tomcat 10.1 is installed.
- Java 11 or later is installed.
- Access to the Apache Tomcat configuration directory.
- Administrative permissions to modify the Tomcat configuration files.
Procedure
-
Stop the Tomcat web server before making configuration changes.
./stop.sh web
-
Verify the Java version. Apache Tomcat 10.1 requires Java 11 or later. Verify the installed Java version by running:
java -version
-
Generate a keystore
Navigate to the Apache Tomcat configuration directory:
cd /opt/meshiq/platform/apache-tomcat/conf
Generate a self-signed certificate and create a PKCS12 keystore by running the following command:
keytool -genkeypair -alias tomcat -keyalg RSA -keysize 2048 -validity 825 \ -storetype PKCS12 -keystore tomcat.p12 -storepass <keystore_password> \ -dname "CN=172.16.31.59, OU=IT, O=meshIQ, C=IN" \ -ext "SAN=ip:172.16.31.59,dns:meshiqvm59,dns:localhost,ip:127.0.0.1"
Replace
<keystore_password>with a secure password. Use the same password when configuring the HTTPS Connector. -
Configure the HTTPS Connector.
- Edit
server.xml
cp server.xml server.xml.bak vi server.xml
- Locate the existing HTTP Connector configuration (port 8080) inside the
<Service>element. - Add the following HTTPS Connector configuration alongside the existing HTTP Connector. If a commented-out HTTPS Connector for port 8443 already exists, replace it with the following configuration:
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" :1 maxThreads="150" SSLEnabled="true" scheme="https" secure="true"> <SSLHostConfig protocols="TLSv1.2,TLSv1.3"> <Certificate certificateKeystoreFile="conf/tomcat.p12" certificateKeystorePassword="<keystore_password>" certificateKeystoreType="PKCS12" type="RSA" /> </SSLHostConfig> </Connector> - Edit
- Replace
<keystore_password>with the password used when generating the keystore. Save and close theserver.xmlfile. -
Restart the Tomcat web server to apply the configuration changes. Run the following command:
./start.sh web
- Verify the HTTPS connection
-
Open a web browser. Navigate to the following URL, replacing the hostname or IP address as required:
https://localhost:8443/manage
- The browser displays a security warning because the certificate is self-signed and is not issued by a trusted Certificate Authority (CA).
- Select Advanced and then Continue to proceed.
- Verify that the meshIQ Manage login page opens over HTTPS.
-
Create Users and Groups in Microsoft Entra Privileged Identity Management (PIM)
Microsoft Entra Privileged Identity Management (PIM) provides just-in-time (JIT) access to privileged resources. It allows administrators to control when users can access meshIQ Manage without permanently assigning them to an access group.
Prerequisites
- Microsoft Entra ID P2 or Microsoft Entra ID Governance licensing is available.
- The required licenses are assigned to the administrator and users who activate eligible assignments.
- The administrator has the Privileged Role Administrator or Global Administrator role.
Configure PIM (Administrator)
- Create a security group
- Sign in to the Microsoft Entra admin center.
- Navigate to Groups > All groups > New group.
- Select the Group type, Group name, and Membership type, and then select Create.
- Enable PIM for the group
- Navigate to ID Governance > Privileged Identity Management > Groups.
- Select Discover groups.
- Select the group created in the previous step.
- Select Manage groups > OK.
- Configure activation settings
- Navigate to PIM > Groups.
- Select the group and open Settings.
- Under Member, select Edit.
-
Under the Activation tab, configure the following settings
Field Description Maximum activation duration Specifies the maximum duration for which the user can activate the assigned role. Require Azure MFA Requires users to complete multifactor authentication (MFA) before activating the role. Require justification Requires users to provide a reason for activating the role. Require approval Requires approval from designated approvers before the role can be activated. Approvers Specifies the users responsible for reviewing and approving activation requests. - Under the Assignment tab, configure the eligibility duration. For example, set the assignment to one year or allow permanent eligibility.
- Under the Notification tab, retain the default settings or add the approvers' email addresses.
- Select Update.
- Assign users as eligible members
- Navigate to PIM > Groups > [Group Name] > Assignments.
- Select + Add assignments.
- Select Member as the role.
- Select the required users and select Next.
- Set the assignment type to Eligible.
- Configure the start and end dates.
- Select Assign.
- Verify that the users appear under Eligible assignments.
- Assign the group to meshIQ Manage
- Navigate to Enterprise apps in the Microsoft Entra admin center.
- Search and select the meshIQ Manage application.
- Navigate to Users and groups.
- Select + Add.
- Select the PIM-managed security group.
- Select Assign.
-
Approve access requests
When a user requests activation and approval is required:
- Navigate to PIM > Approve requests > Groups.
- Select the pending request.
- Review the request details.
- Select Approve or Deny.
- Enter a justification.
- Select Confirm.
-
Review and audit access
Navigate to PIM > Groups > [group]
- Active assignments: Displays users who currently have active group access.
- Resource audit: Displays access requests, approvals, activations, and expirations.
-
Eligible assignments: Displays users who are eligible to activate access.
- To remove a user's eligibility, navigate to Assignments > Eligible and remove the corresponding assignment.
Activate Access (Normal User)
One-time setup
- Sign in to the Microsoft Entra admin center or My Access portal using your work account.
- If prompted, configure MFA using Microsoft Authenticator.
Activate access when required
- Navigate to ID Governance > Privileged Identity Management > My roles > Groups.
- Under Eligible assignments, locate the required group.
- Select Activate.
- Complete the MFA verification.
- Specify the activation duration within the configured maximum duration.
- Enter a justification, and then select Activate.
- If approval is required, the request status changes to Pending approval.
- Wait for the designated approver to approve the request. You will receive an email notification.
- After approval, verify the group under My roles > Groups > Active assignments.
Deactivate or extend access
Navigate to My roles > Groups > Active assignments, and then select the following:
- Deactivate: when access is no longer required.
- Extend: To active assignment before it expires, if additional access time is required.
- Reactivate: Activate the eligible assignment again when access is required later.
- Check request status: Navigate to PIM > My requests. You can also cancel pending requests from this page.
Integrate Microsoft Entra ID with meshIQ Manage
Microsoft Entra ID acts as the Identity Provider (IdP), and meshIQ Manage acts as the Service Provider (SP).
The integration uses SAML-based Single Sign-On (SSO) to authenticate users. PIM controls when users become active members of the security group, while meshIQ uses the configured SSO and group-to-role mapping to determine their application permissions.
- Configure SAML SSO in Microsoft Entra ID. For more information see, Enable SAML single sign-on for an enterprise application
- Configure the meshIQ SAML configuration file
- Locate the apwmq_samlsso.xml configuration file in the meshIQ Manage Tomcat configuration directory.
- Open the file using a text editor.
- Update the SAML configuration with the values obtained from Microsoft Entra ID.
- Replace TENANT_ID in all four occurrences with your Microsoft Entra tenant ID.
- Update the Identity Provider details, including the Entity ID, SSO URL, and signing certificate.
- Configure the Base64 certificate:
- Open the downloaded Base64 certificate file.
- Copy the certificate content.
-
Paste the content into the appropriate certificate element in the XML file.
Do not include the -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- lines.
- If meshIQ Manage is deployed under the /manage/ context path, update spAssertionCSUrl to match the deployed application URL.
-
Enable the SAML configuration in Tomcat
- Navigate to the Apache Tomcat configuration directory.
- Open the conf/context.xml file.
- Locate the pim_samlvi.manager.config parameter.
- Uncomment the parameter by removing the XML comment markers.
- Verify that the parameter points to the correct pim_saml.xml file.
- Save the changes.
-
Restart Apache Tomcat
Restart Apache Tomcat to apply the SAML configuration changes.
Verify that the meshIQ Manage login page displays the configured SSO option.
-
Configure group-based access
- In Microsoft Entra ID, verify that the PIM-managed security group is assigned to the meshIQ Manage enterprise application.
- Ensure that the required group information is included in the SAML assertion.
- Configure the corresponding group-to-role mapping in the meshIQ SSO configuration.
- Map the PIM-managed group to the appropriate meshIQ Manage permissions.
- Verify that users receive the expected permissions after authentication.
SAML authentication and PIM activation are separate operations. The group assignment and role mapping must be configured correctly for PIM-controlled access to work as intended.