Hakky54 opened a new pull request, #673:
URL: https://github.com/apache/tomcat/pull/673

   Tomcat supports configuring a custom SSLContext when configuring the 
`SSLHostConfigCertificate`. However the custom SSLContext gets ignored during 
the server startup and ssl initialization. A new SSLContext will be created and 
it will fail if not all properties are provided. A fix would be to use the 
custom SSLContext if it is present or fallback to the original behaviour of 
still creating it.
   
   I noticed this issue when I tried to configure the embedded tomcat server 
within Spring Boot. Although it is possible to configure it, it was just 
ignoring it which I found strange. I asked for help at stackoverflow here: 
https://stackoverflow.com/questions/77322685/configuring-ssl-programatically-of-a-spring-boot-server-with-tomcat-is-failing
   
   However after debugging the source code I found out the custom ssl is being 
ignored. I made the code adjustment and created local artificats to test with 
my project and it worked.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to