Skip to content

Commit

Permalink
MapR [SPARK-263] Add possibility to use keyPassword which is differen…
Browse files Browse the repository at this point in the history
…t from keyStorePassword (apache#299)
  • Loading branch information
ekrivokonmapr committed Sep 19, 2019
1 parent f73411c commit fb8825c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/main/scala/org/apache/spark/SSLOptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ private[spark] object SSLOptions extends Logging {
.orElse(defaults.flatMap(_.keyStorePassword))
.orElse(Option(sslConfig.getClientKeystorePassword.mkString))

val keyPassword = keyStorePassword
val keyPassword = conf.getWithSubstitution(s"$ns.keyPassword")
.orElse(defaults.flatMap(_.keyPassword))
.orElse(Option(sslConfig.getClientKeyPassword.mkString))

val keyStoreType = conf.getWithSubstitution(s"$ns.keyStoreType")
.orElse(defaults.flatMap(_.keyStoreType))
Expand Down

0 comments on commit fb8825c

Please sign in to comment.