Encrypted channel construction method and system, and server
Through the risk identification and automatic switching of digital authentication certificates in the security gateway, the problem of insufficient compatibility of the national encryption algorithm in mainstream operating systems and browsers is solved, and the construction of an efficient encrypted channel between the client and the server is realized. This avoids the risk of encrypted channels caused by certificate verification failure and ensures the normal operation of applications.
Patent Information
- Application Number
- CN202410857842.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-15
AI Technical Summary
The national secret algorithm lacks compatibility in mainstream operating systems and browsers, resulting in its inability to be widely used in open Internet product applications. Moreover, when certificate verification fails, it will lead to client-side and server-side encrypted channel risks, affecting the normal services of applications.
By pre-installing a variety of digital authentication certificates in the security gateway, risk identification processing is performed, the wrong certificate is automatically switched, the target certificate is matched, and the target certificate is used to establish an encrypted channel between the client and the server to achieve automatic certificate switching without any sense. Ensure the stability of encrypted channels.
It significantly improves the efficiency of encrypted channel construction between the client and the server, avoids the risk of encrypted channels caused by certificate anomalies, and ensures that users can use services normally without any awareness.
Smart Images

Figure CN118784221A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of encryption technology, and in particular to a method, system and server for constructing an encryption channel. Background Art
[0002] With the development of cryptographic technology and computing technology, the 1024-bit RSA cryptographic algorithm widely used in the domestic cryptographic field is facing increasingly severe security challenges. At present, relevant technologies have proposed that in order to ensure the security of cryptographic applications in important economic systems, national cryptographic algorithms usually use elliptic curve cryptography as public key cryptography. As a highly secure and efficient public key cryptography, the elliptic curve cryptography algorithm has the same important cryptographic functions as the RSA algorithm, such as encryption and decryption, signing and key negotiation.
[0003] However, the national encryption algorithm has not yet achieved wide compatibility in mainstream operating systems, browsers and other clients. Therefore, it cannot be widely used in open Internet product applications. In addition, since certificates are usually verified on the client side, if the client cannot verify a certificate at a certain point in time, it will be considered invalid, which will cause risks in certificate use, thereby putting the encrypted channel between the client and the server at risk, thereby affecting the normal service of the application. Summary of the invention
[0004] In view of this, an object of the present invention is to provide a method, system and server for constructing an encrypted channel, which can significantly improve the efficiency of constructing an encrypted channel between a client and a server.
[0005] In the first aspect, an embodiment of the present invention provides a method for constructing an encrypted channel, and the method is applied to a security gateway in a system for constructing an encrypted channel. The system for constructing the encrypted channel also includes a client and a server. The client can establish a communication connection with the server through the security gateway, and a plurality of digital authentication certificates are pre-installed in the security gateway. The method includes: obtaining communication request information sent by the client, wherein the communication request information includes: the cryptographic algorithm and protocol version supported by the client; performing data matching processing on the cryptographic algorithm and the protocol version with a target certificate set in the security gateway to obtain a target certificate, wherein the target certificate set is a target certificate set obtained after risk identification processing on a plurality of digital authentication certificates; feeding back the target certificate to the client so that the client can verify the certificate in the client according to the target certificate; and establishing a first encrypted channel with the client and a second encrypted channel with the server in response to an encrypted communication request sent by the client.
[0006] In one embodiment, the step of performing risk identification processing on multiple digital authentication certificates includes: within a preset detection period, performing risk identification processing on multiple digital authentication certificates stored in a security gateway to determine erroneous certificate information; performing automatic certificate switching processing on erroneous certificates corresponding to the erroneous certificate information to obtain a target certificate set.
[0007] In one embodiment, risk identification processing is performed on multiple digital authentication certificates stored in a security gateway, and the step of determining erroneous certificate information includes: obtaining basic certificate information corresponding to each certificate in the multiple digital authentication certificates; performing certificate formatting check, certificate validity period check, certificate chain integrity check, certificate domain name matching check, certificate dependency service check, trusted certificate check and maliciously issued certificate check on the certificate basic information, and determining support information corresponding to each check; when the support information of any check is greater than the preset alarm threshold of the check, the certificate corresponding to the basic certificate information is determined to be an erroneous certificate, and the inspection result corresponding to the erroneous certificate is determined as erroneous certificate information.
[0008] In one embodiment, the step of feeding back the target certificate to the client so that the client can verify the certificate in the client according to the target certificate includes: feeding back the target certificate to the client, and if the certificate corresponding to the cryptographic algorithm supported by the client fails to match the target certificate, re-performing data matching processing according to the remaining cryptographic algorithms supported by the client to obtain an updated target certificate, and performing certificate verification processing; if the certificate corresponding to the cryptographic algorithm supported by the client successfully matches the target certificate, it is determined that the verification is passed.
[0009] In one embodiment, in response to an encrypted communication request sent by a client, the steps of establishing a first encrypted channel with the client and a second encrypted channel with the server include: upon receiving the first encrypted communication request sent by the client, setting a symmetric key between the client and the client based on a target certificate to build a first encrypted channel with the client; when construction of the first encrypted channel is completed, sending a second encrypted communication request to the server to build a second encrypted channel with the server.
[0010] In one embodiment, according to the target certificate, a symmetric key is set between the client and the client to build a first encryption channel with the client, including: generating a symmetric key based on the target certificate through a preset encryption model, wherein the symmetric key includes: an encryption key and a decryption key; sending the encryption key to the client to convert the plaintext data sent by the client into ciphertext; and parsing the ciphertext using the decryption key retained in the security gateway to build the first encryption channel.
[0011] In the second aspect, an embodiment of the present invention also provides a system for constructing an encrypted channel, which includes: a multi-channel identification module, a security gateway, a client and a server, wherein the security gateway is respectively connected to the multi-channel identification module, the client and the server in communication; wherein the multi-channel identification module is used to perform risk identification processing on a target certificate set stored in the security gateway, determine error certificate information, and feed back the error certificate information to the security gateway; the security gateway is used to update a plurality of stored digital authentication certificates according to the error certificate information, and after receiving the communication request information sent by the client, feed back the target certificate matching the communication request information to the client, so as to establish an encrypted channel between the client and the server.
[0012] In one embodiment, the security gateway includes: an adaptive service unit; wherein the adaptive service unit is used to uninstall the erroneous certificate according to the erroneous certificate information, and re-download a new certificate to achieve automatic certificate switching.
[0013] In a third aspect, an embodiment of the present invention further provides a server, comprising a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement any one of the methods provided in the first aspect.
[0014] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement any one of the methods provided in the first aspect.
[0015] The embodiments of the present invention bring the following beneficial effects:
[0016] An embodiment of the present invention provides a method, system and server for constructing an encrypted channel. After obtaining the cryptographic algorithm and protocol version supported by the client sent by the client, the method performs data matching processing on the cryptographic algorithm and protocol version with the target certificate set in the security gateway to obtain the target certificate, and feeds back the target certificate to the client so that the client can verify the certificate in the client according to the target certificate. Finally, in response to the encrypted communication request sent by the client, a first encrypted channel between the client and the server is established. The embodiment of the present invention can significantly improve the efficiency of constructing the encrypted channel between the client and the server.
[0017] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0018] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0020] Figure 1 A schematic diagram of the structure of a system for constructing an encrypted channel provided by an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of a flow chart of a method for constructing an encrypted channel provided by an embodiment of the present invention;
[0022] Figure 3 A schematic diagram of a specific process of a method for constructing an encrypted channel provided by an embodiment of the present invention;
[0023] Figure 4 A schematic diagram of a process flow of a risk identification and processing method provided by an embodiment of the present invention;
[0024] Figure 5 A schematic diagram of the structure of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described in combination with the embodiments below. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] At present, with the development of cryptographic technology and computing technology, the 1024-bit RSA cryptographic algorithm widely used in the domestic cryptographic field is facing increasingly severe security challenges. Relevant technologies have proposed that in order to ensure the security of cryptographic applications in important economic systems, national cryptographic algorithms usually use elliptic curve cryptography as public key cryptography. As a highly secure and efficient public key cryptography, the elliptic curve cryptography algorithm has the same important cryptographic functions as the RSA algorithm, such as encryption and decryption, signing and key negotiation.
[0027] However, the national cryptographic algorithm has not yet achieved wide compatibility in mainstream operating systems, browsers and other clients. Therefore, it cannot be widely used in open Internet product applications. For example, in the field of certificate applications, since international mainstream browsers do not trust the national cryptographic algorithm, if the server deploys the national cryptographic SM2 certificate, it may directly lead to the website system being inaccessible to the user end; in addition, since certificates are usually verified on the client side, if the client cannot verify a certificate at a certain point in time, it will be deemed invalid, which will cause risks in the use of the certificate, thereby putting the encrypted channel between the client and the server at risk, and affecting the normal service of the application.
[0028] That is to say, network services are likely to become unusable due to the following risks: almost all the most important systems deploy SSL certificates issued by US CAs, more than 90% of various important systems do not deploy SSL certificates, many important systems deploy self-signed certificates that are not trusted by browsers, being attacked or malicious CAs performing malicious operations, issuing SSL certificates containing false information, and deploying a single CA provider. Providers are prone to single point failure problems. Since certificates are currently mainly relied on clients for certificate verification, the server cannot perceive it. Especially for large-scale equipment in industrial interconnection, problems with the encryption channel will cause a great burden on manpower and services. Based on this, the present invention implements a method for constructing an encryption channel. The method is oriented to large-scale equipment in industrial interconnection, and can enable all relevant parties in the network to respond to website certificate anomalies without feeling, so that all relevant parties will not be affected by the website certificates deployed by the business system. Finally, users can use the service normally without feeling, and build automated, dynamically collaborative, and secure encryption channel risk services for enterprises, thereby significantly improving the efficiency of constructing encryption channels between clients and servers.
[0029] To facilitate understanding of this embodiment, first, a method for constructing an encrypted channel disclosed in an embodiment of the present invention is introduced in detail. The method is applied to a security gateway in a system for constructing an encrypted channel. The system for constructing an encrypted channel also includes a client and a server. The client can establish a communication connection with the server through the security gateway. A variety of digital authentication certificates are pre-installed in the security gateway. To facilitate understanding of the system for constructing an encrypted channel, an embodiment of the present invention provides a structural schematic diagram of a system for constructing an encrypted channel, such as Figure 1 As shown, the encryption channel construction system includes: a multi-channel identification module, a security gateway, a client and a server, and the security gateway is respectively connected to the multi-channel identification module, the client and the server for communication.
[0030] Specifically, the multi-channel identification module is used to perform risk identification processing on the target certificate set stored in the security gateway, determine the error certificate information, and feed back the error certificate information to the security gateway; the security gateway is used to update the stored multiple digital authentication certificates according to the error certificate information, and after receiving the communication request information sent by the client, feed back the target certificate matching the communication request information to the client to establish an encrypted channel between the client and the server, wherein the client, i.e., the browser client is for users to access the service website, including: international browsers and national secret browsers, wherein the international browser supports RSA and ECC algorithms, and the national secret browser supports SM2 algorithm; the security gateway, i.e., the integrated multi-source certificate security gateway, is compatible with multiple clients, can achieve a smooth transition of multiple algorithm certificate channels, and load SM2 SSL certificates, ECC SSL certificates and RSA at the same time. SSL certificates, and all comply with international standards or national encryption standards; the multi-channel identification module is used to evaluate the website certificate status through runtime certificate service status, website certificate information, website certificate dependency information, etc., including identifying certificates including revoked, expired, certificate chain and other abnormal connections, thereby identifying the certificate encryption channel status and providing interface services for the integrated multi-source certificate security gateway; the service website is used to deploy HTTPS websites to provide services to users.
[0031] In addition, the security gateway also includes: an adaptive service unit, wherein the adaptive service unit is used to uninstall the erroneous certificate according to the erroneous certificate information, and re-download the new certificate to realize automatic certificate switching, that is, the adaptive service unit deploys the certificate adaptive service, and realizes automatic certificate switching according to the encryption channel risk identification method. The automatic certificate switching process includes: pre-generating SM2 SSL certificates, ECC SSL certificates and RSA SSL, deploying the certificate adaptive service unit, providing certificate loading and unloading services, and realizing the automatic certificate switching function.
[0032] based on Figure 1 The structure diagram of the encryption channel construction system shown in FIG. 1 is a schematic diagram of the structure of the encryption channel construction system shown in FIG. 1 , and the encryption channel construction method is described in detail in the embodiment of the present invention. Figure 2 The schematic diagram of a method for constructing an encrypted channel shown in FIG. 1 mainly includes the following steps S202 to S208:
[0033] Step S202, obtaining the communication request information sent by the client, wherein the communication request information includes: the cryptographic algorithm and protocol version supported by the client. In one embodiment, when the client initiates a communication request, the algorithm parameters, that is, the communication request information includes RSA / ECC / SM2 and the protocol version.
[0034] Step S204, the cryptographic algorithm and protocol version are matched with the target certificate set in the security gateway to obtain the target certificate, wherein the target certificate set is a target certificate set obtained after risk identification processing is performed on multiple digital authentication certificates. In one embodiment, after receiving the communication request information, the security gateway analyzes the communication request information and the supported algorithms. If the SM2 algorithm is supported, the SM2 SSL certificate is selected and sent to the client. If the SM2 algorithm is not supported, the RSA SSL certificate or the ECC SSL certificate is still selected and sent to the client. In another embodiment, before performing the data matching process, the risk identification process can be performed on the stored multiple digital authentication certificates, that is, after receiving the information, a self-check is performed first, and then the certificate matching is performed. A self-check cycle can also be set to complete the self-check within the self-check cycle.
[0035] Step S206, the target certificate is fed back to the client, so that the client can verify the certificate in the client according to the target certificate. In one embodiment, when both the client and the security gateway recognize the target certificate, it is confirmed that the certificate verification has passed, thereby authenticating that the target certificate is the certificate that the client actually needs.
[0036] Step S208, in response to the encrypted communication request sent by the client, establish a first encrypted channel between the client and a second encrypted channel between the server. In one embodiment, after the certificate is verified, the encrypted symmetric key is negotiated, and the browser client and the fused multi-source certificate security gateway establish an HTTPS communication channel, i.e., the first encrypted channel, and enable the security gateway and the server to establish an HTTPS communication channel, i.e., the second encrypted channel, in the same manner as described above.
[0037] The above-mentioned encryption channel construction method provided by the embodiment of the present invention can significantly improve the efficiency of constructing the encryption channel between the client and the server.
[0038] See also Figure 3 The specific flow diagram of a method for constructing an encrypted channel is shown in FIG. 1 . The embodiment of the present invention also provides an implementation method for constructing an encrypted channel, and the specific implementation methods are as follows (A) to (C):
[0039] (A) Within a preset detection cycle, risk identification processing is performed on multiple digital authentication certificates stored in the security gateway, error certificate information is determined, and certificate automatic switching processing is performed on the error certificates corresponding to the error certificate information to obtain a target certificate set. In other words, the website certificate status is evaluated based on the runtime certificate service status, website certificate information, website certificate dependency information, etc. through a multi-channel identification module, including: revocation, expiration, certificate chain abnormality, etc., to identify the certificate encryption channel status. The input is the domain name, certificate dependency information, DNS CAA enhanced record, log transparent record, trusted root certificate record, and the output includes the domain name, certificate serial number and risk category, and finally the target certificate set is obtained, where the certificate risk includes revocation, expiration, certificate chain abnormality and other states.
[0040] In one embodiment, see Figure 4 The flowchart of a risk identification and processing method shown in the figure is as follows: after obtaining the certificate basic information corresponding to each certificate in a plurality of digital authentication certificates, the certificate format check, certificate validity check, certificate chain integrity check, certificate domain name matching check, certificate dependent service check, trusted certificate check and maliciously issued certificate check are respectively performed on the certificate basic information to determine the support information corresponding to each check; when the support information of any check is greater than the preset alarm threshold of the check, the certificate corresponding to the certificate basic information is determined to be an erroneous certificate, and the check result corresponding to the erroneous certificate is determined as erroneous certificate information; specifically, the steps of risk identification and processing may include the following (1) to (10):
[0041] (1) Enter the domain name as the algorithm input and obtain the complete information of the domain name website certificate through the domain name.
[0042] (2) Perform certificate formatting check and follow the X.509 certificate standard format requirements.
[0043] (3) Check the validity period of the certificate to see if it is within a reasonable range. Expired certificates may be used maliciously.
[0044] (4) Perform a certificate chain integrity check. Website certificates are usually issued by intermediate certificates. There may be one or more intermediate certificates. If an intermediate certificate is missing, it will cause a certificate chain error and make the website certificate invalid.
[0045] (5) Perform a domain name match check on the certificate. The website domain name included in the certificate and the domain name applied for by the website owner must be consistent.
[0046] (6) Perform a certificate dependency service check to check whether the website certificate has been revoked by downloading the CRL list or querying the OCSP server.
[0047] (7) Perform a trusted certificate check and use an unknown root certificate that the browser does not trust. An untrusted certificate is a certificate granted by an untrusted CA organization.
[0048] (8) Check for maliciously issued certificates. If the website certificate is not issued with the consent of the website domain owner, the log transparency log and DNS CAA record will be used to assist in verification.
[0049] (9) Unified error return.
[0050] (10) Returns the identification results, including the domain name, certificate serial number, and risk category.
[0051] In addition, the present invention also provides a further verification method for the above steps, analyzes and identifies potential risks in multiple dimensions or attributes in certificate data, and improves the accuracy and efficiency of risk detection by considering the interaction of multiple factors, wherein the factors considered include: data set generation, domain name certificate format, certificate dependency information, DNS CAA enhanced records, log transparent records, and trusted root certificate records.
[0052] Dataset generation: Dataset records include domain name certificate format, certificate dependency information, DNS CAA enhanced records, log transparency records, trusted root certificate records and corresponding information.
[0053] Domain name certificate format: The information tuple is (time, domain, algorithm, ssl, status, message), which indicates the time, domain name, algorithm, certificate data, status and other information; the collection program collects data regularly, parses the X509 field of the certificate for inspection, and compares it with the applied domain name to see if it is consistent; inconsistency indicates that there is an abnormality in the certificate.
[0054] Certificate dependency information: The information tuple is (time, domain, algorithm, CRL, OCSP, status, message), which indicates time, domain name, algorithm, CRL, OCSP, certificate status and information. The collection program collects certificate data regularly, parses the X509 field of the certificate, obtains CRL and OCSP information, verifies the validity of CRL and OCSP response data, and determines the certificate status.
[0055] DNS CAA enhanced record: The information tuple is (time, domain, algorithm, ssl, CAA, status, message), which indicates time, domain name, algorithm, certificate data, CAA record, status and information. The collection program collects certificate data regularly, parses and processes CAA records, specifies the allowed trusted CA through the configured CAA record value, verifies the CA organization that issued the certificate, and abnormalities indicate certificate abnormality.
[0056] Log transparent record: The information tuple is (time, domain, algorithm, ssl, sct, status, message), which indicates time, domain name, algorithm, certificate data, log transparent information, status and other information. The collection program collects certificate data regularly, parses and processes log transparent information, verifies CT signature information, and requires that certificates with a validity period of less than 180 days must contain 2 SCT data, and certificates with a validity period of more than 180 days must contain 3 SCT data to ensure that the issuance of certificates is sufficiently transparent. Otherwise, it indicates that the certificate is abnormal.
[0057] Trusted root certificate record: The information tuple is (time, domain, algorithm, ssl, CA, status, message), which indicates the time, domain name, algorithm, certificate data, CA information, status and other information. The collection program collects certificate data regularly, parses the issuing CA information, verifies the CA information to determine whether it is an unknown CA or issued by an untrusted CA, and determines whether it complies with the certificate security specifications.
[0058] First, we need to scan the above data set to find all the items ( Figure 4 The support of each detection item in the test is calculated, and the items that meet the minimum support are selected, among which, the domain name certificate format item, the tuple information is (time, domain, algorithm, ssl, status, message), the grouping information of the format of the status status corresponding to the domain and algorithm is counted, and the probability of each domain and algorithm having an abnormal status is calculated, thereby calculating the certificate dependency information item, DNSCAA enhanced record item, log transparent record item and trusted root certificate record item, and calculating the probability of each domain and algorithm having an abnormal status.
[0059] Afterwards, support thresholds are set for individual items: support thresholds are set for domain name certificate format item (100%), certificate dependency information item (50%), DNS CAA enhanced record item (30%), log transparency record item (10%) and trusted root certificate record item (80%).
[0060] Finally, the accuracy of the newly generated candidate item set is calculated in multiple dimensions: the accuracy of each single item is set, the support threshold of each data is integrated, the domain name certificate format item, certificate dependency information item, DNS CAA enhanced record item, log transparent record item and trusted root certificate record item are judged, and the multi-dimensional comprehensive accuracy value is calculated. Through the above algorithm, the alarm accuracy threshold is set (that is, the preset alarm threshold), and the accuracy of the certificate data produced is calculated within a period of time, and the alarm accuracy threshold is judged. The data with high correlation is produced as the identification result, and the fusion multi-source certificate security gateway is informed through the interface.
[0061] The encryption channel risk identification method is implemented through the multi-channel identification module and the fusion multi-source certificate security gateway is notified to perform automatic switching. The browser client establishes a safe and available encryption channel with the website through the fusion multi-source certificate security gateway for encrypted communication.
[0062] (B) Match the target certificate according to the cryptographic algorithm and protocol version supported by the client, and feed back the target certificate to the client: If the certificate corresponding to the cryptographic algorithm supported by the client fails to match the target certificate, then re-perform data matching processing according to the remaining cryptographic algorithms supported by the client to obtain an updated target certificate, and perform certificate verification processing. If the certificate corresponding to the cryptographic algorithm supported by the client successfully matches the target certificate, then it is determined that the verification is passed. In actual applications, after receiving the communication request information, the security gateway analyzes the communication request information and analyzes the algorithms it supports. If the RSA algorithm or the ECC algorithm is supported, the RSA SSL certificate or the ECC SSL certificate is still selected and sent to the client. If the RSA SSL certificate is sent, and the RSA SSL certificate among the multiple digital authentication certificates pre-installed happens to be invalid, the target certificate will not be matched successfully. At this time, it is necessary to re-send the certificate for another algorithm supported by the client, that is, the ECC algorithm. In other words, the target certificate at this time is the ECC SSL certificate.
[0063] (C) Upon receiving a first encrypted communication request sent by the client, a symmetric key is set between the client and the server according to the target certificate to build a first encrypted channel with the client. When the first encrypted channel is built, a second encrypted communication request is sent to the server to build a second encrypted channel with the server. In one embodiment, a symmetric key is generated based on the target certificate through a preset encryption model, and the encryption key is sent to the client to convert the plaintext data sent by the client into ciphertext. Finally, the ciphertext is parsed using the decryption key retained in the security gateway to build the first encrypted channel. The symmetric key includes an encryption key and a decryption key. Symmetric key encryption is also called dedicated key encryption or shared key encryption, that is, both parties sending and receiving data must use the same key to encrypt and decrypt the plaintext. Symmetric key encryption algorithms mainly include DES, 3DES, IDEA, RC5, RC6, etc.
[0064] In summary, the present invention can evaluate the website certificate status through the certificate service status, website certificate information, website certificate dependency information, etc. at runtime, identify the risks of encryption channels for multiple certificate channels, and select the currently available secure encryption channel by integrating the multi-source certificate security gateway, so as to realize the senseless automatic switching of certificates and shield the impact of certificate problems on the business.
[0065] The device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.
[0066] An embodiment of the present invention provides a server. Specifically, the server includes a processor and a storage device. The storage device stores a computer program, and when the computer program is executed by the processor, it executes the method described in any one of the above-mentioned embodiments.
[0067] Figure 5 A structural diagram of a server provided in an embodiment of the present invention, the server 100 includes: a processor 50, a memory 51, a bus 52 and a communication interface 53, wherein the processor 50, the communication interface 53 and the memory 51 are connected via the bus 52; the processor 50 is used to execute an executable module stored in the memory 51, such as a computer program.
[0068] The memory 51 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 53 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0069] The bus 52 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0070] Among them, the memory 51 is used to store programs, and the processor 50 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 50 or implemented by the processor 50.
[0071] The processor 50 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 50. The above processor 50 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present invention can be directly embodied as a hardware decoding processor to be executed, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 51, and the processor 50 reads the information in the memory 51 and completes the steps of the above method in combination with its hardware.
[0072] The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be referred to the previous method embodiments, which will not be repeated here.
[0073] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0074] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A method for constructing an encrypted channel, characterized in that: The method is applied to a security gateway in a system for constructing an encrypted channel. The system for constructing the encrypted channel also includes a client and a server. The client can establish a communication connection with the server through the security gateway. A variety of digital authentication certificates are pre-installed in the security gateway. The method includes: Acquire communication request information sent by the client, wherein the communication request information includes: the cryptographic algorithm and protocol version supported by the client; Performing data matching processing on the cryptographic algorithm and the protocol version with the target certificate set in the security gateway to obtain a target certificate, wherein the target certificate set is a target certificate set obtained after risk identification processing is performed on the multiple digital authentication certificates; Feeding back the target certificate to the client, so that the client can verify the certificate in the client according to the target certificate; In response to the encrypted communication request sent by the client, a first encrypted channel between the client and the server is established.
2. The method for constructing an encrypted channel according to claim 1, characterized in that: The step of performing risk identification processing on the multiple digital authentication certificates includes: During a preset detection period, risk identification processing is performed on a plurality of digital authentication certificates stored in the security gateway to determine erroneous certificate information; Automatic certificate switching processing is performed on the erroneous certificate corresponding to the erroneous certificate information to obtain a target certificate set.
3. The method for constructing an encrypted channel according to claim 2, characterized in that: The step of performing risk identification processing on the multiple digital authentication certificates stored in the security gateway to determine the erroneous certificate information includes: Obtaining basic certificate information corresponding to each of the multiple digital authentication certificates; Perform a certificate format check, a certificate validity check, a certificate chain integrity check, a certificate domain name match check, a certificate dependency service check, a trusted certificate check, and a maliciously issued certificate check on the basic information of the certificate, and determine the support information corresponding to each check; When the support information of any check is greater than the preset alarm threshold of the check, the certificate corresponding to the certificate basic information is determined to be an erroneous certificate, and the check result corresponding to the erroneous certificate is determined as the erroneous certificate information.
4. The method for constructing an encrypted channel according to claim 1, characterized in that: The step of feeding back the target certificate to the client so that the client can verify the certificate in the client according to the target certificate includes: Feedback the target certificate to the client. If the certificate corresponding to the cryptographic algorithm supported by the client fails to match the target certificate, re-perform data matching processing according to the remaining cryptographic algorithms supported by the client to obtain an updated target certificate, and perform certificate verification processing; If the certificate corresponding to the cryptographic algorithm supported by the client successfully matches the target certificate, it is determined that the verification is passed.
5. The method for constructing an encrypted channel according to claim 1, characterized in that: The step of establishing a first encrypted channel with the client and a second encrypted channel with the server in response to an encrypted communication request sent by the client includes: Upon receiving the first encrypted communication request sent by the client, setting a symmetric key between the client and the target certificate to build the first encrypted channel with the client; When the first encrypted channel is constructed, a second encrypted communication request is sent to the server to construct the second encrypted channel with the server.
6. The method for constructing an encrypted channel according to claim 5, characterized in that: The step of setting a symmetric key between the client and the target certificate to build the first encryption channel with the client includes: Generate the symmetric key based on the target certificate by using a preset encryption model, wherein the symmetric key includes: an encryption key and a decryption key; Sending the encryption key to the client to convert the plaintext data sent by the client into ciphertext; The ciphertext is parsed using the decryption key retained in the security gateway to construct the first encryption channel.
7. A system for constructing an encrypted channel, characterized in that: The encryption channel construction system includes: a multi-channel identification module, a security gateway, a client and a server, wherein the security gateway is respectively connected to the multi-channel identification module, the client and the server for communication; wherein, The multi-channel identification module is used to perform risk identification processing on the target certificate set stored in the security gateway, determine the error certificate information, and feed back the error certificate information to the security gateway; The security gateway is used to update the stored multiple digital authentication certificates according to the error certificate information, and after receiving the communication request information sent by the client, it feeds back the target certificate matching the communication request information to the client to establish an encrypted channel between the client and the server.
8. The encryption channel construction system according to claim 7, characterized in that: The security gateway comprises: an adaptive service unit; wherein, The adaptive service unit is used to uninstall the erroneous certificate according to the erroneous certificate information and re-download the new certificate to achieve automatic certificate switching.
9. A server, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 6.
