This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is there a way to use the hostname for captive portal instead of IP?

Really, the subject says it all... is there a way to configure the HTTPS & HTTP proxies to redirect to a hostname instead of the IP address of the firewall?

Reason I ask is I'd really like to keep my certificates consistent.  We use an internal PKI, and so I have issued the XG a valid certificate based on our root cert.  Yes, I can go back and re-issue it with the IP address, but I would like for it to redirect, if possible, to the internal hostname instead.

Similar to overriding the hostname for the external SSL vpn... I want to do it on an internal-facing service.

If the answer is currently "not possible" - I would like to suggest this as a feature.



This thread was automatically locked due to age.
Parents
  • You can generate the self signed certificate from CLI in the following way:

    1. openssl genrsa -des3 -out sophosxg.key 1024

    2. openssl req -new -key sophosxg.key -out sophosxg.csr

    3. fill all the required field and pay attention with common name (put your desired XG name instead IP)

    4. cp sophosxg.key sophosxg.key.org

    5. openssl rsa -in sophosxg.key.org -out sophosxg.key

    6. openssl x509 -req -days 365 -in sophosxg.csr -signkey sophosxg.key -out sophosxg.crt

    7. cat sophosxg.key sophosxg_cert.crt > sophosxg_cert.pem

    Use ftpput from XG to your computer to copy pem file and .key.

    Now on UI go to Certificate and upload the new certificate using previous files and create a new CA using the same files.

    Enjoy.

    Luk

     

     

  • Read the question, Luk. That doesn't solve it.

    The question is how to get the portal to USE the hostname... you can create a certificate all day long. It will still USE the IP address every. single. time for redirects. EVERY single time.
Reply Children