Resource sharing method, device and equipment and readable storage medium

By using UKEY equipment and security nodes for two-factor authentication in the virtualization system, the problem of difficulty in ensuring the security of resource sharing in the virtualization system is solved, and security authentication and effective protection of resources are achieved.

CN118555115AActive Publication Date: 2024-08-27JINAN INSPUR DATA TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410742010.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-08-27
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

The security of resource sharing in a virtualized system is difficult to guarantee, resulting in illegal user encroachment and normal users being unable to use resources normally.

Method used

Before the user logs in to use the target resource sharing service in the virtualized system, a multi-dimensional security policy is used for authentication processing. The authentication certificate and account password are obtained through the UKEY device, and the secure node is used for certificate and account authentication. Only after the two-factor authentication is passed Then allow login and provide resource sharing services.

Benefits of technology

It effectively improves the security of resource sharing in the virtualization system, prevents unauthorized access, and ensures that resources can only be used by users who have passed multi-dimensional authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555115A
    Figure CN118555115A
Patent Text Reader

Abstract

The invention discloses a resource sharing method, device and equipment and a readable storage medium in the technical field of virtualization, in a virtualization system, after an authentication request sent by a client is received, an authentication certificate is acquired from UKEY equipment, and an account and a password are acquired through the client; determining a security node from the virtualization system; sending an authentication certificate, an account and a password to the security node; performing certificate authentication on the authentication certificate and performing account authentication on the account and the password by using the security node; and after both the certificate and the account are authenticated, allowing the client to log in the virtualization system, and providing a target resource sharing service for the client through a computing node in the virtualization system. The method has the technical effects that the security node is selected to carry out authentication processing, a security policy of authentication certificate authentication and account password authentication is carried out, and login authentication processing is carried out, so that the resource sharing security in the virtualization system is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of virtualization technology, and in particular to a resource sharing method, device, equipment and readable storage medium. Background Art

[0002] Virtualization systems / platforms can realize resource sharing through virtualization technology. Specifically, virtualization of computing resources, storage resources and network resources can be realized through technologies such as virtual computing, virtual storage and virtual network, thereby providing resource sharing services for multiple users.

[0003] Generally, users of virtualization platforms use shared resources through network access and other means. In other words, the use of resources in a virtualization system is completely different from the way in which ordinary users directly use the services provided by the host that they can physically access. Specifically, when users directly use a physical host, since the physical host itself has a relatively fixed space, users who use the physical host are restricted by the natural security of the physical space (such as access control), so the resources on the physical host can often be used safely. However, for a virtualization system, its users are not restricted by the physical space. Therefore, the shared resources in the virtualization system are often occupied by illegal users, resulting in normal users being unable to use them normally.

[0004] In summary, how to effectively improve the security of resource sharing in a virtualization system is a technical problem that those skilled in the art urgently need to solve. Summary of the invention

[0005] The purpose of this application is to provide a resource sharing method, device, equipment and readable storage medium, which adopts multi-dimensional security policies to perform authentication processing before the user logs in to use the target resource sharing service in the virtualization system, thereby ensuring the security of resource sharing in the virtualization system.

[0006] In order to solve the above technical problems, this application provides the following technical solutions:

[0007] A resource sharing method is applied to a virtualization system, the method comprising:

[0008] After receiving the authentication request sent by the client, obtain the authentication certificate from the UKEY device, and obtain the account and password through the client; wherein the UKEY device is plugged into the device carrying the client;

[0009] Querying host information of a target resource sharing service, and using the host information to determine a security node from the virtualization system;

[0010] Sending the authentication certificate and the account and password to the security node;

[0011] Utilizing the security node, based on the certificate information retained during the certificate binding process, to perform certificate authentication on the authentication certificate;

[0012] Using the security node, based on the account information retained during the account and password setting process, account authentication is performed on the account and password;

[0013] After both the certificate and the account are authenticated, the client is allowed to log in to the virtualization system, and the target resource sharing service is provided to the client through the computing nodes in the virtualization system.

[0014] Preferably, the certificate binding process includes:

[0015] When the two-factor authentication policy is turned off, after the administrator account logs in, obtain the binding request from the visual interface;

[0016] Determine whether the client device corresponding to the administrator account has been inserted into the UKEY device;

[0017] If not, output an error message;

[0018] If yes, query the host information of the target resource sharing service, and determine the security node using the host information;

[0019] Sending the identity authentication information carried in the binding request to the security node; wherein the identity authentication information includes an organization name and contact information;

[0020] Using the security node to send the identity authentication information to the encryption library, and after the encryption library generates a private key file based on the identity authentication information, receiving the private key file fed back by the encryption library;

[0021] Using the security node, generating a certificate request file based on the private key file;

[0022] Using the security node to send the certificate request file to a certificate authentication center, and obtaining the authentication certificate from the certificate authentication center;

[0023] Receiving the authentication certificate fed back by the security node;

[0024] Copying the authentication certificate to the UKEY device, and retaining the certificate information corresponding to the authentication certificate in the security node;

[0025] Accordingly, after receiving the authentication request sent by the client, querying the host information of the target resource sharing service, and using the host information to determine the security node from the virtualization system, it also includes:

[0026] Enable two-factor authentication policy.

[0027] Preferably, the certificate binding process further includes:

[0028] Obtain the process identifier of the UKEY device;

[0029] Associating the process identifier with the account corresponding to the client, and saving the association relationship in a database;

[0030] Accordingly, after receiving the authentication request sent by the client, it also includes:

[0031] Obtaining the process identifier from the UKEY device;

[0032] Using the security node, verifying the process identifier based on the association relationship in the database;

[0033] If the verification fails, the authentication error message is output.

[0034] Preferably, using the host information to determine a security node from the virtualization system includes:

[0035] Using the host information, determining a master node from computing management nodes of the virtualization system;

[0036] The master node is determined as the safety node.

[0037] Preferably, it also includes:

[0038] Periodically synchronizing the certificate information and the account information to slave nodes in the computing management node;

[0039] Accordingly, using the host information to determine a security node from the virtualization system includes:

[0040] Using the host information, determining a master node from computing management nodes of the virtualization system;

[0041] Determine whether the master node can currently perform authentication processing;

[0042] If yes, determining the master node as the safety node;

[0043] If not, a slave node is determined from the computing management node of the virtualization system, and the slave node is determined as the security node.

[0044] Preferably, it also includes:

[0045] Monitor the plugging status of the UKEY device;

[0046] When it is detected that the UKEY device is unplugged, the client is forced to exit the virtualization system, and the computing nodes in the virtualization system are interrupted from providing the target resource sharing service to the client.

[0047] Preferably, it also includes:

[0048] When the certificate lifecycle management function is activated, using the security node to perform lifecycle management on the authentication certificate;

[0049] The life cycle management of the authentication certificate includes:

[0050] Updating the authentication certificate and copying the updated authentication certificate to the UKEY device;

[0051] If the authentication certificate has expired, the authentication certificate is revoked and certificate expiration reminder information is output.

[0052] A resource sharing device, comprising:

[0053] An authentication information acquisition unit, used to obtain an authentication certificate from a UKEY device after receiving an authentication request sent by a client, and obtain an account and password through the client; wherein the UKEY device is plugged into a device carrying the client;

[0054] A security node determination unit, configured to query host information of a target resource sharing service and determine a security node from the virtualization system using the host information;

[0055] An authentication information transmission unit, used to send the authentication certificate and the account and password to the security node;

[0056] A certificate authentication unit, configured to use the security node to perform certificate authentication on the authentication certificate based on the certificate information retained during the certificate binding process;

[0057] An account authentication unit, configured to use the security node to perform account authentication on the account and password based on the account information retained during the account and password setting process;

[0058] The resource sharing unit is used to allow the client to log in to the virtualization system after the certificate and the account are authenticated, and provide the target resource sharing service to the client through the computing node in the virtualization system.

[0059] An electronic device, comprising:

[0060] Memory for storing computer programs;

[0061] A processor is used to implement the steps of the above-mentioned resource sharing method when executing the computer program.

[0062] A readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the resource sharing method are implemented.

[0063] A computer program product includes a computer program / instruction, and when the computer program / instruction is executed by a processor, the steps of the resource sharing method are implemented.

[0064] When the method provided by the embodiment of the present application is applied in the virtualization system, after receiving the authentication request sent by the client, the authentication certificate is obtained from the UKEY device, and the account and password are obtained through the client; wherein the UKEY device is plugged into the device carrying the client; the host information of the target resource sharing service is queried, and the security node is determined from the virtualization system using the host information; the authentication certificate, account and password are sent to the security node; the authentication certificate is authenticated based on the certificate information retained during the certificate binding process using the security node; the account and password are authenticated based on the account information retained during the account and password setting process using the security node; after the certificate and account are authenticated, the client is allowed to log in to the virtualization system, and the target resource sharing service is provided to the client through the computing nodes in the virtualization system.

[0065] After receiving the authentication request sent by the client, the host information of the target resource sharing service is first queried, and then the security node is determined from the virtualization system based on the host information. In addition, the authentication certificate can be obtained from the UKEY device plugged into the device that hosts the client, and the account and password can be obtained through the client. In order to effectively ensure the security of resource sharing, after the user makes an authentication request, the security node is first identified, and then the security node performs security authentication, so as to ensure that the authentication execution node is safe and reliable, thereby ensuring that the authentication is safe and reliable. After determining the security node, the authentication certificate and the account and password can be sent to the security host. Specifically, the security host will perform certificate authentication based on the authentication certificate and account authentication based on the account and password. When performing two-factor authentication, the security node will be based on the certificate information retained during the certificate binding process and the account information retained during the account password setting process. Authentication is performed through two authentication factors, and only after both the certificate and the account are authenticated, the client is allowed to log in to the virtualization system, and the target resource sharing service is provided to the client through the computing node in the virtualization system. Compared with single-factor authentication, two-factor authentication is more secure and reliable. As a result, the virtualization system always provides resource sharing services to users who have passed multi-dimensional authentication, which can effectively ensure the security of resource sharing.

[0066] Technical effect: In this application, before the user logs in to use the target resource sharing service in the virtualization system, a security node is selected for authentication processing, a security policy for authentication certificate authentication and account password authentication is implemented, and a login authentication process is performed, thereby ensuring the security of resource sharing in the virtualization system.

[0067] Accordingly, the embodiments of the present application also provide resource sharing devices, equipment, readable storage media and computer program products corresponding to the above-mentioned resource sharing method, which have the above-mentioned technical effects and are not repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0069] Figure 1 This is a flowchart of a resource sharing method in an embodiment of the present application;

[0070] FIG2 is a schematic diagram of the structure of a resource sharing device in an embodiment of the present application;

[0071] FIG3 is a schematic diagram of the structure of an electronic device in an embodiment of the present application;

[0072] FIG. 4 is a schematic diagram of the specific structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0073] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0074] Please refer to Figure 1 , Figure 1 This is a flow chart of a resource sharing method in an embodiment of the present application. The method is applied to a virtualization system. The method includes the following steps:

[0075] S101. After receiving the authentication request sent by the client, obtain the authentication certificate from the UKEY device and obtain the account and password through the client.

[0076] Among them, the UKEY device is plugged into the device carrying the client. The UKEY device is designed based on a security chip and supports multiple operating systems and encryption algorithms. Specifically, UKey (USB Key) is a small storage device that is directly connected to the computer via USB (Universal Serial Bus Interface), has a password verification function, is reliable and high-speed, and is a supplement to the current network security system. It is a network security product. The product has a similar appearance to a USB flash drive, with a built-in single-chip microcomputer or smart card chip, and has a certain amount of storage space. It can store the user's private key and digital certificate. The built-in public key algorithm of the product can be used to authenticate the user's identity; its characteristics are high security, strong consistency in technical specifications, good operating system compatibility, and flexible portability. Since the private key is stored in the UKEY device and cannot be exported, the security of the verification process is guaranteed from a mechanism perspective.

[0077] Client (also called user end) refers to the program that corresponds to the server and provides local services to the client. Generally, the client is installed on an ordinary client and needs to work with the server. In addition, the program can also be presented through a web browser.

[0078] In this embodiment, the device that carries the client may specifically be a user's local computer, tablet, smart phone, or other device.

[0079] After receiving the authentication request sent by the client, the authentication certificate can be first obtained from the UKEY device plugged into the device carrying the client, and the account and password can be obtained through the client.

[0080] Among them, the authentication certificate in the UKEY device can be saved during the certificate binding process.

[0081] In one embodiment of the present application, the certificate binding process includes:

[0082] When the two-factor authentication policy is turned off, after the administrator account logs in, obtain the binding request from the visual interface;

[0083] Determine whether the client device corresponding to the administrator account has been plugged into the UKEY device;

[0084] If not, output an error message;

[0085] If yes, query the host information of the target resource sharing service and use the host information to determine the security node;

[0086] Sending the identity verification information carried in the binding request to the security node; wherein the identity verification information includes the organization name and contact information;

[0087] Use the security node to send identity authentication information to the encryption library, and after the encryption library generates a private key file based on the identity authentication information, receive the private key file fed back by the encryption library;

[0088] Using the security node, generate a certificate request file based on the private key file;

[0089] Using the security node to send the certificate request file to the certificate authentication center, and obtain the authentication certificate from the certificate authentication center;

[0090] Receive the authentication certificate fed back by the security node;

[0091] Copy the authentication certificate to the UKEY device and save the certificate information corresponding to the authentication certificate in the security node;

[0092] Accordingly, after receiving the authentication request sent by the client, querying the host information of the target resource sharing service, and using the host information to determine the security node from the virtualization system, it also includes:

[0093] Enable two-factor authentication policy.

[0094] For ease of description, the above steps are combined for explanation below.

[0095] Among them, two-factor authentication (2FA) is a security authentication process that requires users to provide two different types of authentication factors to prove their identity. Single-factor authentication methods, such as password authentication, are less secure due to their singleness and are easily cracked and attacked. As a core platform for managing multiple resources and multiple virtual machines, the virtualization platform needs to adopt a more advanced and efficient method for identity authentication to ensure system security and management reliability. Therefore, in this embodiment, an authentication method including a two-factor authentication strategy is adopted for login authentication.

[0096] When the two-factor authentication policy is turned off, after the administrator account logs in, the administrator user can perform binding operations on the user management page in the visual interface. When the administrator user operates on the user management interface, it can be regarded as obtaining a binding request from the visual interface.

[0097] Since binding requires copying the authentication certificate to the UKEY device, the device where the administrator account corresponds to the client must have the UKEY device inserted. If the UKEY device is not inserted, an error message is output. That is, binding is not allowed if the UKEY device is not inserted. When the UKEY device is inserted, query the host information of the target resource sharing service, and use the host information to determine the security node. Among them, the security node is a relatively more secure node among multiple host nodes in the virtualization system. The more secure here can be the highest security level, or it can be that the security node can save relevant information in a more secure way.

[0098] After the security node is identified, the authentication information carried in the binding request can be sent to the security node; the authentication information includes the organization name and contact information. Then, the security node can interact with the encryption library, so that the encryption library generates a private key file based on the authentication information. Using the encryption library, you can use the opensslgenrsa -out private.key 2048 command to generate a 2048-bit RSA private key. The encryption library can be OpenSSL, which is an open source encryption library that is widely used in various corners of the Internet to protect the security of data transmission.

[0099] After the security node obtains the private key file, it can generate a certificate request file (CSR) based on the private key file. Then, the certificate request file is sent to the certificate authentication center, and the authentication certificate is obtained from the certificate authentication center; the authentication certificate fed back by the security node is received;

[0100] The authentication certificate is copied to the UKEY device, and the certificate information corresponding to the authentication certificate is retained in the security node. Of course, the certificate information can also be kept in a database in the virtualization system, which can be accessed by the host node in the virtualization system.

[0101] In order to enable two-factor authentication, after receiving the authentication request sent by the client in step S101 for the first time, the host information of the target resource sharing service is queried, and before the host information is used to determine the security node from the virtualization system, the two-factor authentication policy needs to be enabled. In order to ensure security, it can be set that only the administrator user can enable the two-factor authentication policy. And the two-factor authentication policy is valid for all ordinary users.

[0102] In one embodiment of the present application, the certificate binding process further includes:

[0103] Get the process identifier of the UKEY device;

[0104] Associating the process identifier with the corresponding account of the client, and saving the association relationship in the database;

[0105] Accordingly, after receiving the authentication request sent by the client, it also includes:

[0106] Get the process identifier from the UKEY device;

[0107] Using security nodes, the process identifier is verified based on the association relationship in the database;

[0108] If the verification fails, the authentication error message is output.

[0109] For ease of description, the above steps are combined for explanation below.

[0110] During the binding process, you can also obtain the process identifier (PID, Process ID) of the UKEY device. It should be noted that when the UKEY device is inserted, the corresponding UKEY service needs to be started. When binding UKEY, UKEY returns and saves the current service process ID. Among them, the PID of UKEY is generated in real time. If the binding operation has been performed, there is a record in the current UKEY, and performing the binding operation again will regenerate the PID.

[0111] In addition, an authentication certificate will be generated during the binding process and securely copied to the UKEY container. At the same time, the database will record the association between the selected user and the UKEY PID to ensure the accuracy and consistency of the information.

[0112] Correspondingly, after receiving the authentication request sent by the client, the process identifier can be obtained from the UKEY device; then, the process identifier is verified based on the association relationship in the database using the security node; if the verification fails, the authentication error message is output. That is, the user does not match the PID in UKEY, and login is not allowed. That is, in this embodiment, the login verification factors include 3, one is the verification of the authentication certificate itself, the second is the verification of the account password, and the third is the verification of the association relationship between the user and the PID. Multiple verifications further ensure the authentication security before resource use.

[0113] For example: Under the premise of disabling the two-factor authentication policy, you can log in as an administrator, insert the UKEY device, and select the corresponding user to bind. Each user can only bind one UKEY.

[0114] When binding, query the host information of the current service according to the current service provided, find the current secure host, and perform the binding operation on the secure host. After the binding is completed, the synchronization of certificate-related information can be automatically triggered to update the changes of the secure node to other nodes. At the same time, the secure node is automatically synchronized regularly to ensure the data consistency of each node that can be authenticated.

[0115] S102: Query the host information of the target resource sharing service, and use the host information to determine the security node from the virtualization system.

[0116] The target resource sharing service may specifically be a shared resource service such as a storage resource sharing service, a computing resource sharing service, and a network resource sharing service.

[0117] In order to ensure the security of login authentication, a security node can be determined from several host nodes in the virtual system so that authentication can be performed on the security node to ensure the security of the authentication process.

[0118] Specifically, the host information of the target resource sharing service may be queried, and then the secure node may be determined from the virtualization system using the host information.

[0119] Generally, for a virtualization system, there are mainly two types of nodes, one is a computing node, and the other is a computing management node. In this embodiment, the security node can be a computing node or a computing management node. The host information can specifically include the type of node in the virtualization system, or the security related information of the node.

[0120] In one embodiment of the present application, determining a security node from a virtualization system using host information includes:

[0121] Using the host information, determine the master node from the computing management nodes of the virtualization system;

[0122] Identify the master node as a safe node.

[0123] For ease of description, the above two steps are combined for explanation below.

[0124] Considering that in order to make its resource sharing orderly and reliable, the virtualization system generally has a higher performance and security policy than ordinary computing nodes. Therefore, in this embodiment, the master node in the computing management node can be directly determined as a security node. Generally, there is only one master node in a virtualization system. Directly determining the master node as a security node can make all authentication-related information or data stored only on the master node, which is convenient for information management.

[0125] In one embodiment of the present application, it also includes:

[0126] Regularly synchronize certificate information and account information to slave nodes in the computing management node;

[0127] Accordingly, the host information is used to determine the security node from the virtualization system, including:

[0128] Using the host information, determine the master node from the computing management nodes of the virtualization system;

[0129] Determine whether the master node can currently perform authentication processing;

[0130] If yes, the master node is determined as a safe node;

[0131] If not, a slave node is determined from the computing management node of the virtualization system, and the slave node is determined as a security node.

[0132] For ease of description, the above steps are combined for explanation below.

[0133] In order to ensure the continuity of the services of the virtualization system, a slave node is often set up corresponding to the master node, so that when the master node fails, the slave node can be converted into a new master node to manage the virtualization system.

[0134] In this embodiment, in order to ensure the continuity of authentication, the certificate information and account information can be synchronized to the slave node in the computing management node regularly. Of course, relevant information can also be synchronized to the slave node after each authentication certificate is bound, updated, revoked, or cancelled.

[0135] Then, when determining the safety node, after determining the master node, it is possible to determine whether the master node can be authenticated. For example, whether the master node is running normally or fully loaded. If it is registered and running, it is determined that it can be authenticated normally. Otherwise, it is determined that there is a problem and the authentication process cannot be performed.

[0136] If the master node can perform authentication processing, the master node is directly determined as a safe node, otherwise, the slave node is determined as a safe node.

[0137] S103. Send the authentication certificate, account number and password to the security node.

[0138] After the security node is identified, the authentication certificate, account and password may be sent to the security node so that the security node can perform the authentication operation described in steps S104 and S105.

[0139] S104: Utilize the security node to perform certificate authentication on the authentication certificate based on the certificate information retained during the certificate binding process.

[0140] The specific process of performing certificate authentication on the authentication certificate based on the certificate information can refer to the relevant process of certificate authentication processing, which will not be described in detail here.

[0141] S105. Utilize the security node to perform account authentication on the account and password based on the account information retained during the account and password setting process.

[0142] The account and password are authenticated based on the account information. The specific process can refer to the relevant process of account and password log processing, which will not be described in detail here.

[0143] S106: After the certificate and the account are authenticated, the client is allowed to log in to the virtualization system, and a target resource sharing service is provided to the client through the computing nodes in the virtualization system.

[0144] In this embodiment, only when the certificate and account are both logged in, the client is allowed to log in to the virtualization system, and then the target resource sharing service is provided to the client through the computing node in the virtualization system. In other words, only after passing the two-factor authentication performed on the security host, the client is allowed to access the target resource sharing service and use the shared resources.

[0145] When the method provided by the embodiment of the present application is applied in the virtualization system, after receiving the authentication request sent by the client, the authentication certificate is obtained from the UKEY device, and the account and password are obtained through the client; wherein the UKEY device is plugged into the device carrying the client; the host information of the target resource sharing service is queried, and the security node is determined from the virtualization system using the host information; the authentication certificate, account and password are sent to the security node; the authentication certificate is authenticated based on the certificate information retained during the certificate binding process using the security node; the account and password are authenticated based on the account information retained during the account and password setting process using the security node; after the certificate and account are authenticated, the client is allowed to log in to the virtualization system, and the target resource sharing service is provided to the client through the computing nodes in the virtualization system.

[0146] After receiving the authentication request sent by the client, the host information of the target resource sharing service is first queried, and then the security node is determined from the virtualization system based on the host information. In addition, the authentication certificate can be obtained from the UKEY device plugged into the device that hosts the client, and the account and password can be obtained through the client. In order to effectively ensure the security of resource sharing, after the user makes an authentication request, the security node is first identified, and then the security node performs security authentication, so as to ensure that the authentication execution node is safe and reliable, thereby ensuring that the authentication is safe and reliable. After determining the security node, the authentication certificate and the account and password can be sent to the security host. Specifically, the security host will perform certificate authentication based on the authentication certificate and account authentication based on the account and password. When performing two-factor authentication, the security node will be based on the certificate information retained during the certificate binding process and the account information retained during the account password setting process. Authentication is performed through two authentication factors, and only after both the certificate and the account are authenticated, the client is allowed to log in to the virtualization system, and the target resource sharing service is provided to the client through the computing node in the virtualization system. Compared with single-factor authentication, two-factor authentication is more secure and reliable. As a result, the virtualization system always provides resource sharing services to users who have passed multi-dimensional authentication, which can effectively ensure the security of resource sharing.

[0147] Technical effect: In this application, before the user logs in to use the target resource sharing service in the virtualization system, a security node is selected for authentication processing, a security policy for authentication certificate authentication and account password authentication is implemented, and a login authentication process is performed, thereby ensuring the security of resource sharing in the virtualization system.

[0148] It should be noted that, based on the above embodiments, the embodiments of the present application also provide corresponding improved solutions. In the preferred / improved embodiments, the same steps or corresponding steps as those in the above embodiments can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be described one by one in the preferred / improved embodiments of this article.

[0149] In one embodiment of the present application, it also includes:

[0150] Monitor the plug-in status of UKEY devices;

[0151] When it is detected that the UKEY device is unplugged, the client is forced to exit the virtualization system, and the computing nodes in the virtualization system are interrupted from providing target resource sharing services to the client.

[0152] For ease of description, the above two steps are combined for explanation below.

[0153] After the UKEY device is plugged in, the plug-in status of the UKEY device can be monitored. Once the UKEY device is detected to be unplugged, if the user is logged in and using shared resources at this time, the client will be forced to exit the virtualization system, and the computing nodes in the virtualization system will be interrupted from providing target resource sharing services to the client; if the user is in the login verification stage at this time, it will be determined that the login is wrong and an error message will be output. In this way, it can be ensured that the UKEY device assists in security verification during the user's use of shared resources, thereby ensuring the security of resource sharing.

[0154] In one embodiment of the present application, the certificate life cycle may also be managed, and the specific implementation process includes:

[0155] When the certificate lifecycle management function is enabled, the security node is used to manage the lifecycle of the authentication certificate;

[0156] The life cycle management of the authentication certificate includes:

[0157] Update the authentication certificate and copy the updated authentication certificate to the UKEY device;

[0158] If the authentication certificate has expired, the authentication certificate will be revoked and the certificate expiration reminder information will be output.

[0159] For ease of description, the above steps are combined for explanation below.

[0160] The certificate lifecycle management function automatically monitors the validity period of the certificate and updates or replaces it. The specific operations include but are not limited to the following:

[0161] Certificate lifecycle management supports the entire lifecycle management of certificates, including application, renewal, and revocation.

[0162] Certificate deployment and management: involves the deployment, management and automation services of certificates, such as automated certificate lifecycle, simplified certificate process, automated certificate discovery, access control to certificate managers, reporting and certificate lifecycle automation functions.

[0163] Certificate renewal: Certificate lifecycle management also includes certificate renewal operations, which involves generating a new CSR (certificate signing request file), using the same private key as the original SSL certificate to generate a new CSR, and submitting the CSR to the CA (certificate authority).

[0164] Certificate revocation and revocation: involves certificate expiration reminders, key recovery, key updates, and certificate cancellation operations. For example, the quick renewal channel opens for quick renewal within 30 days; after the certificate is generated, the PKI system automatically checks and updates the certificate.

[0165] Automation and integration: To effectively manage the certificate lifecycle, we provide automation and integration solutions to automatically apply for and download certificates through APIs, and automatically monitor, recycle, and renew SSL certificates.

[0166] In one embodiment of the present application, the two-factor authentication policy may also be disabled, and the specific implementation process includes:

[0167] When the two-factor authentication policy is enabled, after the administrator account logs in through the two-factor authentication policy, a policy shutdown request is obtained from the visual interface;

[0168] Or, when logging into the master node host in the background of the virtualization system, obtain the policy shutdown command from the visualization interface;

[0169] Execute the policy shutdown command to disable the two-factor authentication policy.

[0170] In other words, the way to turn off the two-factor authentication policy is to log in with the administrator account, click on turn off the two-factor authentication from the visual interface, and then turn off the two-factor authentication policy.

[0171] In an emergency, you can also disable two-factor authentication by logging into the master node host and executing a command. This operation is to solve the problem that the administrator's UKEY is damaged or lost, and it is impossible to disable two-factor authentication and unbind UKEY in the normal way. The policy shutdown command can be: xx-config disabletwofactor.

[0172] To facilitate those skilled in the art to better implement the resource sharing method provided in the embodiment of the present application, the resource sharing method is described in detail below with reference to a specific application scenario as an example.

[0173] From the above embodiments, it can be seen that this application mainly considers multi-dimensional security factors for users before using shared resources for security authentication. The security authentication process mainly includes user binding and unbinding UKEY, generating encryption certificates through OpenSSL, and turning on and off two-factor authentication. The highly elastic and highly available architecture has non-repudiation, authenticity, and integrity protection. The specific functions are implemented as follows:

[0174] 1) User binding and unbinding of UKEY include:

[0175] The binding process includes:

[0176] Under the premise of disabling the two-factor authentication policy, log in with the administrator user, insert the UKEY device, and select the corresponding user to bind. Each user can only bind one UKEY;

[0177] When binding, query the host information of the current service according to the current service provided, find the current master node host, and perform the following binding operations on the master node host;

[0178] During the binding process, an encrypted certificate will be generated and securely copied to the UKEY container. At the same time, the database will record the association between the selected user and the UKEY PID to ensure the accuracy and consistency of the information;

[0179] After the binding is completed, the master-slave synchronization of certificate-related information will be automatically triggered, and the changes of the master node will be updated to the standby node.

[0180] At the same time, the master node automatically synchronizes regularly to ensure the consistency of master and backup data.

[0181] The unbinding process includes:

[0182] Under the premise of disabling the two-factor authentication policy, after logging in with the administrator user, select the corresponding user to perform unbinding. Deleting the user will automatically trigger the unbinding. During the unbinding, the CA certificate will be revoked and the UKEY record in the database will be cleared.

[0183] The unbinding operation is the same as the binding operation, so I will not go into details.

[0184] When unbinding, you do not need to insert UKEY and can directly unbind. That is, the certificate is actually still saved in UKEY, which will be automatically updated during the binding operation, deleting the old certificate and saving the new certificate.

[0185] OpenSSL generates an encryption certificate (ie, authentication certificate):

[0186] Generate an encryption certificate and copy it to the UKEY container. This application uses OpenSSL to generate the certificate. In actual applications, other encryption and decryption methods can also be used. The specific implementation process includes:

[0187] a. Initialize the CA directory;

[0188] It should be noted that the CA directory is initialized when the virtual system is installed, not when you click Generate Encryption Certificate. When the virtual system is installed, the relevant CA directory is created. This directory is actually where the certificate-related files are stored.

[0189] b. Generate a private key file;

[0190] c. Generate a certificate request (CSR);

[0191] d. Submit the CSR to CA for signature;

[0192] e. Obtain the issued certificate;

[0193] 3) Turn on or off two-factor authentication. Since the two-factor authentication policy cannot be implemented after binding, the administrator user needs to turn on the two-factor authentication function. Specifically, the turning on process includes: log in with the administrator user, the administrator has bound UKEY, and click to turn on two-factor authentication. When the two-factor authentication policy is no longer needed, the two-factor authentication policy can be turned off. Specifically, the turning off process includes: log in with the administrator user, click to turn off two-factor authentication; or, execute a command in the background to turn off two-factor authentication.

[0194] It should be noted that the two-factor authentication function is enabled for all users. After it is enabled, users who have not bound UKEY will not be able to log in. This function is designed for special scenarios with high requirements for confidentiality and security. It not only requires username and password to log in, but also requires users to hold the corresponding UKEY device. The UKEY connection must be maintained during the login process, and the system will log out immediately if the UKEY is unplugged.

[0195] When implementing the above method, the specific steps are as follows:

[0196] User binding UKEY: Under the premise of turning off the two-factor authentication policy, log in as an administrator user; insert UKEY and start the UKEY service; click on the administrator user to bind UKEY; generate an encryption certificate and copy it to the UKEY container, and the database will record the association between the selected user and the UKEY PID. The binding steps are as follows;

[0197] a. Initialize CA directory:

[0198] Add the initialization CA directory content to the system initialization script, create the text database content used by OpenSSL, and set the serial number to 01.

[0199] The serial number is the serial number of the certificate. Every time a certificate is generated, the serial number is increased by one. The serial number information when it is generated will be recorded in each certificate information.

[0200] b. Generate a private key file:

[0201] First, you need to generate a private key file, which contains key information for subsequent certificate requests and certificate signing. You can use the openssl genrsa -out private.key 2048 command to generate a 2048-bit RSA private key.

[0202] c. Generate a certificate request (CSR):

[0203] Based on the private key, a certificate request file (CSR) can be generated, which contains the public key information and some authentication information. This step saves the user's relevant information, such as organization name, contact person, etc. The command is openssl req -new -key private.key -out csr.pem.

[0204] d. Submit the CSR to CA for signature:

[0205] Submit the generated CSR file to the certificate authority (CA), which verifies the information in the CSR and signs the CSR with the CA's private key to generate a real certificate. This step may involve interaction with the CA in actual operation, including uploading the CSR file and waiting for the CA's review and signature.

[0206] e. Obtain the issued certificate:

[0207] After completing the above steps, the CA will provide a signed certificate file, usually stored in .cebr or .crt format. This file contains the public key of the certificate holder and the information signed by the CA, ensuring the authenticity and validity of the certificate.

[0208] f. Save the certificate:

[0209] Write the certificate to the UKEY device.

[0210] Call the UKEY service to write the file interface and encrypt and transfer the file to the UKEY container;

[0211] Insert other UKEY devices and select other users to bind UKEY;

[0212] Then, enable two-factor authentication:

[0213] Log in with the administrator user. The administrator has bound UKEY. Click to turn on two-factor authentication. After turning it on, if UKEY cannot be detected or UKEY authentication fails, end the session. If the administrator has not bound UKEY, you will be prompted to bind the administrator user first.

[0214] The user logs in using UKEY: After enabling two-factor authentication, the relevant UKEY must be used when logging in; insert the UKEY, and verify whether the UKEY information is consistent with the logged-in user when logging in; obtain the PID information of the UKEY to determine whether it is consistent with the system user record; obtain the certificate information of the UKEY to determine whether it is consistent with the certificate information in the system user record and whether the certificate is available.

[0215] After two-factor authentication is no longer required, you can turn off the two-factor authentication policy.

[0216] After turning off two-factor authentication, you can log in using an administrator account and click Unbind UKEY to unbind the UKEY information of the corresponding user.

[0217] Example: Implementing the resource sharing method includes:

[0218] Step 1. User binds UKEY;

[0219] Step 2. Log in as an administrator and insert UKEY;

[0220] Step 3. Click to bind UKEY;

[0221] Step 4: Generate an encryption certificate through OpenSSL;

[0222] Step 5. Initialize the CA directory;

[0223] Step 6: Generate a private key file;

[0224] Step 7: Generate a certificate request (CSR).

[0225] Step 8. Submit the CSR to CA for signature;

[0226] Step 9: Get the issued certificate;

[0227] Step 10, save the certificate, save the certificate to the UKEY device;

[0228] Step 11. Bind other users’ UKEY;

[0229] Step 12. Log in as an administrator and enable two-factor authentication.

[0230] Step 13. The user logs in normally using UKEY. The user without bound UKEY cannot log in. The user session unplugged from UKEY will be exited immediately.

[0231] Step 14: After authentication, provide resource sharing services to logged-in users;

[0232] Step 15. Log in as an administrator and turn off two-factor authentication.

[0233] Step 16. Log in as an administrator and unbind UKEY;

[0234] It can be seen that applying the above resource sharing method to share resources includes the following benefits:

[0235] Enhanced security: Two-factor authentication provides an additional layer of security. Even if the password is leaked, unauthorized users cannot log in to the system because two authentication methods need to be met at the same time, and the encryption certificate generated by the UKEY device and OpenSSL needs to be verified. This greatly increases the difficulty of attack and improves the security of the system and data.

[0236] Prevent identity theft: Two-factor authentication can effectively prevent hackers from using stolen passwords for unauthorized access, thereby protecting the user's identity and data security. Introduce certificate lifecycle management function to automatically monitor the validity period of certificates and update or replace them.

[0237] Compliance: Some industries or regulations require the use of two-factor authentication to ensure data security and compliance. The implementation method of the present invention can meet these compliance requirements and help enterprises comply with relevant laws and regulations while protecting user data.

[0238] In short, UKEY two-factor authentication provides a strong security guarantee that is applicable to a variety of operating systems and application scenarios. By combining hardware devices and software authentication, UKEY can effectively prevent unauthorized access and data leakage, thereby protecting the security of corporate and personal data.

[0239] Corresponding to the above method embodiment, the embodiment of the present application further provides a resource sharing device. The resource sharing device described below and the resource sharing method described above can refer to each other.

[0240] As shown in FIG2 , the device includes the following modules:

[0241] The authentication information acquisition unit 101 is used to obtain the authentication certificate from the UKEY device after receiving the authentication request sent by the client, and obtain the account and password through the client; wherein the UKEY device is plugged into the device carrying the client;

[0242] The security node determination unit 102 is used to query the host information of the target resource sharing service and determine the security node from the virtualization system using the host information;

[0243] The authentication information transmission unit 103 is used to send the authentication certificate and the account and password to the security node;

[0244] The certificate authentication unit 104 is used to perform certificate authentication on the authentication certificate based on the certificate information retained during the certificate binding process using the security node;

[0245] The account authentication unit 105 is used to perform account authentication on the account and password using the security node based on the account information retained during the account and password setting process;

[0246] The resource sharing unit 106 is used to allow the client to log in to the virtualization system after the certificate and the account are authenticated, and provide the target resource sharing service to the client through the computing nodes in the virtualization system.

[0247] When the device provided by the embodiment of the present application is applied in a virtualization system, after receiving the authentication request sent by the client, the authentication certificate is obtained from the UKEY device, and the account and password are obtained through the client; wherein the UKEY device is plugged into the device carrying the client; the host information of the target resource sharing service is queried, and the security node is determined from the virtualization system using the host information; the authentication certificate, account and password are sent to the security node; the authentication certificate is authenticated based on the certificate information retained during the certificate binding process using the security node; the account and password are authenticated based on the account information retained during the account and password setting process using the security node; after the certificate and account are authenticated, the client is allowed to log in to the virtualization system, and the target resource sharing service is provided to the client through the computing nodes in the virtualization system.

[0248] After receiving the authentication request sent by the client, the host information of the target resource sharing service is first queried, and then the security node is determined from the virtualization system based on the host information. In addition, the authentication certificate can be obtained from the UKEY device plugged into the device that hosts the client, and the account and password can be obtained through the client. In order to effectively ensure the security of resource sharing, after the user makes an authentication request, the security node is first identified, and then the security node performs security authentication, so as to ensure that the authentication execution node is safe and reliable, thereby ensuring that the authentication is safe and reliable. After determining the security node, the authentication certificate and the account and password can be sent to the security host. Specifically, the security host will perform certificate authentication based on the authentication certificate and account authentication based on the account and password. When performing two-factor authentication, the security node will be based on the certificate information retained during the certificate binding process and the account information retained during the account password setting process. Authentication is performed through two authentication factors, and only after both the certificate and the account are authenticated, the client is allowed to log in to the virtualization system, and the target resource sharing service is provided to the client through the computing node in the virtualization system. Compared with single-factor authentication, two-factor authentication is more secure and reliable. As a result, the virtualization system always provides resource sharing services to users who have passed multi-dimensional authentication, which can effectively ensure the security of resource sharing.

[0249] Technical effect: In this application, before the user logs in to use the target resource sharing service in the virtualization system, a security node is selected for authentication processing, a security policy for authentication certificate authentication and account password authentication is implemented, and a login authentication process is performed, thereby ensuring the security of resource sharing in the virtualization system.

[0250] In a specific implementation of the present application, the binding unit is used to perform a certificate binding process;

[0251] The certificate binding process includes:

[0252] When the two-factor authentication policy is turned off, after the administrator account logs in, obtain the binding request from the visual interface;

[0253] Determine whether the client device corresponding to the administrator account has been plugged into the UKEY device;

[0254] If not, output an error message;

[0255] If yes, query the host information of the target resource sharing service and use the host information to determine the security node;

[0256] Sending the identity verification information carried in the binding request to the security node; wherein the identity verification information includes the organization name and contact information;

[0257] Use the security node to send identity authentication information to the encryption library, and after the encryption library generates a private key file based on the identity authentication information, receive the private key file fed back by the encryption library;

[0258] Using the security node, generate a certificate request file based on the private key file;

[0259] Using the security node to send the certificate request file to the certificate authentication center, and obtain the authentication certificate from the certificate authentication center;

[0260] Receive the authentication certificate fed back by the security node;

[0261] Copy the authentication certificate to the UKEY device and save the certificate information corresponding to the authentication certificate in the security node;

[0262] Accordingly, the policy function switch is used to query the host information of the target resource sharing service after receiving the authentication request sent by the client, and use the host information to enable the two-factor authentication policy before determining the security node from the virtualization system.

[0263] In a specific implementation of the present application, it also includes:

[0264] PID acquisition unit, used to obtain the process identifier of the UKEY device;

[0265] An association relationship recording unit, used to associate the process identifier with the account corresponding to the client, and save the association relationship in a database;

[0266] Correspondingly, the PID and account verification unit is used to obtain the process identifier from the UKEY device after receiving the authentication request sent by the client; use the security node to verify the process identifier based on the association relationship in the database; if the verification fails, output the authentication error information.

[0267] In a specific implementation of the present application, the security node determination unit is specifically used to determine the master node from the computing management nodes of the virtualization system using the host information;

[0268] Identify the master node as a safe node.

[0269] In a specific implementation of the present application, the information synchronization unit is used to periodically synchronize the certificate information and the account information to the slave nodes in the computing management node;

[0270] Correspondingly, the security node determination unit is specifically used to use the host information to determine the master node from the computing management nodes of the virtualization system; determine whether the master node can currently perform authentication processing; if so, determine the master node as a security node; if not, determine the slave node from the computing management nodes of the virtualization system, and determine the slave node as a security node.

[0271] In a specific implementation of the present application, it also includes:

[0272] Plug-in monitoring unit, used to monitor the plug-in status of the UKEY device;

[0273] The interrupt service unit is used to force the client to exit the virtualization system when it detects that the UKEY device is unplugged, and interrupt the computing nodes in the virtualization system to provide target resource sharing services to the client.

[0274] In a specific implementation of the present application, it also includes:

[0275] A certificate lifecycle management unit, used to manage the lifecycle of the authentication certificate using the security node when the certificate lifecycle management function is enabled;

[0276] The life cycle management of the authentication certificate includes:

[0277] Update the authentication certificate and copy the updated authentication certificate to the UKEY device;

[0278] If the authentication certificate has expired, the authentication certificate will be revoked and the certificate expiration reminder information will be output.

[0279] Corresponding to the above method embodiment, the embodiment of the present application further provides an electronic device, and the electronic device described below and the resource sharing method described above can refer to each other.

[0280] As shown in FIG3 , the electronic device includes:

[0281] A memory 332, for storing computer programs;

[0282] The processor 322 is used to implement the steps of the resource sharing method of the above method embodiment when executing a computer program.

[0283] Specifically, please refer to FIG. 4, which is a schematic diagram of the specific structure of an electronic device provided in this embodiment. The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer programs 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the electronic device 301.

[0284] The electronic device 301 may further include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .

[0285] The steps in the resource sharing method described above can be implemented by the structure of an electronic device.

[0286] Corresponding to the above method embodiment, the embodiment of the present application further provides a readable storage medium. The readable storage medium described below and the resource sharing method described above can refer to each other.

[0287] A readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the resource sharing method of the above method embodiment are implemented.

[0288] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.

[0289] Corresponding to the above method embodiment, the embodiment of the present application further provides a computer program product. The computer program product described below and the resource sharing method described above can refer to each other.

[0290] A computer program product includes a computer program / instruction. When the computer program / instruction is executed by a processor, the steps of the resource sharing method are implemented.

[0291] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0292] Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0293] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0294] Finally, it should be noted that, in this article, relationships such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms include, include or any other variations are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0295] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A resource sharing method, characterized in that: Applied to a virtualization system, the method comprises: After receiving the authentication request sent by the client, obtain the authentication certificate from the UKEY device, and obtain the account and password through the client; wherein the UKEY device is plugged into the device carrying the client; Querying host information of a target resource sharing service, and using the host information to determine a security node from the virtualization system; Sending the authentication certificate and the account and password to the security node; Utilizing the security node, based on the certificate information retained during the certificate binding process, to perform certificate authentication on the authentication certificate; Using the security node, based on the account information retained during the account and password setting process, account authentication is performed on the account and password; After both the certificate and the account are authenticated, the client is allowed to log in to the virtualization system, and the target resource sharing service is provided to the client through the computing nodes in the virtualization system.

2. The method according to claim 1, characterized in that The certificate binding process includes: When the two-factor authentication policy is turned off, after the administrator account logs in, obtain the binding request from the visual interface; Determine whether the client device corresponding to the administrator account has been inserted into the UKEY device; If not, output an error message; If yes, query the host information of the target resource sharing service, and determine the security node using the host information; Sending the identity authentication information carried in the binding request to the security node; wherein the identity authentication information includes an organization name and contact information; Using the security node to send the identity authentication information to the encryption library, and after the encryption library generates a private key file based on the identity authentication information, receiving the private key file fed back by the encryption library; Using the security node, generating a certificate request file based on the private key file; Using the security node to send the certificate request file to a certificate authentication center, and obtaining the authentication certificate from the certificate authentication center; Receiving the authentication certificate fed back by the security node; Copying the authentication certificate to the UKEY device, and retaining the certificate information corresponding to the authentication certificate in the security node; Accordingly, after receiving the authentication request sent by the client, querying the host information of the target resource sharing service, and using the host information to determine the security node from the virtualization system, it also includes: Enable two-factor authentication policy.

3. The method according to claim 2, characterized in that The certificate binding process also includes: Obtain the process identifier of the UKEY device; Associating the process identifier with the account corresponding to the client, and saving the association relationship in a database; Accordingly, after receiving the authentication request sent by the client, it also includes: Obtaining the process identifier from the UKEY device; Using the security node, verifying the process identifier based on the association relationship in the database; If the verification fails, the authentication error message is output.

4. The method according to claim 1, characterized in that: Determining a security node from the virtualization system using the host information includes: Using the host information, determining a master node from computing management nodes of the virtualization system; The master node is determined as the safety node.

5. The method according to claim 1, characterized in that Also includes: Periodically synchronizing the certificate information and the account information to slave nodes in the computing management node; Accordingly, using the host information to determine a security node from the virtualization system includes: Using the host information, determining a master node from computing management nodes of the virtualization system; Determine whether the master node can currently perform authentication processing; If yes, determining the master node as the safety node; If not, a slave node is determined from the computing management node of the virtualization system, and the slave node is determined as the security node.

6. The method according to claim 1, characterized in that Also includes: Monitor the plugging status of the UKEY device; When it is detected that the UKEY device is unplugged, the client is forced to exit the virtualization system, and the computing nodes in the virtualization system are interrupted from providing the target resource sharing service to the client.

7. The method according to claim 1, characterized in that Also includes: When the certificate lifecycle management function is activated, using the security node to perform lifecycle management on the authentication certificate; The life cycle management of the authentication certificate includes: Updating the authentication certificate and copying the updated authentication certificate to the UKEY device; If the authentication certificate has expired, the authentication certificate is revoked and certificate expiration reminder information is output.

8. A resource sharing device, characterized in that: include: An authentication information acquisition unit, used to obtain an authentication certificate from a UKEY device after receiving an authentication request sent by a client, and obtain an account and password through the client; wherein the UKEY device is plugged into a device carrying the client; A security node determination unit, configured to query host information of a target resource sharing service and determine a security node from the virtualization system using the host information; An authentication information transmission unit, used to send the authentication certificate and the account and password to the security node; A certificate authentication unit, configured to use the security node to perform certificate authentication on the authentication certificate based on the certificate information retained during the certificate binding process; An account authentication unit, configured to use the security node to perform account authentication on the account and password based on the account information retained during the account and password setting process; The resource sharing unit is used to allow the client to log in to the virtualization system after the certificate and the account are authenticated, and provide the target resource sharing service to the client through the computing node in the virtualization system.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the resource sharing method according to any one of claims 1 to 7 when executing the computer program.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the resource sharing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Virtualization desktop safety certification method and system based on USB-Key

    CN104378206A

  • Method and system for double-factor bidirectional authentication

    CN104486343A

  • Two-factor authentication apparatus and method, and computer readable storage medium

    CN111428213A

  • Method and device for authenticating connection between desktop cloud client and serving end

    WO2015196659A1