Your old comment of using my server.xml:
>> without using copy and paste.
Quote:
Proxy tunneling failed: Gateway TimeoutUnable to establish SSL connection
|
a)
Not now, during 2023/2013/... while downloading using wget/wget.exe/firefox.exe (wget inside vmplayer at windows)
I used to disable proxy settings at windows I proxy (you can perform the same at your OS)
After completing the download I used to enable proxy.
I agree that disabling proxy used to disconnect putty/mstsc/... other connections which are dependent on proxy.
However this step never provided status error at microsoft teams/chat over the years from 2003 to till now.
b)
my wget at localhost:
wget -c --no-check-certificate URL
or
wget -c --no-check-certificate URL parameters
if the provider is allowing --no-check-certificate option to download.
One more way:
logon using firefox/browser using microsoft account
open about
:downloads
Right click pause
Right click and click Copy Download link
Use that download link and wget to download using bash/vmplayer without:
1. closing the browser
2. clearing cookies.
3. logout from browser.
I have written microsoft account name here.
microsoft account => can be your user name where you have subscribed at related url (eg: external library providers at opensource).
==================
following server.xml is working fine for me when I am using:
http://127.0.0.1:7777
http://127.0.0.1:80
http://127.0.0.1:8444
http://127.0.0.1:8445
https://127.0.0.1:9018
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Server port="9090" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<Listener className="org.apache.catalina.core.AprLifecycleListener" />
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/css/*</url-pattern>
</servlet-mapping>
<Connector port="7777" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- Define an HTTP/1.1 Connector on port 8444, JSSE NIO implementation -->
<Connector port="8444" protocol="org.apache.coyote.http11.Http11NioProtocol"
sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementation"
/>
<!-- Define an HTTP/1.1 Connector on port 8445, JSSE NIO2 implementation -->
<Connector port="8445" protocol="org.apache.coyote.http11.Http11Nio2Protocol"
sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementation"
/>
<!-- Define an SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector port="8443"
protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="200"
maxParameterCount="1000"
scheme="https"
secure="true"
SSLEnabled="true"
SSLCertificateFile="conf/server.crt"
SSLCertificateKeyFile="conf/cert.pem"
SSLVerifyClient="optional"
SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"/>
<Connector port="9018"
connectionTimeout="20000"
acceptCount="100"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol="TLS"
maxThreads="150"
protocol="org.apache.coyote.http11.Http11NioProtocol"
keystoreFile="conf/localhost-rsa.jks"
keystorePass="Openssl@123"
keyAlias="server"
SSLEnabled="true">
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyFile="conf/privkey.pem"
certificateFile="conf/cert.pem"
certificateChainFile="conf/chain.pem"
type="RSA" />
</SSLHostConfig>
</Connector>
<Engine name="Catalina" defaultHost="127.0.0.1">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Host name="127.0.0.1" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
</Service>
</Server>
After this change I have modified environment variable at windows using:
C:\Windows\System32\rundll32.exe sysdm.cpl,EditEnvironmentVariables
%misint%
Reason for last comment:
You can set related environment variable inside automated script to open using firefox/browser at your OS to test your url
After this I tried modifying my server.xml file to:
Code:
$ cd webapps
$ mkdir murugesan_openssl
$ mv ROOT/*.html ROOT/*.css murugesan_openssl
$ ../conf/cleanstart.sh
$ cat ../conf/server.xml
<?xml version="1.0" encoding="UTF-8"?>
<Server port="9090" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<Listener className="org.apache.catalina.core.AprLifecycleListener" />
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/css/*</url-pattern>
</servlet-mapping>
<Connector port="7777" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<!-- Define an HTTP/1.1 Connector on port 8444, JSSE NIO implementation -->
<Connector port="8444" protocol="org.apache.coyote.http11.Http11NioProtocol"
sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementation"
/>
<!-- Define an HTTP/1.1 Connector on port 8445, JSSE NIO2 implementation -->
<Connector port="8445" protocol="org.apache.coyote.http11.Http11Nio2Protocol"
sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementation"
/>
<!-- Define an SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector port="8443"
protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="200"
maxParameterCount="1000"
scheme="https"
secure="true"
SSLEnabled="true"
SSLCertificateFile="conf/server.crt"
SSLCertificateKeyFile="conf/cert.pem"
SSLVerifyClient="optional"
SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"/>
<Connector port="9018"
connectionTimeout="20000"
acceptCount="100"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol="TLS"
maxThreads="150"
protocol="org.apache.coyote.http11.Http11NioProtocol"
keystoreFile="conf/localhost-rsa.jks"
keystorePass="Openssl@123"
keyAlias="server"
SSLEnabled="true">
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyFile="conf/privkey.pem"
certificateFile="conf/cert.pem"
certificateChainFile="conf/chain.pem"
type="RSA" />
</SSLHostConfig>
</Connector>
<Engine name="Catalina" defaultHost="127.0.0.1">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Host name="127.0.0.1" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
</Service>
</Server>
$
After related update and restart
https://127.0.0.1:9018
automatically redirecting to:
https://127.0.0.1:9018/murugesan_openssl/index.html
Code:
$ /usr/bin/ls -trd webapps/ROOT/index.jsp*
webapps/ROOT/index.jsp.Original webapps/ROOT/index.jsp
$ cat webapps/ROOT/index.jsp
<%
response.sendRedirect("/murugesan_openssl/index.html");
%>
================= Next change =======================
Sorry/puri for adding more comments.
puri => Dharmapuri => Dharma puri => provide dharmam using tamil => provide donation.
I have modified one more time at server.xml and webweb.xml files
Code:
$ cat server.xml
<?xml version="1.0" encoding="UTF-8"?>
<Server port="9090" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
<Listener className="org.apache.catalina.core.AprLifecycleListener" />
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
<GlobalNamingResources>
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved"
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="conf/tomcat-users.xml" />
</GlobalNamingResources>
<Service name="Catalina">
<servlet-mapping>
<servlet-name>default</servlet-name>
<url-pattern>/css/*</url-pattern>
</servlet-mapping>
<!--
<Connector port="7777" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define an HTTP/1.1 Connector on port 8444, JSSE NIO implementation -->
<!--
<Connector port="8444" protocol="org.apache.coyote.http11.Http11NioProtocol"
sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementation"
/>
-->
<!-- Define an HTTP/1.1 Connector on port 8445, JSSE NIO2 implementation -->
<!--
<Connector port="8445" protocol="org.apache.coyote.http11.Http11Nio2Protocol"
sslImplementationName="org.apache.tomcat.util.net.jsse.JSSEImplementation"
/>
-->
<!-- Define an SSL Coyote HTTP/1.1 Connector on port 8443 -->
<Connector port="8443"
protocol="org.apache.coyote.http11.Http11AprProtocol"
maxThreads="200"
maxParameterCount="1000"
scheme="https"
secure="true"
SSLEnabled="true"
SSLCertificateFile="conf/server.crt"
SSLCertificateKeyFile="conf/cert.pem"
SSLVerifyClient="optional"
SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"/>
<Connector port="80"
scheme="https"
URIEncoding="UTF-8"
acceptCount="100"
enableLookups="false"
maxThreads="150"
redirectPort="9018"
/>
<Connector port="9018"
connectionTimeout="20000"
acceptCount="100"
scheme="https"
secure="true"
clientAuth="false"
sslProtocol="TLS"
maxThreads="150"
protocol="org.apache.coyote.http11.Http11NioProtocol"
keystoreFile="conf/localhost-rsa.jks"
keystorePass="Openssl@123"
keyAlias="server"
SSLEnabled="true">
<UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
<SSLHostConfig>
<Certificate certificateKeyFile="conf/privkey.pem"
certificateFile="conf/cert.pem"
certificateChainFile="conf/chain.pem"
type="RSA" />
</SSLHostConfig>
</Connector>
<Engine name="Catalina" defaultHost="127.0.0.1">
<Realm className="org.apache.catalina.realm.LockOutRealm">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase"/>
</Realm>
<Host name="127.0.0.1" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
</Service>
</Server>
Added lines above the last bottom line => above the line having </web-app>