1. Always take server.xml backup
2. Sharing my comments at server.xml related to 443 at my localhost: Code:
<Connector port="7777" protocol="HTTP/1.1" Code:
#!/bin/bash Code:
$ type wget Quote:
You can try the same way at your system(after taking the backup of server.xml. I have tried following way at windows: Code:
C:\>set misint=http://127.0.0.1/mis_interest_valid_Dates.html https://127.0.0.1/mis_interest_valid_Dates.html Click Advanced => Click Accept the Risk and Continue to open above url at localhost. Hence you too can perform same kind of testing by modifying/creating required related crt/pem/... files including the backup of server.xml file. Always restart the server and check lsof/netstat -nato using related automated script. I am not using httpd.conf and not apache I am using: Code:
$ cd apache-tomcat-11.0.0-M19/ |
Quote:
I tried changing server.xml with your setup but now none of the urls are working. |
Copying my server.xml wont work at your environment.
Reason: Code:
$ grep C: server.xml You reset your server.xml to your original server.xml file Send me output of: Code:
$ cat server.xml abcd Code:
$ lsof -p abcd I will try the same tomorrow at my cygwin at localhost. If that is working here I will inform you diff your_server.xml and my_server.xml files. |
Here is my server.xml file
Code:
<?xml version="1.0" encoding="UTF-8"?> Code:
lsof -p 443 |
I have performed following steps:
1. Copied your server.xml file and made following changes to your file and MY FILE: a. Remove all blank lines. b. Remove all commented lines. 2. I modified following lines to your file: Replace: Code:
... Code:
... Replace: Code:
<Certificate Code:
<!-- Test results: Code:
Assume that my hostname is MURUGESAN_OPENSSL b. Validate the path /path/to/cert c. Validate related password you have given for certificateKeystorePassword Code:
$ ../bin/shutdown.sh >/dev/null 2>&1 |
Quote:
|
I need to know your comment on:
1) Any comment starts using: <!-- ... --> or <!-- ... --> Have you verified all open tags <!-- having related valid --> closing tag ? Have you verified all close tags --> having related valid <!-- opening tag ? 2) I need to know output of: ls -ltrd /path/to/cert /path/to/cert/* 2>/dev/null 3) your file was having: >> certificateKeystorePassword="passwd" is it valid password ? have you verified that password if valid or not ? 4) Have you made the changes like the way I performed changes in your file and I performed test at my localhost which was working fine. >> I am not writing these statements like a supervisor comment. I am writing these comments using a smile way :) >> you can under stand my comments based on my last statement here :)) |
|
Have you verified all <!-- ...
comments ending with --> ? |
Quote:
comments ending with --> I am unable to restart the tomcat service, it got stuck. I rolled back to original file The password to the certificate seems to be valid. Also I can clearly see from lsof -i:8080 --> the hostname is listening and hence redirection from 8080 -->8443 is working. But 443 is not listening COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 114822 towl 44u IPv6 3087432 0t0 TCP hostname:webcache (LISTEN) |
Quote:
I need to validate your updated server.xml file. can you cat updated xml file for me to validate <!-- ... --> Example usage of my cat.exe command and pasting at linuxquestions.org: 1. Open textpad.exe 2. Open murugesandins@127.0.0.1 using putty.exe (one way) after logon Using putty.exe => Change settings => Session => Logging => Enable all session output Log file name => C:\Users\murugesandins\cygwin\home\murugesandins\&H_&M_&Y_&T.txt 3) inside putty.exe /usr/bin/cat.exe server.xml 4) disable(None) logging at change settings of putty.exe 5) copy log file content and I have saved that content as delete.txt Code:
$ /usr/bin/diff.exe server.xml delete.txt;echo $? After obtaining your server.xml file I can provide updated server.xml file to test at your system. |
Hi, this chain is getting more and more pages and I have been posting server.xml repeatedly and ofcourse yours too with solutions and suggesetions, Is there anyotherway to connect
Code:
<?xml version="1.0" encoding="UTF-8"?> Code:
Using CATALINA_OPTS: --add-exports java.base/jdk.internal.ref=ALL-UNNAMED --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports java.base/sun.nio.ch=ALL-UNNAMED |
a) I always use vim instead of using vi
b) content of ~/.vimrc file: Code:
$ /usr/bin/cat.exe ~/.vimrc Your fifth tag is missing close tag OR fifth starting tag added by mistake. Code:
<!-- Valid01 content of server.xml <!-- count = seven --> count = seven Code:
<?xml version="1.0" encoding="UTF-8"?> search murugesandins inside server.xml Valid02 content of server.xml <!-- count = six --> count = six Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- open tag --> close tag Quote:
I have a) started tomcat server b) taken backup of server.xml c) modified server.xml for testing d) performed shutdown using modified server.xml Hence start and shutdown need to use same server.xml file |
Hi I took the valid xml files provided by you and restarted tomcat server, Now lost connections to both the urls https://server:8443/ https://example.com:8443/.
As i mentioned in my previous ports it just not work with out port which is 443 may be? I will check whats the problem with the port |
other errors error here too on using your file for my testing.
you need to analyze log files Example: Code:
$ cd /home/Murugesan/Din_Back/apache-tomcat-11.0.0-M19/conf |
All times are GMT -5. The time now is 11:10 PM. |