Discussion:
not able to setup tomcat 7 to use port 8443
masber masber
2018-12-01 03:45:56 UTC
Permalink
Dear tomcat community,

I am trying to setup tomcat 7.0.69.0 on port 8443 but for some reason no service is listening that port after tomcat is rebooted.

I uncommented the following part in server.xml


<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"

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

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

And then just rebooted tomcat but sudo ss -nolpt | grep 8443 shows nothing

what am I doing wrong?
masber masber
2018-12-01 05:26:43 UTC
Permalink
ok,

forcing NIO implementation makes tomcat service to listen port 8443 but now I do a test using curl and the client does not get response from the server.


$ curl -I 'https://XXXXXXXXXXXXX:8443/authentication' -H 'Authorization: Basic XXXXXXXXXXXXX' -H 'Content-Type: application/json' -H 'Accept: */*' -v

* Trying XXX.XXX.XXX.XXX...

* TCP_NODELAY set

* Connected to dev.retex.global (XXX.XXX.XXX.XXX) port 8443 (#0)

* ALPN, offering h2

* ALPN, offering http/1.1

* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH

* successfully set certificate verify locations:

* CAfile: /etc/ssl/cert.pem

CApath: none

* TLSv1.2 (OUT), TLS handshake, Client hello (1):


any thoughts?



________________________________
From: masber masber <***@hotmail.com>
Sent: Saturday, 1 December 2018 14:45
To: ***@tomcat.apache.org
Subject: not able to setup tomcat 7 to use port 8443

Dear tomcat community,

I am trying to setup tomcat 7.0.69.0 on port 8443 but for some reason no service is listening that port after tomcat is rebooted.

I uncommented the following part in server.xml


<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"

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

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

And then just rebooted tomcat but sudo ss -nolpt | grep 8443 shows nothing

what am I doing wrong?
André Warnier (tomcat)
2018-12-01 10:55:20 UTC
Permalink
Post by masber masber
ok,
forcing NIO implementation makes tomcat service to listen port 8443 but now I do a test using curl and the client does not get response from the server.
$ curl -I 'https://XXXXXXXXXXXXX:8443/authentication' -H 'Authorization: Basic XXXXXXXXXXXXX' -H 'Content-Type: application/json' -H 'Accept: */*' -v
* Trying XXX.XXX.XXX.XXX...
* TCP_NODELAY set
* Connected to dev.retex.global (XXX.XXX.XXX.XXX) port 8443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* CAfile: /etc/ssl/cert.pem
CApath: none
any thoughts?
Yes : look at the Tomcat logs. They usually contain useful information.
Post by masber masber
________________________________
Sent: Saturday, 1 December 2018 14:45
Subject: not able to setup tomcat 7 to use port 8443
Dear tomcat community,
I am trying to setup tomcat 7.0.69.0 on port 8443 but for some reason no service is listening that port after tomcat is rebooted.
I uncommented the following part in server.xml
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
And then just rebooted tomcat but sudo ss -nolpt | grep 8443 shows nothing
what am I doing wrong?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org

Loading...