Jump to content

Cannot log in using HTTPS


chrispopp

Recommended Posts

Used LetsEncrypt to generate a certificate.

 

We are using port 9443 for https. If I go to my subdomain portal, it works fine, and the connection is established and secure (see pic). But cannot login.

 

Using the same credentials via http/port 80, works fine, and can log in without any problems. I can even change the http to https and port 9443, once loged in, and the session works via https... Why can't I log in using https?

 

 

1C1Nxo8y6e86sPe6b5EtDapGdTCOO0.png

Link to comment
Share on other sites

Certificates are generated for a specific DNS address. If you go to another address, the web browser will reject the certificate (otherwise everybody could just slap any certificate on any server and pretend to be google.com). You might need a wildcard certificate if you want to have multiple domains on that server, or at least one certificate for each domain.

Link to comment
Share on other sites

Further further testing, i am able to log-in correctly using the full username: 9999@sub.domain.com and the password.

 

I think the problem is withing the welcome.js which I cannot modify:

// Redirect to secure login?
    if (session.secure && window.location.protocol !== 'https:') {
      var l = 'https://' + window.location.hostname + ":" + session.secure + window.location.pathname + window.location.hash;
      window.location = l;
      return;
    }
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...