You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Olaf Kock <to...@olafkock.de> on 2022/01/21 09:45:46 UTC

Re: tomcat-10.0.x Problem https multiple IP

Dear Jaebo,

On 21.01.22 10:29, Jaebo Nah wrote:
>  10.100.142.31  =   two.domain.loc
>
> <Connector
>
>       address=" two.domain.loc"
>
>       SSLEnabled="true" defaultSSLHostConfigName="10.100.142.32" >
>
>          <SSLHostConfig hostName="10.100.142.32"
> protocols="TLSv1.2,+TLSv1.1,+TLSv1">
>
>
Above, I only left the lines from your mail that deal with host names
and IP addresses and deleted all others. Note the mismatch between
"two..." refering to "...31" initially, and then you use "...32" later.

Individual IP addresses are no longer needed for https connections to a
server. I'd recommend to either handle them all in a single server, or,
if you need to run multiple tomcats, to handle the correct certificate
choice in a reverse proxy that delegates to the proper Tomcat in the
background.

Olaf


Re: tomcat-10.0.x Problem https multiple IP

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Jaebo,

On 1/21/22 06:42, Jaebo Nah wrote:
> Thank you for your help, I found the problem.
> Only one certificate may be contained in the KeyStore file.
> I had several certificates in the KeyStore file, and the Tomcat server 
> 10.x always got the first certificate in the KeyStore file.
> With Tomcat 9.x you could specify the key alias. That doesn't seem 
> possible with Tomcat 10.x.

You are misreading the documentation. You can certainly have mutiple 
keys + certs in the same keystore. You want to use 
"certificataeKeyAlias" to choose which key to use for the <Certificate>.

Hope that helps,
-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: tomcat-10.0.x Problem https multiple IP

Posted by Jaebo Nah <ja...@pfandbriefbank.com>.
Dear all,

Thank you for your help, I found the problem.
Only one certificate may be contained in the KeyStore file.
I had several certificates in the KeyStore file, and the Tomcat server 10.x always got the first certificate in the KeyStore file.
With Tomcat 9.x you could specify the key alias. That doesn't seem possible with Tomcat 10.x.

Rgds 

 
 Jaebo Nah
  

 Deutsche Pfandbriefbank AG
  Information Technology
Application Management Front Office
  Ludwig-Erhard-Strasse 14
  65760 Eschborn, Germany
 T: +49 6196 9727-209
   jaebo.nah@pfandbriefbank.com
http://www.pfandbriefbank.com 
 

Bitte denken Sie an die Umwelt und verzichten möglichst auf den Ausdruck von E-Mails.
Please think about the environment before printing the email.

Management Board: Andreas Arndt (CEO), Thomas Köntgen (Deputy CEO), Andreas Schenk, Marcus Schulte; Chairman of the Supervisory Board: Dr. Günther Bräunig; Registered office: Munich; Legal form: Aktiengesellschaft; Commercial register: Local Court Munich, HRB 41054
The information contained in this message is confidential or protected by law. If you are not the intended recipient, please contact the sender and delete this message. Any unauthorized copying of this message or unauthorized distribution of the information contained herein is prohibited.
Unsere aktuell gültigen Datenschutzhinweise finden Sie unter https://www.pfandbriefbank.com/datenschutz/europaeische-datenschutz-grundverordnung-eu-dsgvo.html
The currently valid data protection information can be found at https://www.pfandbriefbank.com/en/privacy/translate-to-english-europaeische-datenschutz-grundvero.html