Not able to redirect from http to https


#1

Hello
I am using azure(centos 7) environment for my Metabase POC no doubt its an excellent tool we are loving it.
Now i am trying to redirect http to https , as per the document in “Using HTTPS with Metabase”(and i am running in the Metabase default server jetty).
Anyhow i managed to create the “.jks” and password file by “.crt” using keytool.
After setting the variables
export MB_JETTY_SSL=“true”
export MB_JETTY_SSL_Port=“443”
export MB_JETTY_SSL_Keystore=“path/to/keystore.jks”
export MB_JETTY_SSL_Keystore_Password=“password”
i just ran the jar file . Below are the logs

After the initialization, i tried accessing using https using the port 443 , but i didnt get the luck it was still running on default port 3000. Can anyone please help me out figuring the , where i am doing the mistake .

Thanks


#2

Now the 443 port is able to listen the application , but i am getting the connection error . Is there any feedback on this ?


#3

Not easy to give anything else than a guess with the level of detail you share for your certificate setup and specific error you receive.

Best guess would be that if you have configured a self-signed (homemade) certificate that your browser rejects it because you haven’t told it to trust it.


#4

Hi @jornh,
I am using my organization certificate, what i did is, used the organization cert file to generate the .jks file.
Referred the below link to generate the .jks file from keytool.


#5

Is the address you’re using the same as in the certificate?


#6

Hi @AndrewMBaines
Yes the same address .


#7

What’s the error?


#8

Hello @AndrewMBaines,

I am getting the error like secure connection failed . and i i need to add any other files along with the .jks file in the location?


#9

Did you include the entire certificate chain?


#10

Hi @AndrewMBaines,
No , I have just added the .jks and .p12 files .


#11

Is that trusted by the browser?


#12

Hi @AndrewMBaines,
Yes , i am using my organization’s SSL certificate. The https port(443) is started listening but i am not able access in the browser . I am getting error like “Secure Connection Failed” and getting the empty response in Networks.


#13

There’s a chain of trust. Make sure the certificate’s issuer is trusted by the browser.


#14

Hello @AndrewMBaines,
Thanks , I will have to check with my IT team.