Github user scwf commented on the pull request:

    https://github.com/apache/spark/pull/1980#issuecomment-57787121
  
    Hi, @JoshRosen, refer to  http://wiki.eclipse.org/Jetty/Howto/Configure_SSL
    you can generating keys and certificates by openssl or keytool
    1 Generating Keys and Certificates with OpenSSL keytool use command as 
follows
    openssl genrsa -des3 -out spark.key
    openssl req -new -x509 -key spark.key -out spark.crt 
    openssl pkcs12 -inkey spark.key -in spark.crt -export -out spark.pkcs12
    keytool -importkeystore -srckeystore spark.pkcs12 -srcstoretype PKCS12 
-destkeystore spark.keystore
    
    2 Generating Keys and Certificates with JDK keytool use
    keytool -keystore spark.keystore -alias spark -genkey -keyalg RSA
    
    This two way both ok in my machine and here is my configs in spark
    ```spark-env.sh```
    export SPARK_MASTER_OPTS="-Dspark.ui.https.enabled=true 
-Dspark.ui.ssl.server.keystore.location=/home/wf/code/https/ssl/spark.keystore 
-Dspark.ui.ssl.server.keystore.keypassword=123456 
-Dspark.ui.ssl.server.keystore.password=123456"
    
    export SPARK_WORKER_OPTS="-Dspark.ui.https.enabled=true 
-Dspark.ui.ssl.server.keystore.location=/home/wf/code/https/ssl/spark.keystore 
-Dspark.ui.ssl.server.keystore.keypassword=123456 
-Dspark.ui.ssl.server.keystore.password=123456"
    ```spark-defaults.conf```
    spark.ui.https.enabled           true
    spark.ui.ssl.server.keystore.location /home/wf/code/https/ssl/spark.keystore
    spark.ui.ssl.server.keystore.keypassword 123456
    spark.ui.ssl.server.keystore.password 123456
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to