Skip to content

Commit 7d481c6

Browse files
authored
docsp-31210 - mTLS (#169)
1 parent b0a50f2 commit 7d481c6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

source/faq.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,19 @@ In MongoDB deployments with mixed versions of :binary:`~bin.mongod`, it is
3737
possible to get an ``Unrecognized pipeline stage name: '$sample'``
3838
error. To mitigate this situation, explicitly configure the partitioner
3939
to use and define the Schema when using DataFrames.
40+
41+
How can I use mTLS for authentication?
42+
--------------------------------------
43+
44+
To use mTLS, include the following options when you run ``spark-submit``:
45+
46+
.. code-block:: bash
47+
48+
--driver-java-options -Djavax.net.ssl.trustStore=<path to your truststore.jks file> \
49+
--driver-java-options -Djavax.net.ssl.trustStorePassword=<your truststore password> \
50+
--driver-java-options -Djavax.net.ssl.keyStore=<path to your keystore.jks file> \
51+
--driver-java-options -Djavax.net.ssl.keyStorePassword=<your keystore password> \
52+
-conf spark.executor.extraJavaOptions=-Djavax.net.ssl.trustStore=<path to your truststore.jks file> \
53+
-conf spark.executor.extraJavaOptions=-Djavax.net.ssl.trustStorePassword=<your truststore password> \
54+
-conf spark.executor.extraJavaOptions=-Djavax.net.ssl.keyStore=<path to your keystore.jks file> \
55+
-conf spark.executor.extraJavaOptions=-Djavax.net.ssl.keyStorePassword=<your keystore password> \

0 commit comments

Comments
 (0)