Certificate chain-based authentication method and device, electronic equipment and storage medium

Through the authentication method based on the certificate chain, the problem of single application scenarios and insufficient security is solved, and the authentication process of high security and traceable origin in the banking system is realized, which is suitable for offline scenarios.

CN119094133APending Publication Date: 2024-12-06CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411177007.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The existing certificate chain application scenario is single, the security is insufficient and the source cannot be traced, especially in the identity information authentication of the banking system.

Method used

Through the authentication method based on the certificate chain, you receive the login instructions uploaded by the client and verify the user's certificate. If the verification is passed, you will log in to the account. If the verification is not passed, you will renew the certificate or generate a new certificate to ensure security and achieve traceability.

Benefits of technology

It realizes a traceable and high-security authentication process in the banking business authorization and authentication system, which is suitable for offline scenarios and enhances the security and traceability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094133A_ABST
    Figure CN119094133A_ABST
Patent Text Reader

Abstract

The invention relates to the field of certificate chains and finance, and provides an authentication method based on a certificate chain, and the method comprises the steps: verifying a user certificate in a login instruction, and if the verification is passed, logging in a corresponding user account according to the login instruction, and displaying a corresponding business operation interface; if the verification is not passed, renewing the user certificate to obtain a renewed user certificate, and using the renewed user certificate to log in the system again; and if the user certificate is not identified in the login instruction, generating a new user certificate based on the user information in the login instruction, and logging in by using the new user certificate. The method can be applied to a banking business authorization authentication system, authentication is carried out through a certificate chain, and a high-security authentication process which can be traced back and applied to an offline scene can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of certificate chain and finance, and in particular to an authentication method, device, electronic device and storage medium based on certificate chain. Background Art

[0002] Currently, the certificate chain is mainly used for online web page verification on Internet browsers. The certificate chain is used to verify the credibility and validity of the website, and the usage scenario is too simple. At the same time, the current banking system identity information authentication task is mainly verified by username plus password. This authentication method has great security risks. Once the password is leaked, it may cause significant losses to users and banks. Although adding verification codes increases security, it adds additional operations and cannot be traced.

[0003] Therefore, in view of the current problems that the certificate chain has a single application scenario, cannot guarantee security, and cannot be traced, it is necessary to propose an authentication method based on the certificate chain. Summary of the invention

[0004] In view of the above reasons, it is necessary to provide an authentication method, device, electronic device and storage medium based on a certificate chain to achieve a traceable and highly secure authentication process.

[0005] To achieve the above object, the present invention provides an authentication method based on a certificate chain, the method comprising the following steps:

[0006] S1. Receive a login instruction uploaded by a client, and verify the user certificate in the login instruction to obtain a verification result;

[0007] S2. If the verification result is that the verification is passed, log in to the corresponding user account according to the login instruction and display the business operation interface corresponding to the user account to the client;

[0008] S3. If the verification result is that the verification fails, the user certificate is uploaded to the certificate issuance system for renewal to obtain a renewed user certificate, the renewed user certificate is returned to the client so that the client can update the user certificate, and a login instruction is generated using the updated user certificate to log in again;

[0009] S4. If the verification result is that the user certificate is not recognized, the user information in the login instruction is uploaded to the certificate issuance system to generate a new user certificate, and the new user certificate is returned to the client so that the client can use the new user certificate to generate a login instruction to log in again.

[0010] Optionally, the verifying the user certificate in the login instruction includes:

[0011] The validity of the certificate issuing authority, the validity period of the certificate and the certificate role are verified based on the user certificate.

[0012] Optionally, after logging in to a corresponding user account according to the login instruction and displaying a service operation interface corresponding to the user account to the client, the method further includes:

[0013] Sending a permission application instruction to the certificate issuing system through the business operation interface, wherein the permission application instruction includes the user-related information, the permission to be applied for and the certificate issuing authority;

[0014] The user certificate returned by the certificate issuing system is received, and the user certificate is issued to the client, wherein the user certificate is a user certificate having the authority to be applied for and is generated after the certificate issuing system reviews the authority application instruction and passes it.

[0015] Optionally, the certificate chain in which the user certificate resides consists of a root certificate, an intermediate certificate and a user certificate;

[0016] The user certificate includes: a user unique identifier, a user public key, a unique identifier issued by an intermediate authentication center, and a signature issued by the intermediate authentication center;

[0017] The intermediate certificate includes: a unique identifier issued by the intermediate authentication center, the user public key, a unique identifier issued by the highest-level authentication center, and a signature issued by the highest-level authentication center;

[0018] The root certificate includes: a unique identifier of the highest-level authentication center, a public key of the highest-level authentication center, and a private key of the highest-level authentication center.

[0019] Optionally, the unique identifier of the intermediate certificate issued by the intermediate authentication center is used to prove the unique identifier in the user certificate issued by the intermediate authentication center;

[0020] The unique identifier of the highest-level authentication center in the root certificate is used to prove the unique identifier in the intermediate certificate issued by the highest-level authentication center;

[0021] The public key of the highest-level authentication center in the root certificate is used to verify the signature issued by the highest-level authentication center in the intermediate certificate;

[0022] The user public key of the intermediate certificate is used to verify the signature in the user certificate issued by the intermediate certification center.

[0023] Optionally, the user unique identifier in the user certificate includes personal information of the certificate, and the personal information includes the user's role and authority information to implement role and authority management of the user.

[0024] Optionally, the number of the intermediate certification centers is greater than or equal to 1, and all intermediate certificates are issued by their superior institutions, which include intermediate certification centers or top-level certification centers.

[0025] The present invention also provides an authentication device based on a certificate chain, the authentication device based on a certificate chain comprising:

[0026] A verification module, used to receive a login instruction uploaded by a client, verify the user certificate in the login instruction to obtain a verification result; if the verification result is verification passed, log in to the corresponding user account according to the login instruction and display the business operation interface corresponding to the user account to the client;

[0027] A renewal module, for uploading the user certificate to a certificate issuing system for renewal if the verification result is a verification failure, obtaining a renewed user certificate, returning the renewed user certificate to the client for the client to update the user certificate, and using the updated user certificate to generate a login instruction for re-login;

[0028] The issuing module is used to upload the user information in the login instruction to the certificate issuing system to generate a new user certificate if the verification result is that the user certificate is not recognized, and return the new user certificate to the client so that the client can use the new user certificate to generate a login instruction to re-login.

[0029] The present invention also provides an electronic device, which includes a memory and a processor, wherein the memory includes a certificate chain-based authentication program, and when the certificate chain-based authentication program is executed by the processor, any step in the certificate chain-based authentication method described above is implemented.

[0030] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, which includes a certificate chain-based authentication program. When the certificate chain-based authentication program is executed by a processor, any step in the certificate chain-based authentication method described above is implemented.

[0031] The present invention relates to the fields of certificate chain and finance, and provides an authentication method based on certificate chain, which includes: verifying the user certificate in the login instruction, if the verification is successful, logging in to the corresponding user account according to the login instruction and displaying the corresponding business operation interface; if the verification is unsuccessful, renewing the user certificate to obtain a renewed user certificate, and re-logging into the system using the renewed user certificate; if the user certificate is not recognized in the login instruction, generating a new user certificate based on the user information in the login instruction, and logging in using the new user certificate. The present invention can be applied to the banking business authorization authentication system, and can realize a high-security authentication process that can be traced back and applied to offline scenarios by performing authentication through the certificate chain. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the internal structure of an electronic device of an authentication method based on a certificate chain provided by an embodiment of the present invention;

[0033] Figure 2 A schematic diagram of a module of a certificate chain-based authentication method provided by an embodiment of the present invention;

[0034] Figure 3 A schematic diagram of a flow chart of a certificate chain-based authentication method provided by an embodiment of the present invention;

[0035] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0036] The principle and spirit of the present invention will be described below with reference to several specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0037] See also Figure 1 FIG. 1 is a schematic diagram of an optional hardware architecture of an electronic device proposed in the present invention. In this embodiment, the electronic device 10 may include, but is not limited to, a memory 11, a processor 12, and a network interface 13 that can communicate with each other via a communication bus 14. It should be noted that Figure 1 Only the electronic device 10 is shown having components 11 - 14 , but it is understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0038] Among them, the memory 11 includes at least one type of computer-readable storage medium, and the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 10, such as a hard disk or memory of the electronic device 10. In other embodiments, the memory 11 can also be an outsourced storage device of the electronic device 10, such as a plug-in hard disk equipped on the electronic device 10, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 11 can also include both the internal storage unit of the electronic device 10 and its outsourced storage device. In this embodiment, the memory 11 is generally used to store the operating system and various application software installed on the electronic device 10, such as an authentication program based on a certificate chain, etc. In addition, the memory 11 can also be used to temporarily store various types of data that have been output or are to be output.

[0039] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 12 is generally used to control the overall operation of the electronic device 10. In this embodiment, the processor 12 is used to run the program code stored in the memory 11 or process data, such as running a certificate chain-based authentication program.

[0040] The network interface 13 may include a wireless network interface or a wired network interface. The network interface 13 is generally used to establish a communication connection between the electronic device 10 and other electronic devices.

[0041] The communication bus 14 is used to realize the communication connection between the components 11-13.

[0042] Optionally, the electronic device 10 may further include a user interface ( Figure 1 (not shown in the figure), the user interface may include a display, an input unit such as a keyboard, wherein the user interface may also include a standard wired interface, a wireless interface, etc.

[0043] Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED touch device, etc. Further, the display may also be referred to as a display screen or a display unit, which is used to display information processed in the electronic device 10 and to display a visual user interface.

[0044] Optionally, in some embodiments, the electronic device 10 may further include an audio unit (audio unit Figure 1 (not shown in the figure), the audio unit can convert the received or stored audio data into an audio signal when the electronic device 10 is in a call signal receiving mode, a talk mode, a recording mode, a voice recognition mode, a broadcast receiving mode, and the like; further, the electronic device 10 may also include an audio output unit, which outputs the audio signal converted by the audio unit, and the audio output unit may also provide audio output related to a specific function performed by the electronic device 10 (such as a call signal receiving sound, a message receiving sound, and the like), and the audio output unit may include a speaker, a buzzer, and the like.

[0045] Optionally, in some embodiments, the electronic device 10 may further include an alarm unit (not shown in the figure), which may provide an output to notify the electronic device 10 of the occurrence of an event. Typical events may include call reception, message reception, key signal input, touch input, and the like. In addition to audio or video output, the alarm unit may provide output in different ways to notify the occurrence of an event. For example, the alarm unit may provide an output in the form of a vibration, and when a call, message, or some other event that may cause the electronic device 10 to enter a communication mode is received, the alarm unit may provide a tactile output (i.e., vibration) to notify the user.

[0046] In the above embodiment, the processor 12 implements the following steps when executing the certificate chain-based authentication program stored in the memory 11:

[0047] S1. Receive a login instruction uploaded by a client, and verify the user certificate in the login instruction to obtain a verification result;

[0048] S2. If the verification result is that the verification is passed, log in to the corresponding user account according to the login instruction and display the business operation interface corresponding to the user account to the client;

[0049] S3. If the verification result is that the verification fails, the user certificate is uploaded to the certificate issuance system for renewal to obtain a renewed user certificate, the renewed user certificate is returned to the client so that the client can update the user certificate, and a login instruction is generated using the updated user certificate to log in again;

[0050] S4. If the verification result is that the user certificate is not recognized, the user information in the login instruction is uploaded to the certificate issuance system to generate a new user certificate, and the new user certificate is returned to the client for the client to use the new user certificate to generate a login instruction to log in again.

[0051] For a detailed description of the above steps, please refer to the following Figure 2 Module diagram of the authentication method based on the certificate chain and Figure 3 A flow chart of the authentication method based on the certificate chain is presented.

[0052] Reference Figure 2 , which is a schematic diagram of modules in an embodiment of the authentication method based on certificate chain of the present invention. In this embodiment, multiple modules are stored in the memory 11 and executed by the processor 12 to complete the present invention. The module referred to in the present invention refers to a series of computer program instruction segments that can complete specific functions.

[0053] The certificate chain-based authentication procedure may be divided into: a verification module 201 , a renewal module 202 , and an issuance module 203 .

[0054] The verification module 201 is used to receive the login instruction uploaded by the client, verify the user certificate in the login instruction to obtain a verification result; if the verification result is passed, log in to the corresponding user account according to the login instruction and display the business operation interface corresponding to the user account to the client.

[0055] Specifically, verifying the user certificate in the login instruction includes:

[0056] Verify the validity of the certificate issuing authority, the validity period of the certificate and the certificate role according to the user certificate. After logging into the corresponding user account according to the login instruction and displaying the business operation interface corresponding to the user account to the client, it includes:

[0057] Sending a permission application instruction to the certificate issuing system through the business operation interface, wherein the permission application instruction includes the user-related information, the permission to be applied for and the certificate issuing authority;

[0058] Receive the user certificate returned by the certificate issuing system, and issue the user certificate to the client. The user certificate is a user certificate with the required permissions generated by the certificate issuing system after the permission application instruction is approved. The certificate chain where the user certificate is located consists of a root certificate, an intermediate certificate, and a user certificate;

[0059] The user certificate includes: a user unique identifier, a user public key, a unique identifier issued by an intermediate authentication center, and a signature issued by the intermediate authentication center;

[0060] The intermediate certificate includes: a unique identifier issued by the intermediate authentication center, the user public key, a unique identifier issued by the highest-level authentication center, and a signature issued by the highest-level authentication center;

[0061] The root certificate includes: the unique identifier of the highest level authentication center, the public key of the highest level authentication center, and the private key of the highest level authentication center. The unique identifier of the intermediate certificate issued by the intermediate authentication center is used to prove the unique identifier issued by the intermediate authentication center in the user certificate;

[0062] The unique identifier of the highest-level authentication center in the root certificate is used to prove the unique identifier in the intermediate certificate issued by the highest-level authentication center;

[0063] The public key of the highest-level authentication center in the root certificate is used to verify the signature issued by the highest-level authentication center in the intermediate certificate;

[0064] The user public key of the intermediate certificate is used to verify the signature issued by the intermediate certification center in the user certificate. The user unique identifier in the user certificate contains the personal information of the certificate, and the personal information contains the user's role and authority information to implement the user's role and authority management. The number of intermediate certification centers is greater than or equal to 1, and all intermediate certificates are issued by their upper-level institutions, which include intermediate certification centers or top-level certification centers.

[0065] In one embodiment, when a user needs to log in to a banking system for business processing, the user should select a corresponding user certificate for uploading. The client generates a login instruction based on the user certificate selected by the user, and the banking system verifies the validity of the certificate issuing authority, the validity period of the certificate, the certificate role and other information according to the login instruction to ensure the security of the business system. The unique identifier in the above certificate also includes basic information of the user or institution, such as region, role, etc. When the user fills in the information to generate the certificate, it can be selectively added according to the needs. After the user passes the verification of the banking system, the permission operation consistent with the user certificate used for login can be implemented on the business operation interface on the client. For example, if the unique identifier in the user certificate contains the user's role as an ordinary teller, the user can establish and process the electronic process of receiving the counter, filling out vouchers, accounting, correct collection and payment, and cash on the business operation interface. If the unique identifier contains the user's role as a customer manager, the user can perform bank customer information maintenance and provide financial management and financial consulting services for bank customers on the business operation interface. When a user's role changes, for example, from an ordinary teller to an account manager, the user needs to log in to the banking system with the ordinary teller's user certificate and submit a permission application to the certificate issuance system. The user certificate contains the user's role and permission information, which can be used to implement the user's role permission management. The certificate itself is tamper-proof and has guaranteed security.

[0066] The renewal module 202 is used to upload the user certificate to the certificate issuance system for renewal if the verification result is verification failure, obtain a renewed user certificate, return the renewed user certificate to the client for the client to update the user certificate, and use the updated user certificate to generate a login instruction to re-login.

[0067] In one embodiment, the status of the user certificate includes expired and unrecognized. When the certificate issuance system verifies that the status of the certificate is expired, a new user certificate is generated through the user certificate and the issuing authority credential to renew the old certificate; when the certificate issuance system verifies that the status of the certificate is unrecognized, a new user certificate is generated through the user information and the issuing authority credential for issuance, which can effectively improve security.

[0068] Issuing module 203 is used to upload the user information in the login instruction to the certificate issuing system to generate a new user certificate if the verification result is that the user certificate is not recognized, and return the new user certificate to the client for the client to use the new user certificate to generate a login instruction to re-login.

[0069] In one embodiment, the user's system permissions need to be applied for when logging in or registering the system for the first time, or when using higher-level functions or data of the system.

[0070] In another embodiment, a securities business system is provided for the use of the entire company. A securities company has multiple departments. Each department can act as an intermediate agency (with an intermediate certificate) to issue user certificates to each sub-department or employee under its department. If there are many sub-departments, the sub-department can also act as an intermediate agency to issue user certificates to its subordinate employees. After the employee obtains the certificate, he can use the certificate to log in to the business system. For offline systems, when it is impossible to use the password login verification of the online network, SMS verification code, etc., this certificate authentication method can be used for login verification. By obtaining the user's information through the certificate, the user's certificate issuing agency can also be traced. If it is found that it has abused the certificate, its certificate issuance authority can be revoked. That is, there is a pre-set certificate issuing agency public key whitelist, and the information of the agency with issuance authority is added to the whitelist. The agency in the whitelist has the authority to issue certificates. When it is found that the agency has abused the certificate, its agency can be removed from the whitelist.

[0071] In another embodiment, an intermediate certificate issuing authority is set according to the actual banking business scenario and the company's organizational structure, and certificates are issued to subordinate users without being controlled by the hierarchy. For example, the head office of xx Bank, as the highest level, has a root certificate, and the subordinate user can be a local bank (such as Guangzhou xx Bank). At the same time, the local bank can serve as an intermediate institution to issue intermediate certificates to its subordinate departments (such as the credit department of Guangzhou xx Bank), and the department can also serve as an intermediate institution to issue user certificates to its subordinate employees (such as Mr. Li of the credit department of Guangzhou xx Bank). At the same time, the certificate is bound to a computer and other devices, and signed together with the device information, so there will be no security risk even if the certificate is lost; when a problem occurs, the relevant information can be queried based on the user certificate and traced back to its issuing authority; it is independently applied to all Internet and local area network online or offline systems, and does not require a network. Each institution and organization can set up a root certificate authority to issue certificates according to its own organizational structure, and use the information contained in the certificate to authenticate roles and permissions, which can improve system security. At the same time, the tamper-proof feature of the certificate, combined with the device's unique ID for signature binding, can support the loss prevention function, further improving system security. When a problem occurs in a certain part of the system, the source can be traced and held accountable based on the certificate information, so that each step of the operation is transparent and traceable, so that the authentication method based on the certificate chain can achieve a high-security authentication process that is traceable and can be applied to offline scenarios.

[0072] Reference Figure 3 FIG. 1 is a flow chart of an embodiment of an authentication method based on a certificate chain of the present invention. In this embodiment, the processor 12 of the electronic device 10 implements the following steps of the authentication method based on a certificate chain when executing the authentication program based on a certificate chain in the memory 11:

[0073] Step S301, S1, receiving a login instruction uploaded by a client, and verifying the user certificate in the login instruction to obtain a verification result.

[0074] Step S2: If the verification result is passed, log in to the corresponding user account according to the login instruction and display the business operation interface corresponding to the user account to the client.

[0075] Specifically, verifying the user certificate in the login instruction includes:

[0076] Verify the validity of the certificate issuing authority, the validity period of the certificate and the certificate role according to the user certificate. After logging into the corresponding user account according to the login instruction and displaying the business operation interface corresponding to the user account to the client, it includes:

[0077] Sending a permission application instruction to the certificate issuing system through the business operation interface, wherein the permission application instruction includes the user-related information, the permission to be applied for and the certificate issuing authority;

[0078] Receive the user certificate returned by the certificate issuing system, and issue the user certificate to the client. The user certificate is a user certificate with the required permissions generated by the certificate issuing system after the permission application instruction is approved. The certificate chain where the user certificate is located consists of a root certificate, an intermediate certificate, and a user certificate;

[0079] The user certificate includes: a user unique identifier, a user public key, a unique identifier issued by an intermediate authentication center, and a signature issued by the intermediate authentication center;

[0080] The intermediate certificate includes: a unique identifier issued by the intermediate authentication center, the user public key, a unique identifier issued by the highest-level authentication center, and a signature issued by the highest-level authentication center;

[0081] The root certificate includes: the unique identifier of the highest level authentication center, the public key of the highest level authentication center, and the private key of the highest level authentication center. The unique identifier of the intermediate certificate issued by the intermediate authentication center is used to prove the unique identifier issued by the intermediate authentication center in the user certificate;

[0082] The unique identifier of the highest-level authentication center in the root certificate is used to prove the unique identifier in the intermediate certificate issued by the highest-level authentication center;

[0083] The public key of the highest-level authentication center in the root certificate is used to verify the signature issued by the highest-level authentication center in the intermediate certificate;

[0084] The user public key of the intermediate certificate is used to verify the signature issued by the intermediate certification center in the user certificate. The user unique identifier in the user certificate contains the personal information of the certificate, and the personal information contains the user's role and authority information to implement the user's role and authority management. The number of intermediate certification centers is greater than or equal to 1, and all intermediate certificates are issued by their upper-level institutions, which include intermediate certification centers or top-level certification centers.

[0085] In one embodiment, when a user needs to log in to a banking system for business processing, the user should select a corresponding user certificate for uploading. The client generates a login instruction based on the user certificate selected by the user, and the banking system verifies the validity of the certificate issuing authority, the validity period of the certificate, the certificate role and other information according to the login instruction to ensure the security of the business system. The unique identifier in the above certificate also includes basic information of the user or institution, such as region, role, etc. When the user fills in the information to generate the certificate, it can be selectively added according to the needs. After the user passes the verification of the banking system, the permission operation consistent with the user certificate used for login can be implemented on the business operation interface on the client. For example, if the unique identifier in the user certificate contains the user's role as an ordinary teller, the user can establish and process the electronic process of receiving the counter, filling out vouchers, accounting, correct collection and payment, and cash on the business operation interface. If the unique identifier contains the user's role as a customer manager, the user can perform bank customer information maintenance and provide financial management and financial consulting services for bank customers on the business operation interface. When a user's role changes, for example, from an ordinary teller to an account manager, the user needs to log in to the banking system with the ordinary teller's user certificate and submit a permission application to the certificate issuance system. The user certificate contains the user's role and permission information, which can be used to implement the user's role permission management. The certificate itself is tamper-proof and has guaranteed security.

[0086] Step S303, S3, if the verification result is verification failure, the user certificate is uploaded to the certificate issuance system for renewal to obtain a renewed user certificate, the renewed user certificate is returned to the client for the client to update the user certificate, and the updated user certificate is used to generate a login instruction to re-login.

[0087] In one embodiment, the status of the user certificate includes expired and unrecognized. When the certificate issuance system verifies that the status of the certificate is expired, a new user certificate is generated through the user certificate and the issuing authority credential to renew the old certificate; when the certificate issuance system verifies that the status of the certificate is unrecognized, a new user certificate is generated through the user information and the issuing authority credential for issuance, which can effectively improve security.

[0088] Step S304, S4, if the verification result is that the user certificate is not recognized, the user information in the login instruction is uploaded to the certificate issuance system to generate a new user certificate, and the new user certificate is returned to the client for the client to use the new user certificate to generate a login instruction to re-login.

[0089] In one embodiment, the user's system permissions need to be applied for when logging in or registering the system for the first time, or when using higher-level functions or data of the system.

[0090] In another embodiment, a securities business system is provided for the use of the entire company. A securities company has multiple departments. Each department can act as an intermediate agency (with an intermediate certificate) to issue user certificates to each sub-department or employee under its department. If there are many sub-departments, the sub-department can also act as an intermediate agency to issue user certificates to its subordinate employees. After the employee obtains the certificate, he can use the certificate to log in to the business system. For offline systems, when it is impossible to use the password login verification of the online network, SMS verification code, etc., this certificate authentication method can be used for login verification. By obtaining the user's information through the certificate, the user's certificate issuing agency can also be traced. If it is found that it has abused the certificate, its certificate issuance authority can be revoked. That is, there is a pre-set certificate issuing agency public key whitelist, and the information of the agency with issuance authority is added to the whitelist. The agency in the whitelist has the authority to issue certificates. When it is found that the agency has abused the certificate, its agency can be removed from the whitelist.

[0091] In another embodiment, an intermediate certificate issuing authority is set according to the actual banking business scenario and the company's organizational structure, and certificates are issued to subordinate users without being controlled by the hierarchy. For example, the head office of xx Bank, as the highest level, has a root certificate, and the subordinate user can be a local bank (such as Guangzhou xx Bank). At the same time, the local bank can serve as an intermediate institution to issue intermediate certificates to its subordinate departments (such as the credit department of Guangzhou xx Bank), and the department can also serve as an intermediate institution to issue user certificates to its subordinate employees (such as Mr. Li of the credit department of Guangzhou xx Bank). At the same time, the certificate is bound to a computer and other devices, and signed together with the device information, so there will be no security risk even if the certificate is lost; when a problem occurs, the relevant information can be queried based on the user certificate and traced back to its issuing authority; it is independently applied to all Internet and local area network online or offline systems, and does not require a network. Each institution or organization can set up a root certificate authority to issue certificates according to its own organizational structure, and use the information contained in the certificate to authenticate roles and permissions, which can improve system security. At the same time, the certificate's tamper-proof feature, combined with the device's unique ID for signature binding, can support the loss prevention function, further improving system security. When a problem occurs in a certain link of the system, the source can be traced and held accountable based on the certificate information, so that each step of the operation is transparent and traceable.

[0092] In addition, an embodiment of the present invention further proposes a computer-readable storage medium, which may be any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, etc. The computer-readable storage medium includes a certificate chain-based authentication program, and when the certificate chain-based authentication program is executed by a processor, the following operations are implemented:

[0093] Step S301, S1, receiving a login instruction uploaded by a client, and verifying the user certificate in the login instruction to obtain a verification result;

[0094] Step S302, S2, if the verification result is verification passed, log in to the corresponding user account according to the login instruction and display the business operation interface corresponding to the user account to the client;

[0095] Step S303, S3, if the verification result is verification failure, the user certificate is uploaded to the certificate issuance system for renewal to obtain a renewed user certificate, the renewed user certificate is returned to the client for the client to update the user certificate, and the login instruction is generated using the updated user certificate to re-login;

[0096] Step S304, S4, if the verification result is that the user certificate is not recognized, the user information in the login instruction is uploaded to the certificate issuance system to generate a new user certificate, and the new user certificate is returned to the client for the client to use the new user certificate to generate a login instruction to re-login.

[0097] The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the specific implementation of the above-mentioned certificate chain-based authentication method and the electronic device 10, and will not be described in detail herein.

[0098] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, device, article or method including the element.

[0099] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. Through the description of the above implementation modes, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation mode. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0100] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A certificate chain-based authentication method, characterized in that: The method includes: S1. Receive a login instruction uploaded by a client, and verify the user certificate in the login instruction to obtain a verification result; S2. If the verification result is that the verification is passed, log in to the corresponding user account according to the login instruction and display the business operation interface corresponding to the user account to the client; S3. If the verification result is that the verification fails, the user certificate is uploaded to the certificate issuance system for renewal to obtain a renewed user certificate, the renewed user certificate is returned to the client so that the client can update the user certificate, and a login instruction is generated using the updated user certificate to log in again; S4. If the verification result is that the user certificate is not recognized, the user information in the login instruction is uploaded to the certificate issuance system to generate a new user certificate, and the new user certificate is returned to the client for the client to use the new user certificate to generate a login instruction to log in again.

2. The certificate chain-based authentication method according to claim 1, characterized in that: The verifying the user certificate in the login instruction includes: The validity of the certificate issuing authority, the validity period of the certificate and the certificate role are verified based on the user certificate.

3. The certificate chain-based authentication method according to claim 1, characterized in that: After logging in to the corresponding user account according to the login instruction and displaying the business operation interface corresponding to the user account to the client, it includes: Sending a permission application instruction to the certificate issuing system through the business operation interface, wherein the permission application instruction includes the user-related information, the permission to be applied for and the certificate issuing authority; The user certificate returned by the certificate issuing system is received, and the user certificate is issued to the client, wherein the user certificate is a user certificate having the authority to be applied for and is generated after the certificate issuing system reviews the authority application instruction and passes it.

4. The authentication method based on certificate chain according to claim 1, characterized in that: The certificate chain of the user certificate consists of a root certificate, an intermediate certificate and a user certificate; The user certificate includes: a user unique identifier, a user public key, a unique identifier issued by an intermediate authentication center, and a signature issued by the intermediate authentication center; The intermediate certificate includes: a unique identifier issued by the intermediate authentication center, the user public key, a unique identifier issued by the highest-level authentication center, and a signature issued by the highest-level authentication center; The root certificate includes: a unique identifier of the highest-level authentication center, a public key of the highest-level authentication center, and a private key of the highest-level authentication center.

5. The certificate chain-based authentication method according to claim 4, characterized in that: The unique identifier of the intermediate certificate issued by the intermediate authentication center is used to prove the unique identifier in the user certificate issued by the intermediate authentication center; The unique identifier of the highest-level authentication center in the root certificate is used to prove the unique identifier in the intermediate certificate issued by the highest-level authentication center; The public key of the highest-level authentication center in the root certificate is used to verify the signature issued by the highest-level authentication center in the intermediate certificate; The user public key of the intermediate certificate is used to verify the signature in the user certificate issued by the intermediate certification center.

6. The authentication method based on certificate chain according to claim 4, characterized in that: The user unique identifier in the user certificate includes the personal information of the certificate, and the personal information includes the user's role and authority information to implement the user's role and authority management.

7. The authentication method based on certificate chain according to claim 4, characterized in that: The number of the intermediate certification centers is greater than or equal to 1, and all intermediate certificates are issued by their superior institutions, which include intermediate certification centers or top-level certification centers.

8. An authentication device based on a certificate chain, characterized in that: The device comprises: A verification module, used to receive a login instruction uploaded by a client, verify the user certificate in the login instruction to obtain a verification result; if the verification result is verification passed, log in to the corresponding user account according to the login instruction and display the business operation interface corresponding to the user account to the client; A renewal module, for uploading the user certificate to a certificate issuing system for renewal if the verification result is a verification failure, obtaining a renewed user certificate, returning the renewed user certificate to the client for the client to update the user certificate, and using the updated user certificate to generate a login instruction for re-login; The issuing module is used to upload the user information in the login instruction to the certificate issuing system to generate a new user certificate if the verification result is that the user certificate is not recognized, and return the new user certificate to the client so that the client can use the new user certificate to generate a login instruction to re-login.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, wherein a certificate chain-based authentication program is stored in the memory, and when the certificate chain-based authentication program is executed by the processor, the certificate chain-based authentication method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a certificate chain-based authentication program, and when the certificate chain-based authentication program is executed by a processor, the certificate chain-based authentication method according to any one of claims 1 to 7 is implemented.