'How to run IntelliJ tomcat server on https?
i need to test with Okta SSO which only allows https connection so how can i run IntelliJ tomcat server on https?
I have configured the below on c drive tomcat server using below instructions but don't know how to setup ssl on intellij tomcat server?
Done -
Prerequisite :
1)JDK installed + JAVA_HOME environment variable setup
- Tomcat 8.0 archieve file
Now open cmd : run this command:
cd %JAVA_HOME%/bin
Step 1: Generating keystore file : .keystore
keytool -genkey -alias tomcat -keyalg RSA
and save entered password : password1
Step 2: Now we will configure tomcat for using keystore file and -SSL config
-->now open server.xml file and replace following :
<Connector SSLEnabled="true" acceptCount="100" clientAuth="false"
disableUploadTimeout="true" enableLookups="false" maxThreads="25"
port="8443" keystoreFile="C:\Users\Selva\.keystore"
keystorePass="password"
protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https"
secure="true" sslProtocol="TLS" />
Step 3: Now we will configure our web app to run on https.
-->open web.xml of web application.
<security-constraint>
<web-resource-collection>
<web-resource-name>securedapp</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
Step 4: Test Run
Solution 1:[1]
I get the same issue, Solved by removing the ., u are not in Linux:
keystoreFile="C:\Users\Selva\keystore"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | procrastinator |
