You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "alipsitz-sf (via GitHub)" <gi...@apache.org> on 2024/06/10 15:25:33 UTC

Re: [PR] Added option to use custom SSLContext [tomcat]

alipsitz-sf commented on PR #673:
URL: https://github.com/apache/tomcat/pull/673#issuecomment-2158656022

   Hey, I'm not really good navigating Bugzilla, so I don't know if it's been reported already but it looks like this PR broke the `AbstractHttp11Protocol.reloadSslHostConfigs()` API when relying on the generatedSslContext.
   
   You can see in my screenshot on the left side that the SSL Context would ALWAYS be regenerated (when the keystore content changed, the newer version of the certificate chain in the keystore would be used). 
   
   On the right side, the SSL Context will only be regenerated if `getSslContext()` is null, which will never happen in this use case since that getter falls back to the existing `sslContextGenerated` (newer certificate within the keystore is never used unless a user provided SSL Context is created).
   
   Two ideas that come to mind would be to either edit the if-condition `sslContext==null || sslContext.equals(certificate.getSslContextGenerated())` or add and call another getter `certificate.getSslContextProvided()`.
   
   
   ![image](https://github.com/apache/tomcat/assets/38224657/f8db1d9a-d355-4b49-aef6-5cb17b840919)
   
   


-- 
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-unsubscribe@tomcat.apache.org

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


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