Hi,

OpenSSl has an API named SSL_CONF_cmd. Te API allows application using OpenSSL to no longer implement an application specific configuration option per OpenSSL config feature the app wants to support, but instead use a more generic approach. The API can be seen here (it was added in 1.0.2, but also exists in 1.1.0):

https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_cmd.html

mod_ssl in httpd already supports that API:

http://httpd.apache.org/docs/2.4/en/mod/mod_ssl.html#sslopensslconfcmd

The API can be fed with pairs of command names and values. If we would like to support this, we would have to find an appropriate approach of supporting name/value pairs in our config. I'd say server.xml (and every xml based file) isn't appropriate.

Is there any interest in supporting SSL_CONF_cmd?

If so, should we

a) create a new file, e.g. conf/openssl.properties
or
b) pack new properties into catalina.properties, probably with a common prefix "openssl.conf.cmd."?

And if catalina.properties, should we add the properties also to java system properties or filter them?

Or maybe the other way round: extract all system properties named openssl.conf.cmd.* and use them?

If we would want to support different setting per connector or SSLHostConfig, we would instead need a properties file per connector or SSLHostConfig, so probably an xml attribute opensslConfCmdFile="..." and read the properties form there.

Any opinion?

Regards,

Rainer

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

Reply via email to