HTTP to HTTPS (SSL - Connection APEX/ORDS-Tomcat)

 


HTTP to HTTPS (Tomcat)



1) Get the Secure Certificate first



https://www.digicert.com/util/



https://support.code42.com/Administrator/6/Configuring/Install_a_CA-signed_SSL_certificate_for_HTTPS_console_access



http://certificate.fyicenter.com/97_JDK_Keytool_How_to_Find_the_Java_Keytool_on_Windows.html




https://support.code42.com/Administrator/6/Configuring/Install_a_CA-signed_SSL_certificate_for_HTTPS_console_access



2) Do the following step 



keytool -genkey -alias APEX -keyalg RSA -keystore "C:\apex_way2cis_keystore.jks" -ext SAN=dns:apex.way2cis.com,ip:208.93.232.133



Keystore Password: Way2Cis@2020!!


keytool -genkeypair -alias apex.way2cis.com -storetype jks -keystore apex.way2cis.com.jks -validity 366 -keyalg RSA -keysize 4096


keytool -certreq -alias apex.way2cis.com -file apex_way2cis.csr -keystore apex.way2cis.com.jks -ext san=dns:apex.way2cis.com


keytool -importcert -alias apex.way2cis.com -file CAreply.p7b -keystore apex.way2cis.com.jks -trustcacerts



keytool -importkeystore -srckeystore apex_way2cis_com.pfx -srcstoretype PKCS12 -destkeystore apex.way2cis.com.jks -deststoretype jks


keytool -importkeystore -srckeystore apex.way2cis.com.jks -destkeystore apex.way2cis.com.jks -deststoretype pkcs12


=================================================================

3 Go to C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\service.xml

=============================================================


<Connector port="8443" 

maxThreads="150" scheme="https" secure="true" 

SSLEngine="on" 

SSLCertificateFile="C:\Users\jignesh\Documents\SSL Certificate\apex_way2cis_com.crt" 

SSLCertificateKeyFile="C:\Users\jignesh\Documents\SSL Certificate\apex_way2cis_com.key" 

SSLPassword="Way2Cis@2020!!" 

clientAuth="false" sslProtocol="TLS"/>


select utl_http.request ('https://<URL>',null,'file:/tmp/test_wallet') from dual;



=================

useful URL

================


https://docs.oracle.com/en/java/javase/11/tools/keytool.html


https://documentation.commvault.com/commvault/v11/article?p=50497.htm

-


https://www.journaldev.com/160/steps-to-configure-ssl-on-tomcat-and-setup-auto-redirect-from-http-to-https


Comments

Popular posts from this blog

Telegram Integration with Oracle

The username or password for the connection pool named |apex||, are invalid, expired, or the account is locked

Enabled SQL Developer Web (SDW) & ORDS Database API ORDS 19.4