Contained herein is material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction of the patent disclosure by any person as it appears in the Patent and Trademark Office patent files or records, but otherwise reserves all rights to the copyright whatsoever. Copyright © 2014-2018, Fortinet, Inc.
Embodiments of the present invention generally relate to computer networking. In particular, various embodiments relate to management of a certificate authority (CA) certificate on a client machine and a network security appliance.
Many networking applications require secure and authenticated communications. Secure Sockets Layer (SSL) and its related protocols are often used to enable secure communications between a client and a server. According to SSL protocols, session information between an SSL client and an SSL server are negotiated through a handshake phase and the identity of the SSL server is verified by the SSL client. The session information may include a session ID, peer certificates, the cipher specification to be used, the compression algorithm to be used, and shared secrets that are used to generate symmetric cryptographic keys. The SSL client encrypts a premaster secret with a public key from the SSL server's certificate and transmits the premaster secret to the server. Then, both parties compute the master secret locally and derive the session key from it. After the handshake phase, a secure socket is established, and application data encrypted by the session key can be securely transmitted between the client and server.
To inspect data that is encrypted in an SSL packet, a security policy enforcement device may perform SSL man-in-the-middle inspection as shown in
During the handshake phase, SSL server 130 sends a server certificate that is issued by a certificate authority and signed by a CA certificate to SSL client 110. SSL client 110 checks trusted root certificates in the certificate store of SSL client 110 for the CA certificate that signed the server certificate. If the CA certificate is one of the trusted root certificates that are installed in the certificate store, it means that the server certificate is signed by a trusted CA and is acceptable to SSL client 110. If the CA certificate is not one of the trusted root certificates, SSL client 110 may present a warning message as shown in
In a man-in-the-middle SSL inspection system as shown in
Manually installing a CA certificate within a firewall requires knowledge of certificates and different operating systems and platform may have different process for installing root CA certificates. It is not convenient for users to install the CA certificate on client systems. Therefore, there is a need for a method and system that automatically installs and manage CA certificates on client systems.
Systems and methods are described for automatically installing CA certificates received from a network security appliance by a client security manager to make the CA certificate become a trusted CA certificate to a client machine. In one embodiment, a client security manager establishes a connection with a network security appliance through a network, wherein the client security manager is configured for managing security of a client at the client side and the network security appliance is configured for managing the security of traffic pass through the network. The client security manager downloads from the network security appliance a certificate authority (CA) certificate to be used for signing a server certificate of a secure connection between the network security appliance and the client and automatically installs the CA certificate into a certificate store of the client.
Other features of embodiments of the present invention will be apparent from the accompanying drawings and from the detailed description that follows.
Embodiments of the present invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:
Systems and methods are described for automatically installing CA certificates received from a network security appliance by a client security manager to make the CA certificate become a trusted CA certificate to a client machine. According to one embodiment, a client security manager establishes a connection with a network security appliance through a network, wherein the client security manager is configured for managing security of a client at the client side and the network security appliance is configured for managing the security of traffic pass through the network. The client security manager downloads from the network security appliance a certificate authority (CA) certificate to be used for signing a server certificate of a secure connection between the network security appliance and the client and automatically installs the CA certificate into a certificate store of the client.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of embodiments of the present invention. It will be apparent, however, to one skilled in the art that embodiments of the present invention may be practiced without some of these specific details. In other instances, well-known structures and devices are shown in block diagram form.
Embodiments of the present invention include various steps, which will be described below. The steps may be performed by hardware components or may be embodied in machine-executable instructions, which may be used to cause a general-purpose or special-purpose processor programmed with the instructions to perform the steps. Alternatively, the steps may be performed by a combination of hardware, software, firmware and/or by human operators.
Embodiments of the present invention may be provided as a computer program product, which may include a machine-readable storage medium tangibly embodying thereon instructions, which may be used to program a computer (or other electronic devices) to perform a process. The machine-readable medium may include, but is not limited to, fixed (hard) drives, magnetic tape, floppy diskettes, optical disks, compact disc read-only memories (CD-ROMs), and magneto-optical disks, semiconductor memories, such as ROMs, PROMs, random access memories (RAMs), programmable read-only memories (PROMs), erasable PROMs (EPROMs), electrically erasable PROMs (EEPROMs), flash memory, magnetic or optical cards, or other type of media/machine-readable medium suitable for storing electronic instructions (e.g., computer programming code, such as software or firmware). Moreover, embodiments of the present invention may also be downloaded as one or more computer program products, wherein the program may be transferred from a remote computer to a requesting computer by way of data signals embodied in a carrier wave or other propagation medium via a communication link (e.g., a modem or network connection).
In various embodiments, the article(s) of manufacture (e.g., the computer program products) containing the computer programming code may be used by executing the code directly from the machine-readable storage medium or by copying the code from the machine-readable storage medium into another machine-readable storage medium (e.g., a hard disk, RAM, etc.) or by transmitting the code on a network for remote execution. Various methods described herein may be practiced by combining one or more machine-readable storage media containing the code according to the present invention with appropriate standard computer hardware to execute the code contained therein. An apparatus for practicing various embodiments of the present invention may involve one or more computers (or one or more processors within a single computer) and storage systems containing or having network access to computer program(s) coded in accordance with various methods described herein, and the method steps of the invention could be accomplished by modules, routines, subroutines, or subparts of a computer program product.
Notably, while embodiments of the present invention may be described using modular programming terminology, the code implementing various embodiments of the present invention is not so limited. For example, the code may reflect other programming paradigms and/or styles, including, but not limited to object-oriented programming (OOP), agent oriented programming, aspect-oriented programming, attribute-oriented programming (@OP), automatic programming, dataflow programming, declarative programming, functional programming, event-driven programming, feature oriented programming, imperative programming, semantic-oriented programming, functional programming, genetic programming, logic programming, pattern matching programming and the like.
Brief definitions of terms used throughout this application are given below.
The terms “connected” or “coupled” and related terms are used in an operational sense and are not necessarily limited to a direct connection or coupling. Thus, for example, two devices may be coupled directly, or via one or more intermediary media or devices. As another example, devices may be coupled in such a way that information can be passed there between, while not sharing any physical connection with one another. Based on the disclosure provided herein, one of ordinary skill in the art will appreciate a variety of ways in which connection or coupling exists in accordance with the aforementioned definition.
The phrases “in one embodiment,” “according to one embodiment,” and the like generally mean the particular feature, structure, or characteristic following the phrase is included in at least one embodiment of the present invention, and may be included in more than one embodiment of the present invention. Importantly, such phrases do not necessarily refer to the same embodiment.
If the specification states a component or feature “may”, “can”, “could”, or “might” be included or have a characteristic, that particular component or feature is not required to be included or have the characteristic.
The phrase “network security appliance” generally refers to a hardware device or appliance configured to be coupled to a network and to provide one or more of data privacy, protection, encryption and security. The network security appliance can be a device providing one or more of the following features: network firewalling, VPN, antivirus, intrusion prevention (IPS), content filtering, data leak prevention, antispam, antispyware, logging, reputation-based protections, event correlation, network access control, vulnerability management, load balancing and traffic shaping—that can be deployed individually as a point solution or in various combinations as a unified threat management (UTM) solution. Non-limiting examples of network security devices include proxy servers, firewalls, VPN appliances, gateways, UTM appliances and the like.
Endpoint control module 124 may be a daemon running on firewall 120 that may manage the client security manager remotely. A CA certificate 111 may be generated by firewall 120 and used for signing a server certificate that is used for establishing an SSL session with SSL client 110 for deep inspection of encrypted traffic transmitted to and from SSL client 110. In some embodiments, CA certificate 111 may be a unique CA certificate to firewall 120 and may be generated when firewall 120 is powered up based on random parameters that are generated by a hardware random generator. In other embodiments, CA certificate 111 may be a CA certificate of the user of firewall 120 and it may be imported or uploaded by the user. CA certificate 111 may be pushed to SSL client 110 through a network connection between client security manager 112 and endpoint control module 124 and will be installed on SSL client 110 by client security manager 112. CA certificate 111 may be used for signing a server certificate that is used by transparent SSL proxy 122 to identify firewall 120 in an SSL session between SSL client 110 and firewall 120.
Client security manager 112 may be client-based software that offers a wide range of security features for client computers, including, but not limited to, personal computers, laptops or mobile devices. Client security manager 112 may provide multiple functions, including, but not limited to, virus scan, Virtual Private Network (VPN), two factor authentication, parental control and etc. Client security manager 112 may also connect to firewall 120 to extend the security function of firewall 120 to the client side. When client security manager 112 is installed or loaded on SSL client 110, client security manager 112 may send a registration or connecting request to firewall 120. Firewall 120 may send a client configuration file to client security manager 112 if the request is accepted. The client configuration file may include a CA certificate 111 issued by firewall 120. After client security manager 112 receives CA certificate 111, it is installed by client security manager 112 to the certificate store of SSL client 110. After CA certificate 111 is installed in the certificate store, CA certificate 111 become a trusted root CA certificate and the server certificate that is received by SSL client 110 in an SSL session and signed by CA certificate 111 will be trusted by SSL client 110 and no warning message will be presented to the user.
Connection module 501 is used for establishing a network connection with a network security appliance, e.g., a FORTIGATE network gateway (FORTIGATE is a trademark or registered trademark of Fortinet, Inc. of Sunnyvale, Calif.). When client security manager 112 is installed or loaded on a client machine, connection module 501 may try to find the network security appliance that is managing the network. Connection module 501 may initiate a request to establish a secure connection, for example, by way of SSL and/or IPsec, with the network security appliance based on an endpoint control protocol defined by the manufacturer of client security manager 112 and the network security appliance. By establishing a secure connection, data traffic between client security manager 112 and the network security appliance are encrypted and transmitted in the secure connection so that the transmitted data cannot be intercepted by a third party.
Registration management module 502 is used for registering or un-registering client security manager 112 with the network security appliance. Generally, when client security manager 112 is installed on a client machine, registration management module 502 may send a registration request and registration information, such as registration serial number, to the network security appliance through the secure tunnel between client security manager 112 and the network security appliance. When the user of client security manager 112 wants to un-register it from the network security appliance, registration management module 502 may send a un-registration request to the network security appliance.
Configuration module 503 is used for receiving a client configuration file from the network security appliance and configuring client security manager 112 according to the client configuration file. Generally, after client security manager 112 is registered with a client security manager, the client security manager may push a client configuration file to client security manager 112 through the secure tunnel established between client security manager 112 and the network security appliance. The client configuration file may be an extensible markup language (XML) file including multiple elements defining the settings that should be used on client security manager 112. After the client configuration file is received, configuration module 503 may extract each element of the client configuration file and configure settings and functions of client security manager 112 accordingly. If a CA certificate is included in the client configuration file, the CA certificate is extracted from the client configuration file and sent to CA management module 504 for installation within a CA certificate store of the client machine. Configuration module 503 may also backup the settings of client security manager 112 as well as the CA certificate downloaded from the network security appliance to a backup file that is locally stored on the client machine. The backup file may be used for restoring previous settings and the CA certificate when client security manager is restored on the client machine.
CA management module 504 is used for managing CA certificates received from the network security appliance. When a CA certificate is received from the network security appliance with which client security manager 112 is registered, CA management module 504 may optionally check if the CA certificate is a valid certificate, e.g., not expired and etc. After the verification, CA management module 504 may call corresponding certificate Application Programming Interfaces (APIs) or tools to install the CA certificate into a certificate store of the client machine. Further, when client security manager 112 is un-registered from the network security appliance or uninstalled from the client machine, CA management module 504 may optionally call corresponding APIs or tools to delete the CA certificate from the certificate store to avoid too many CA certificates from remaining in the certificate store.
Security module 505 may include multiple modules that provide security functions of client security manager 112, including, but not limited to, virus scan, web filtering, VPN connection, parental control and etc. These functions are well-known to persons skilled in the art and detailed descriptions thereof will be omitted for sake of brevity.
At block 601, a client security manager initiates a connection to a firewall when the client security manager is installed or loaded on the client machine. In some examples, the client security manager may initiate a secure connection to the firewall based on an endpoint control protocol that is defined by the manufacture of the client security manager and the firewall. The endpoint control protocol may control the data and control message transmission between the client security manager and the firewall across a network in a secure way. The endpoint control protocol may be a private protocol or a standard control protocol, e.g., Control And Provisioning of Wireless Access Points (CAPWAP).
At block 602, the firewall negotiates with the client security manager and establishes a secure connection between the client security manager and the firewall. After the secure connection is established, data and control messages between the client security manager and the firewall may be transmitted through the network without being intercepted by third parties.
At block 603, the client security manager may send a register request to the firewall if it is the first time that the client security manager is installed on the client machine. The registration request may include registration information, such as serial numbers, user information and etc., which are used for verifying a legitimate user of the client security manager and the firewall. If the client security manager is already registered with the firewall, the client security manager may send a login request at each time that it is loaded for running on the client machine.
At block 604, the firewall receives the registration request or the login request and verifies if the client security manager is a legitimate user based on the received registration information or user credentials at block 605. If the client security manager is not a legitimate user, the request is rejected. If the client security manager is a legitimate user, the process goes to block 606
At block 606, a CA certificate is pushed to the client security manager through the secure connection. In some examples, the firewall may push a client configuration file to the client security manager when the client security manager is registered with the firewall based on the endpoint control protocol. The client configuration file may be an extensible markup language (XML) file that includes settings to be used by the client security manager for configuring various functions to be executed on the client machine. The CA certificate of the firewall may be an element of the client configuration file. Further, the CA certificate may be a unique CA certificate to the firewall. In other examples, the user of firewall may also import or upload his own CA certificate to the firewall and use the custom certificate to sign the server certificate during the SSL session with the SSL client.
At block 607, the client configuration file is received by the client security manager and the CA certificate may be extracted from the client configuration file.
At block 608, the client security manager may verify if the CA certificate is a valid CA certificate based on the digital signature included in the CA certificate.
At block 609, if the CA certificate is verified as a legitimate one, the client security manager may install the CA certificate to the certificate store of the client machine. As different platforms may have different mechanisms for managing certificate, client security manager may call a corresponding API to perform the installation. For Microsoft Windows (trademarks of Microsoft Corp.) platforms, the client security manager may use the Windows Crypto API to add the CA certificates to the Windows certificate store. The CA certificate may be stored as trusted root certificates of the Windows certificate store. For Android (TM) platforms, the client security manager may use the Android build-in KeyChain API to add the certificates as trusted CA certificates. For OS X (trademarks of Apple Inc.) platforms, the client security manager may use the OSX “Certificate, Key, and Trust Services” API to add the certificates to the Keychain store. For iOS (trademarks of Apple Inc.) platform, the client security manager may use the iOS “Certificate, Key, and Trust Services” API to add the certificates to the Keychain store. After the CA certificate is installed on the system certificate store, web browsers that use the system certificates store will not present a warning message when a server certificate that is signed by the CA certificate downloaded from the firewall is received during an SSL session. Web browsers that use system certificate store include Google Chrome, Internet Explorer and etc. As the Firefox web browser manages the certificates by itself, FireFox tool “certutil.exe” can be used by the client security manager to add a CA certificate to the Firefox certificate database so that the CA certificate issued by the firewall become a trusted one for the Firefox web browser. When the API associated with installing the CA certificate is called by the client security manager and the CA certificate is installed into the system certificate store, a warning message may be presented by the client system informing the user that a new CA certificate is about to be installed. The user may allow the CA certificate that is downloaded by the client security manager to be installed by clicking a confirmation button and the CA certificate will be installed into the CA certificate store by the client system.
After the CA certificate of the firewall is installed on the client machine, the client security manager may provide additional management functionality in relation to the CA certificate. For example, the CA certificate together with other configurations of the client security manager may be exported to a local storage for backup purpose so that the settings and CA certificate may be restored when the client security manager is re-installed.
Further, when the client security manager is uninstalled from the client machine, the CA certificate may optionally be deleted from the certificate store of the client machine. When the client security manager is un-registered from the firewall, the client security manager may send a un-register request to the firewall. The CA certificate may optionally be deleted from the certificate store of the client machine. By deleting CA certificate downloaded from the firewall when the client security manager is un-registered with the firewall or uninstalled from the client machine, the certificate storage of the client machine will not keep too many unnecessary certificates.
Further, each CA certificate issued by a certificate authority has a validity period based on the certificate management protocol. The firewall may generate a new CA certificate or renew the CA certificate before it is expired. If a new CA certificate is generated or the CA certificate is renewed, the endpoint control module of the firewall may push the new CA certificate to the client security manager when the client security manager is connected to the firewall. The client security manager may delete the old CA certificate from the client machine and install the new CA certificate to the trusted certificate store of the client machine.
Embodiments of the present disclosure include various steps, which will be described in more detail below. A variety of these steps may be performed by hardware components or may be tangibly embodied on a computer-readable storage medium in the form of machine-executable instructions, which may be used to cause a general-purpose or special-purpose processor programmed with instructions to perform these steps. Alternatively, the steps may be performed by a combination of hardware, software, and/or firmware.
As shown, computer system 700 includes a bus 730, a processor 705, communication port 710, a main memory 715, a removable storage media 740, a read only memory 720 and a mass storage 725. A person skilled in the art will appreciate that computer system 700 may include more than one processor and communication ports.
Examples of processor 705 include, but are not limited to, an Intel® Itanium® or Itanium 2 processor(s), or AMD® Opteron® or Athlon MP® processor(s), Motorola® lines of processors, FortiSOC™ system on a chip processors or other future processors. Processor 705 may include various modules associated with embodiments of the present invention.
Communication port 710 can be any of an RS-232 port for use with a modem based dialup connection, a 10/100 Ethernet port, a Gigabit or 10 Gigabit port using copper or fiber, a serial port, a parallel port, or other existing or future ports. Communication port 710 may be chosen depending on a network, such a Local Area Network (LAN), Wide Area Network (WAN), or any network to which computer system 700 connects.
Memory 715 can be Random Access Memory (RAM), or any other dynamic storage device commonly known in the art. Read only memory 720 can be any static storage device(s) such as, but not limited to, a Programmable Read Only Memory (PROM) chips for storing static information such as start-up or BIOS instructions for processor 705.
Mass storage 725 may be any current or future mass storage solution, which can be used to store information and/or instructions. Exemplary mass storage solutions include, but are not limited to, Parallel Advanced Technology Attachment (PATA) or Serial Advanced Technology Attachment (SATA) hard disk drives or solid-state drives (internal or external, e.g., having Universal Serial Bus (USB) and/or Firewire interfaces), such as those available from Seagate (e.g., the Seagate Barracuda 7200 family) or Hitachi (e.g., the Hitachi Deskstar 7K1000), one or more optical discs, Redundant Array of Independent Disks (RAID) storage, such as an array of disks (e.g., SATA arrays), available from various vendors including Dot Hill Systems Corp., LaCie, Nexsan Technologies, Inc. and Enhance Technology, Inc.
Bus 730 communicatively couples processor(s) 705 with the other memory, storage and communication blocks. Bus 730 can be, such as a Peripheral Component Interconnect (PCI)/PCI Extended (PCI-X) bus, Small Computer System Interface (SCSI), USB or the like, for connecting expansion cards, drives and other subsystems as well as other buses, such a front side bus (FSB), which connects processor 705 to system memory.
Optionally, operator and administrative interfaces, such as a display, keyboard, and a cursor control device, may also be coupled to bus 730 to support direct operator interaction with computer system 700. Other operator and administrative interfaces can be provided through network connections connected through communication port 710.
Removable storage media 740 can be any kind of external hard-drives, floppy drives, IOMEGA® Zip Drives, Compact Disc-Read Only Memory (CD-ROM), Compact Disc-Re-Writable (CD-RW), Digital Video Disk-Read Only Memory (DVD-ROM).
Components described above are meant only to exemplify various possibilities. In no way should the aforementioned exemplary computer system limit the scope of the present disclosure.
While embodiments of the invention have been illustrated and described, it will be clear that the invention is not limited to these embodiments only. Numerous modifications, changes, variations, substitutions, and equivalents will be apparent to those skilled in the art, without departing from the spirit and scope of the invention, as described in the claims.
This application is a continuation of U.S. patent application Ser. No. 15/257,505, filed on Sep. 6, 2016, which is a continuation of U.S. patent application Ser. No. 14/571,555, filed on Dec. 16, 2014, now U.S. Pat. No. 9,455,980, both of which are hereby incorporated by reference in their entirety for all purposes.
Number | Date | Country | |
---|---|---|---|
Parent | 15257505 | Sep 2016 | US |
Child | 15888382 | US | |
Parent | 14571555 | Dec 2014 | US |
Child | 15257505 | US |