Guest User!

You are not Sophos Staff.

[9.193-11][Bug] SSL Errors

I've some strange errors if I switch-on HTTPS scanning. 

Sometimes the UTM generates wrong certificates with ip address instead of domainname. See images (google-chrome.jpg, google-ff.png, google-ie.png)

Mostly, I see ssl log errors and IE shows faulty certificate, but certificate itself Shows, all is good.. See images (google-ie2.png, google-ie3.png)

[HTML]2014:02:03-12:50:53 asg-1 httpproxy[6276]: id="0003" severity="info" sys="SecureWeb" sub="http" request="0x13d81540" function="ssl_log_errors" file="ssl.c" line="86" message="C 192.168.xx.xx: 4096207728:error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure:s3_pkt.c:989:"[/HTML]

HTTPS (SSL) traffic is on (Decrypt and scan)
Parents
  • Here is an attempt to explain the process as well as I know it right now.

    The following assumes you are NOT using AD SSO (which complicates things).


    Client opens TCP connection and tries to do SSL handshake with Internet Web Server.

    IF HTTPS scanning is URL Filter Only -or- Decrypt
      THEN Look at SSL handshake and SNI to determine destination domain name and categorize it

      IF destination domain should be blocked
         THEN man-in-the-middle.  Issue a certificate based on domain (if possible) or IP.  Display block page text.
      IF destination domain should be allowed AND URL Filter Only
         THEN allow the HTTPS handshake to continue with destination
      IF destination domain should be allowed AND Decrypt and Scan
         THEN man-in-middle.  UTM initiates SSL handshake with destination and gets certificate information.  UTM then issues a certificate to client based on the information it got from the real certificate (including correct domain name).  Allow the traffic.


    Therefore:
    1) Regardless of the HTTPS scanning option selected, if you get a block page you will get a man-in-the-middle and be issued a certificate from the UTM.  This certificate might have the domain or the IP.
    2) If you are doing Decrypt and Scan it and the page is Allowed then it should be using a certificate with the correct name.


    Some people are experiencing 1) which is to be expected and NOT a bug.  We are looking at whether we can do anything to make the issue by IP less common.
    mod2402 is experiencing a problem with 2) where he has an incorrect certificate on an allowed connection with decrypt and scan.  This is being investigated.

    If there are any issues not detailed in this post, please let me know.
Reply
  • Here is an attempt to explain the process as well as I know it right now.

    The following assumes you are NOT using AD SSO (which complicates things).


    Client opens TCP connection and tries to do SSL handshake with Internet Web Server.

    IF HTTPS scanning is URL Filter Only -or- Decrypt
      THEN Look at SSL handshake and SNI to determine destination domain name and categorize it

      IF destination domain should be blocked
         THEN man-in-the-middle.  Issue a certificate based on domain (if possible) or IP.  Display block page text.
      IF destination domain should be allowed AND URL Filter Only
         THEN allow the HTTPS handshake to continue with destination
      IF destination domain should be allowed AND Decrypt and Scan
         THEN man-in-middle.  UTM initiates SSL handshake with destination and gets certificate information.  UTM then issues a certificate to client based on the information it got from the real certificate (including correct domain name).  Allow the traffic.


    Therefore:
    1) Regardless of the HTTPS scanning option selected, if you get a block page you will get a man-in-the-middle and be issued a certificate from the UTM.  This certificate might have the domain or the IP.
    2) If you are doing Decrypt and Scan it and the page is Allowed then it should be using a certificate with the correct name.


    Some people are experiencing 1) which is to be expected and NOT a bug.  We are looking at whether we can do anything to make the issue by IP less common.
    mod2402 is experiencing a problem with 2) where he has an incorrect certificate on an allowed connection with decrypt and scan.  This is being investigated.

    If there are any issues not detailed in this post, please let me know.
Children
No Data