You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/09/25 16:01:00 UTC
[jira] [Commented] (LOG4J2-2054) Provide ways to configure SSL that
avoid plain-text passwords in the log4j configuration
[ https://issues.apache.org/jira/browse/LOG4J2-2054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16179218#comment-16179218 ]
ASF subversion and git services commented on LOG4J2-2054:
---------------------------------------------------------
Commit 08077cba385ee376aa44ae33c66833421e9d19bc in logging-log4j2's branch refs/heads/master from rpopma
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=08077cb ]
LOG4J2-2054 Provide ways to configure SSL that avoid plain-text passwords in the log4j configuration. The configuration may now specify a system environment variable that holds the password, or the path to a file that holds the password.
> Provide ways to configure SSL that avoid plain-text passwords in the log4j configuration
> ----------------------------------------------------------------------------------------
>
> Key: LOG4J2-2054
> URL: https://issues.apache.org/jira/browse/LOG4J2-2054
> Project: Log4j 2
> Issue Type: Improvement
> Components: Appenders
> Affects Versions: 2.9.1
> Reporter: Remko Popma
> Assignee: Remko Popma
> Fix For: 2.10.0
>
>
> Following up on LOG4J2-1896, currently SecureSocketAppender can only be configured by specifying the passwords to the trust store and the key store in plain text in the log4j 2 configuration file.
> Provide alternative configurations that obtain the password from different sources, for example:
> * system environment variable
> * file
> Example configuration:
> {noformat}
> <Appenders>
> <Socket name="socket" host="localhost" port="${sys:SecureSocketAppenderSocketOptionsTest.port}" protocol="SSL"
> ignoreExceptions="false">
> <JsonLayout properties="true"/>
> <Ssl>
> <KeyStore location="src/test/resources/org/apache/logging/log4j/core/net/ssl/client.log4j2-keystore.jks"
> passwordEnvironmentVariable="KEYSTORE_PASSWORD" type="JKS" />
> <TrustStore location="src/test/resources/org/apache/logging/log4j/core/net/ssl/truststore.jks"
> passwordFile="${sys:user.home}/truststore.pwd" type="JKS" />
> </Ssl>
> </Socket>
> </Appenders>
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)