Enabling ssl in metabase: in windows, using powershell : solved issue

MIGHT BE HELPFUL FOR NEWCOMERS TO METABASE.

AT FIRST, RUN POWERSHELL AS ADMINISTRATOR
THEN RUN BELOW COMMANDS

  1. $env:MB_JETTY_SSL="true"
  2. $env:MB_JETTY_SSL_PORT="8443"
  3. $env:MB_JETTY_SSL_KEYSTORE="<PATH_TO_JKS>"
    REFER - HOW DID I GENERATE .JKS FROM .PFX ?

EXAMPLE OF STEP 3 <PATH_TO_JKS>
IF YOUR CERTIFICATE IS LOCATED IN D: DRIVE FOLDER NAMED ssl\mb_jks_key THE PATH MUST BE
"D:\ssl\mb_jks_key\something.jks"

  1. $env:MB_JETTY_SSL_KEYSTORE_PASSWORD="<SECRET_KEY YOU ENTERED WHILE CREATEING JKS>"
  2. java -jar OR <METABASE.JAR>

HOW DID I GENERATE .JKS FROM .PFX?

STPE 1. I GENERATED .P12 (ALSO CALLED PKCS12) FROM .PFX (USING KEYSTORE_EXPLORER)

STEP 2. THEN I RUN BELOW COMMAND, THIS PROCESS CAN BE DONE USING SAME TOOL CALLED KEYSTORE_EXPLORER

(OR ELSE USE THIS COMMAND)
keytool -importkeystore -srckeystore <INPUT_IN_.P12>.p12 -destkeystore <OUTPUT_IN_.JKS>.jks -srcstoretype pkcs12 -alias