Skip to main content
Rajeesh
New Member
August 20, 2021
Question

Network error. Can not connect to vpn server- SSL VPN error on big sur

  • August 20, 2021
  • 7 replies
  • 72704 views
We are getting "Network error. Can not connect to vpn server"  error while connecting SSL VPN on Big sur os.   We are using FortiGate AZUREONDEMAND firewall with  v6.4.2 build1723 (GA).

    7 replies

    James1
    New Member
    August 23, 2021

    Enter the IP address instead of hostname. 

    be_fg
    Explorer
    November 5, 2021

    Hi,

     

    we are facing the exact same issue on our Mac OS Clients with different OS versions. (Big Sur, Monterey).

    If we enter the FQDN of the Remote-Gateway we get the "network error" message, as soon as we enter the IPv4-Address of the Remote-Gateway we can connect without any problem.

    -> entering the fix IPv4-Address is no solution, so how this can be fixed?

     

    Just to be clear, there are no general DNS-issues on our side. The clients can resolve the FQDN by nslookup without any issues.

     

    In the FortiClient Logs there is the following entry:

    NSErrorClientCertificateStateKey=0, NSErrorFailingURLKey=https://FQDN.fortiddns.com:10443/remote/info, NSErrorFailingURLStringKey=https://FQDN.fortiddns.com:10443/remote/info, NSUnderlyingError=0x60000332d620 {Error Domain=kCFErrorDomainCFNetwork Code=-1200 "(null)"

    Adolfo_Z_H
    Staff
    Staff
    December 1, 2021

    it is not a Fortinet issue, per latest security specs from apple, you need to use a valid CA certificate to connet to VPNSSL portal using a FQDN on the client configuration

     

    https://support.apple.com/en-ca/HT210176

     

    boxsters1423
    New Member
    January 20, 2022

    I also have the problem with 7.0.2 on macOS Monterey 12.1 but no problem with 7.0.1 on same macOS both with name.

    boxsters1423
    New Member
    January 20, 2022

    By approving the certificates it's ok.

    CalBryant
    New Member
    April 6, 2022

    Approving the certificate is not working for me.  It seems to be an issue with the SHA signature.

    CalBryant
    New Member
    April 6, 2022

    Any luck on this issue?  I'm trying to trouble shoot this currently.  From what I can tell, the certificate is SHA1 signed and MacOS is requiring SHA2 signature key.

    etiennearaya
    New Member
    April 12, 2022

    Hi, I have luck,

     

    This solution is for SSL VPN only. 

     

    I look into fortitray.log and able to see the problem was a not valid SSL certificate.

     

    Screen Shot 2022-04-11 at 21.23.00.png

    In the above image, forticlient try to visit a URL with not valid certificate that generate error. 

     

    try to go this site:

     

    https://<DESTINATION VPN SITE>:443/remote/info  in Safari browser it will show you a warning because the SSL certificate is not valid, visit the site and it will prompt you accept certificate with your password. 
     
    And finally try to connect. 
     
    I hope you can connect to your VPN.
     
    Regards 
    Etienne
     
    Mbongenisuccess
    New Member
    August 30, 2022

    am experiencing the same error, however the solution provided is not working on the Mac

    johnnyringo
    Visitor III
    October 1, 2022

    Getting this too on MacOS 12.6 (Monterey), FortiClient VPN 7.0.7.  The FortiGate is a 60-E running firmware 7.0.6.  No problems connecting to the same server using VPN Client 6.0.1 on Windows 10.  

     

    The main thing that's throwing me off is the "Do not warn invalid certificate" option basically doesn't work for newer Macs.  So, the certificate must be valid.  I got a LetEncrypt cert, installed that, used a hostname that matched the cert, and now it can connect fine.  

     

    One thing to watch out for with the cert is it needs to include the chain.  For LetEncrypt/CertBot, this is the 'fullchain.pem' file.  

     

    tombe
    New Member
    February 28, 2023

    I experienced the same issue on MacOS 13.1, Forticlient VPN 7.0.7, connecting to a FortiGate with invalid certificate. I was able to solve the issue without having to use a valid certificate.

    First you need to download the certificate:

    openssl s_client -connect {HOSTNAME}:{PORT} </dev/null 2>/dev/null|openssl x509 -outform PEM >mycertfile.pem

    Afterwards, import the pem file in your keychain:

    security import mycertfile.pem -k ~/Library/Keychains/login.keychain

     Then, using keychain access, open the certificate and edit the trust settings:

    Screenshot 2023-02-28 at 09.02.27.png

    RachelGomez123
    New Member
    March 28, 2023

    To troubleshoot this yourself if you have this error, try eliminate the client as the issue by accessing the web portal through a web browser via xxx.xxx.xxx.xxx:yyy/ where x is your IP and y is your port. Updating FortiClient to the newest version resolved the issue.

     

    Regards,

    Rachel Gomez

    johnnyringo
    Visitor III
    March 28, 2023

    Yes, there seems to be different behavior after upgrading FortiGate VPN client from 7.0.7 to 7.0.8.  I get a one-time warning about the certificate, and after that, can connect fine without warning.  Oddly, the "Do not Warn Invalid Server Certificate" checkbox always seems to remain unchecked.  

     

    Oh well, I guess this is progress.