B4J Question [ABM] How to implement SSL for ABM mini template?

incendio

Well-Known Member
Licensed User
Longtime User
Hi,
I follow this thread to setup ssl for ABM mini template

I have succesfully created a keystore file (steps 1-4 from post #1), but steps 5-10 not done yet.

I have these codes in my project
B4X:
Sub AppStart (Args() As String)
    Server.Initialize("", DonatorKey, "test") ' Application = ' the handler that will be used in the url e.g. http://localhost:51042/template
    Server.Port = 25000
    Server.PortSSL = 55555
    If Server.PortSSL <> 0 Then
        Server.StartServerHTTP2("keystore.jks", "mypass", "mypass")
    Else
        Server.StartServer
    End If
               
    StartMessageLoop
End Sub

When I type localhost:25000/MyWeb/ it showed OK but the browser address bar showed http://localhost:25000/MyWeb, and give warning that this is not a secure web.

There is no different wheater use ssl or not. Is this normal?
 
Last edited:
Top