Server startup method and device, storage medium and electronic device

By deploying a trusted platform module on the server and using account authentication and encryption and decryption technology to ensure the security of startup data, the problem of low security in the server operating environment is solved and higher security is achieved.

CN118260774BActive Publication Date: 2024-09-17INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410696749.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-17
Estimated Expiration
2044-05-31

AI Technical Summary

Technical Problem

The security of the server operating environment is low, especially when there is no security function protection, it is vulnerable to attacks by viruses and Trojans, causing startup data to be tampered with, affecting the security of the server.

Method used

Deploy the trusted platform module on the server, receive the request of the target account, retrieve its authentication information and authentication files, use the specified authentication method to encrypt and decrypt the startup data for authentication, and use these data to start the server after the verification is passed. , ensuring the integrity and security of startup data.

Benefits of technology

Through the account authentication and encryption and decryption processes, it is ensured that the data used by the server when starting is verified, avoiding security risks caused by tampered data, and improving the security of the server operating environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118260774B
    Figure CN118260774B
Patent Text Reader

Abstract

The embodiment of the present application provides a method and device for starting a server, a storage medium and an electronic device, wherein the method includes: receiving a target request sent by a target account to start a target server; when it is determined that the target account has call authority to the target server, retrieving the target authentication information corresponding to the target account from the trusted platform module, and retrieving the target authentication file corresponding to the target account from the target server; using the target authentication method indicated by the target authentication information to decrypt and authenticate the target authentication file to obtain the target startup information; performing data verification on the target startup data indicated by the target startup information; when the target startup data verification passes, using the target startup data to start the target server. Through this application, the problem of low security of the server operating environment in the related technology is solved, and the effect of improving the security of the server operating environment is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular, to a method and device for starting a server, a storage medium, and an electronic device. Background Art

[0002] A server is a type of computer that runs faster, has a higher load, and is more expensive than an ordinary computer. A server provides computing or application services to other clients (such as PCs (Personal Computers), smartphones, ATMs (Automated Teller Machines), and even large devices such as train systems) in the network. During the server startup process, the BIOS (Basic Input / Output System) will initialize all hardware devices and prepare the startup environment. It is known as the bridge between hardware devices and the operating system and is the most important component of the server. Without security protection, viruses, Trojan programs, etc. can easily destroy the integrity of the BIOS code, causing a series of serious losses. In order to ensure the security and reliability of the server's operating environment, some manufacturers have proposed server protection functions, such as the Boot Guard security function provided by Intel. Boot Guard introduces a package called ACM, which adds this function to the processor. By pre-storing the startup data of the server BIOS, when the server needs to be started later, the BIOS will verify the startup data obtained by the processor and run it after the verification passes. Although this solution can ensure the security of the server's operating environment to a certain extent, this method is completely dependent on the processor. The trust root of the trust chain of the security link also comes from the processor manufacturer. For users using the server, they cannot perceive and determine the security of the server's operating environment. For some users with security needs, the server's operating environment still has great security risks. Summary of the invention

[0003] The embodiments of the present application provide a method and device for starting a server, a storage medium, and an electronic device, so as to at least solve the problem of low security of the server operating environment in the related art.

[0004] According to an embodiment of the present application, a server startup method is provided, which is applied to a basic input / output system, wherein the basic input / output system and a trusted platform module are deployed on a target server, and the basic input / output system is connected to the trusted platform module, and the method comprises: receiving a target request sent by a target account to start the target server; when it is determined that the target account has call authority to the target server, retrieving target authentication information corresponding to the target account from the trusted platform module, and retrieving a target authentication file corresponding to the target account from the target server, wherein the target authentication file is obtained by encrypting and authenticating the startup information of the target server using the target authentication method indicated by the target authentication information, and the startup information is used to indicate the startup data used for starting the target server; decrypting and authenticating the target authentication file using the target authentication method indicated by the target authentication information to obtain target startup information; performing data verification on the target startup data indicated by the target startup information; and when the target startup data verification passes, starting the target server using the target startup data.

[0005] Optionally, the retrieving target authentication information corresponding to the target account from the trusted platform module includes:

[0006] Obtaining a target service function of the target server requested to be called by the target request;

[0007] The target authentication information configured by the target account for the target business function is retrieved from the trusted platform module.

[0008] Optionally, the retrieving from the trusted platform module the target authentication information configured by the target account for the target business function includes:

[0009] Determine one or more target startup data required to implement the target business function, wherein each target startup data records a startup method for a corresponding hardware device deployed on the target server;

[0010] The target authentication information of the target account corresponding to the target startup data is retrieved from the trusted platform module.

[0011] Optionally, the retrieving from the trusted platform module the target authentication information of the target account corresponding to the target startup data includes:

[0012] Determine a target storage location corresponding to the target authentication information from the authentication information having a corresponding relationship and a storage area in the trusted platform module;

[0013] Sending a target acquisition request to the trusted platform module, wherein the target acquisition request is used to request to acquire the authentication information stored in the target storage location;

[0014] The target authentication information is received, which is returned by the trusted platform module in response to the target acquisition request.

[0015] Optionally, a central processing unit is further deployed on the target server mainboard, and the central processing unit is connected to the basic input and output system and the trusted platform module respectively through a serial peripheral device interface bus.

[0016] The sending a target acquisition request to the trusted platform module includes:

[0017] Generate target instructions in serial peripheral device interface protocol format;

[0018] The target instruction is sent to the central processing unit through the serial peripheral device interface bus, wherein the target instruction is used to instruct the central processing unit to send the target acquisition request in the serial peripheral device interface protocol format to the trusted platform module.

[0019] Optionally, retrieving a target authentication file corresponding to the target account from the target server includes:

[0020] Obtaining a target service function of the target server requested to be called by the target request;

[0021] One or more target authentication files corresponding to the target business function are screened out from multiple reference authentication files stored in the server, wherein each reference authentication file is obtained by encrypting reference startup information for the target account, and the reference startup information is used to indicate the data content recorded in the reference startup data used to start the target server, and each reference startup data records the startup method of the corresponding hardware device deployed on the target server.

[0022] Optionally, a baseboard management controller is deployed on the target server mainboard, and the baseboard management controller is connected to the basic input and output system.

[0023] The step of selecting the one or more target authentication files corresponding to the target business function from the multiple reference authentication files stored in the server includes:

[0024] Filtering out a target authentication file corresponding to the target account calling the target business function from accounts, business functions and authentication files having corresponding relationships;

[0025] Determining a target storage location for storing the target authentication file from a plurality of storage locations of the baseboard management controller, wherein the storage location in the baseboard management controller and the reference authentication file have a meaningful corresponding relationship;

[0026] The target authentication file is extracted from the target storage location.

[0027] Optionally, determining a target storage location for storing the target authentication file from a plurality of storage locations of the baseboard management controller includes:

[0028] Acquire a memory mapping table of the baseboard management controller, wherein the memory mapping table is used to indicate the memory space allocation status of the baseboard management controller;

[0029] The target storage location for storing the target authentication file in the memory of the baseboard management controller is searched from the memory mapping table.

[0030] Optionally, before obtaining the memory mapping table of the trusted platform module, the method further includes:

[0031] Receiving the reference authentication file sent by a reference server, wherein the reference server is a server used to maintain the running status of the target server;

[0032] Filtering out reference storage locations in an unoccupied state from the content space of the baseboard management controller;

[0033] The reference authentication file is stored in the reference storage location, and the corresponding relationship between the reference storage location and the reference authentication file is updated in the memory mapping table.

[0034] Optionally, the adopting the target authentication method indicated by the target authentication information to decrypt and authenticate the target authentication file to obtain the target startup information includes:

[0035] Converting a decryption key corresponding to the target authentication file according to the target authentication information;

[0036] The target authentication file is decrypted using the decryption key to obtain the target startup information.

[0037] Optionally, the decrypting the target authentication file using the decryption key to obtain the target startup information includes:

[0038] Decrypting the target authentication file using the account public key of the target account to obtain a candidate authentication file, wherein the target authentication file is obtained by encrypting the candidate authentication file by the target account using the account private key corresponding to the account public key, and the decryption key includes the account public key;

[0039] Obtaining a server public key of a reference server for the candidate authentication file from the trusted platform module, wherein the reference server is a server used to maintain the running status of the target server, and the reference server is used to encrypt the target startup information using a server private key corresponding to the server public key, and send the encrypted candidate authentication file to the target account for authentication;

[0040] The candidate authentication file is decrypted using the server public key to obtain the target startup information.

[0041] Optionally, converting a decryption key corresponding to the target authentication file according to the target authentication information includes one of the following:

[0042] In a case where the target authentication information is an account public key of the target account, determining the account public key as the decryption key;

[0043] When the target authentication information is information indicating a target encryption method used by the target account for the target authentication file, a decryption method corresponding to the target encryption method is determined; and the decryption key for decrypting the target authentication file is generated according to the decryption method.

[0044] Optionally, before selecting the target authentication file corresponding to the target account calling the target business function from the accounts, business functions and authentication files having corresponding relationships, the method further includes:

[0045] detecting a communication status between the baseboard management controller and the basic input and output system;

[0046] In a case where the communication status is used to indicate that the basic input / output system is in a disconnected state, the target authentication file corresponding to the target business function is screened out from a plurality of initial authentication files stored in a cache area corresponding to the basic input / output system, wherein the plurality of initial authentication files are authentication files used by the basic input / output system to start the target server for the target account within a reference time period before a current moment.

[0047] Optionally, after selecting the target authentication file corresponding to the target business function from the multiple initial authentication files stored in the buffer area corresponding to the basic input and output system, the method further includes:

[0048] extracting the plurality of reference authentication files stored in the baseboard management controller in the case where the restored communication between the basic input and output system and the baseboard management controller is detected;

[0049] The initial authentication file is updated using the reference authentication file.

[0050] Optionally, performing data verification on the target startup data indicated by the target startup information includes:

[0051] Matching the target startup information with the target startup data in the target server;

[0052] In a case where the target startup information and the target startup data match each other, determining that the target startup data verification passes;

[0053] When the target startup information and the target startup data do not match each other, it is determined that the target startup data verification fails.

[0054] Optionally, matching the target startup information with the target startup data in the target server includes:

[0055] Calculating the target startup data using an information digest algorithm to obtain a candidate information digest, wherein the candidate information digest is used to indicate data content carried by the target startup data;

[0056] matching the candidate information digest with the target information digest, wherein the target startup information includes the target information digest;

[0057] When the target information digest and the candidate information digest are the same, determining that the target startup data and the target startup information match each other;

[0058] When the target information digest and the candidate information digest are different, it is determined that the target startup data and the target startup information do not match each other.

[0059] According to another embodiment of the present application, a server startup device is provided, which is applied to a basic input / output system. The basic input / output system and a trusted platform module are deployed on a target server. The basic input / output system is connected to the trusted platform module. The device includes:

[0060] A receiving module is used to receive a target request sent by a target account to start the target server; a calling module is used to call the target authentication information corresponding to the target account from the trusted platform module and call the target authentication file corresponding to the target account from the target server when it is determined that the target account has the calling authority to the target server, wherein the target authentication file is obtained by the target account using the target authentication method indicated by the target authentication information to encrypt and authenticate the startup information of the target server, and the startup information is used to indicate the startup data used for starting the target server; an authentication module is used to decrypt and authenticate the target authentication file using the target authentication method indicated by the target authentication information to obtain target startup information; a verification module is used to perform data verification on the target startup data indicated by the target startup information; and a startup module is used to start the target server using the target startup data when the target startup data verification passes.

[0061] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0062] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0063] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0064] Through the present application, a trusted platform module connected to a basic input / output system is deployed on a target server, and the trusted platform module stores authentication information of an account with calling authority to the target server, and an authentication file is imported on the target server, and the authentication file is obtained by encrypting the startup information using the authentication method indicated by the authentication information after the startup information of the target server is verified by the account using the authentication information, so that the data content of the startup data used by the target server to start is authenticated by the account using the server, and the authentication method for authenticating the startup data is mastered by the account using the server, and then after receiving a target request, the target authentication information of the target account is retrieved from the trusted platform module, and the target authentication file corresponding to the target account is retrieved from the server, and the target authentication file is decrypted and authenticated using the target authentication method indicated by the target authentication information, so as to obtain the startup information for verifying the target startup data, and realize running the server according to the startup data authenticated by the target account in advance using a private authentication method, avoiding the impact of the startup security of the server caused by the use of tampered startup data when the server starts, and ensuring the security of the server's operating environment, therefore, the problem of low security of the server operating environment in the related technology can be solved, and the effect of improving the security of the server operating environment can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is a hardware structure block diagram of a server device of a server startup method according to an embodiment of the present application;

[0066] Figure 2 is a flow chart of a method for starting a server according to an embodiment of the present application;

[0067] Figure 3 is a schematic diagram of an optional server system according to an embodiment of the present application;

[0068] Figure 4 is a schematic diagram of information interaction according to an embodiment of the present application;

[0069] Figure 5 is an optional server hardware connection diagram according to an embodiment of the present application;

[0070] Figure 6 is an optional startup data verification flow chart according to an embodiment of the present application;

[0071] Figure 7 It is a structural block diagram of a startup device of a server according to an embodiment of the present application. DETAILED DESCRIPTION

[0072] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0073] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0074] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a server startup method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0075] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the startup method of the server in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0076] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0077] In this embodiment, a method for starting a server is provided. Figure 2 is a flow chart of a method for starting a server according to an embodiment of the present application, such as Figure 2 As shown, it is applied to a basic input and output system, the basic input and output system and the trusted platform module are deployed on a target server, the basic input and output system is connected to the trusted platform module, the trusted platform module stores authentication information of a reference account that has call authority to the target server, the authentication information is used to indicate an authentication method for encrypting and authenticating data by the reference account, the target server imports an authentication file obtained by encrypting and authenticating the startup information of the target server using the authentication method after the reference account verifies the information, the startup information is used to indicate the startup data used for startup of the target server, and the process includes the following steps:

[0078] Step S202, receiving a target request sent by a target account to start the target server;

[0079] Step S204, when it is determined that the target account has the calling authority to the target server, the target authentication information corresponding to the target account is retrieved from the trusted platform module, and the target authentication file corresponding to the target account is retrieved from the target server, wherein the target authentication file is obtained by the target account using the target authentication method indicated by the target authentication information to encrypt and authenticate the startup information of the target server, and the startup information is used to indicate the startup data used for startup of the target server;

[0080] Step S206, decrypting and authenticating the target authentication file using the target authentication method indicated by the target authentication information to obtain target startup information;

[0081] Step S208, performing data verification on the target startup data indicated by the target startup information;

[0082] Step S210: when the target startup data passes the verification, the target server is started using the target startup data.

[0083] Through the above steps, a trusted platform module connected to the basic input and output system is deployed on the target server, the trusted platform module stores the authentication information of the account with the calling authority to the target server, and the target server also imports the authentication file obtained by encrypting the startup information using the authentication method indicated by the authentication information after the startup information of the target server is verified by the account using the authentication information, so that the data content of the startup data used by the target server to start is authenticated by the account using the server, and the authentication method for authenticating the startup data is mastered by the account using the server, and then after receiving the target request, the target authentication information of the target account is retrieved from the trusted platform module, and the target authentication file corresponding to the target account is retrieved from the server, and the target authentication file is decrypted and authenticated using the target authentication method indicated by the target authentication information, so as to obtain the startup information for verifying the target startup data, and realize running the server according to the startup data authenticated by the target account in advance using the private authentication method, avoiding the impact of the startup security of the server caused by the use of tampered startup data when the server is started, and ensuring the security of the server's operating environment. Therefore, the problem of low security of the server operating environment in the related technology can be solved, and the effect of improving the security of the server operating environment can be achieved.

[0084] Optionally, in an embodiment of the present application, the trusted platform module stores authentication information of a reference account that has calling authority on the target server, the authentication information is used to indicate an authentication method for the reference account to encrypt and authenticate data, the target server imports an authentication file obtained by encrypting and authenticating the startup information of the target server using the authentication method after the reference account verifies the startup information, and the startup information is used to indicate the startup data used for starting the target server.

[0085] Optionally, in an embodiment of the present application, during the startup process of the server, a trusted platform module (TPM) is a secure storage module that is allowed to be accessed by a basic input / output system. According to the secure storage characteristics of the trusted platform module, the authentication information stored in the trusted platform module is ensured not to be stolen.

[0086] Optionally, in an embodiment of the present application, the authentication information stored in the trusted platform module may be stored in the trusted platform module by a reference server for maintaining the operation of the target server, or may be stored in the trusted platform module by a user according to the use requirements of the target server, for example, the reference server configures authentication information for the account using the server and stores the authentication information in the trusted platform module, or may be a request to use the account of the target server to send the authentication information used by itself to the reference server for review, and the reference server stores it in the trusted platform module after the review is passed. Alternatively, the account using the server may be stored in the trusted platform module, for example, the reference account sends a call request to the reference server to call the target server, and when the target server verifies the call request, it will issue authorization information to the target account, and the authorization information is used to indicate that the reference account has the call authority to the target server, and then the reference account uses the authorization information to access the trusted platform module and stores the authentication information used by itself in the trusted platform module, and this scheme does not limit this.

[0087] Optionally, in an embodiment of the present application, the authentication information may include, but is not limited to, an encryption key for encrypting and authenticating data with a reference account, a decryption key corresponding to the encryption key, a key generation method for generating an encryption key for authenticating data with a reference account, a key generation method for generating a decryption key, etc. This solution does not limit this.

[0088] Optionally, in an embodiment of the present application, the startup data is used to indicate a startup method for starting the server, and the startup methods indicated by different startup data are used to implement different business functions of the server. For example, the startup data may be data for starting the corresponding hardware device deployed on the service, and this solution does not limit this.

[0089] In the embodiment provided in the above step S202, the target request may, but is not limited to, carry the business function of the business handled by the request calling server, that is, in the server, the startup data of the server may be divided according to the business function, so that different startup data may be called according to different business functions. Alternatively, the startup data of the server may be divided according to a certain granularity according to the type of business function to be implemented, and then, in the case of requesting to call the target business function of the server, the startup data in the server may be screened to obtain a set of startup data for implementing the target business function of the server.

[0090] Optionally, in an embodiment of the present application, the target account is registered on the server and has a login relationship with the target server, that is, the target account can be an account logged in to the server client corresponding to the target server; or the target account can also be an account logged in on a web page bound to the target server; or the target account can also be an account logged in to a candidate server that has a binding relationship with the target server, and the candidate server is used to call related business functions on the server to complete the business functions of the candidate server. This solution does not limit this.

[0091] In the embodiment provided in the above step S204, the trusted platform module may provide an API interface for other modules (such as basic input and output systems) to call to obtain the target authentication information corresponding to the target account. The caller may request the target authentication information by sending specific request parameters, such as the target account ID or user name.

[0092] Optionally, in an embodiment of the present application, the authentication file can be stored in the server in correspondence with the corresponding startup data, that is, the authentication file and startup data with a corresponding relationship are stored in the same location in the server, which is convenient for candidate data calls. For example, the authentication file and startup data with a corresponding relationship can be stored in the BMC (Baseboard Management Controller) of the server, thereby facilitating the BMC candidate to call the startup data to perform startup operations on the server. This solution does not limit this.

[0093] In the embodiment provided in the above step S206, the startup information can be obtained by jointly signing and authenticating the target account using the target server and the maintainer used to maintain the target server, thereby ensuring the security and reliability of the authentication file. For example, the maintainer of the target server uses the maintainer's private key to encrypt and authenticate the startup information to obtain an authenticated authentication file, and the maintainer sends the authentication file to the target account, and the target account signs and authenticates the authentication file using the target account's account private key to obtain the target authentication file. At this time, decrypting the target authentication file requires the decryption key of the target account and the decryption key of the maintainer. Therefore, the corresponding decryption key can be converted through the authentication information to decrypt and authenticate the target authentication file.

[0094] In the embodiment provided in the above step S208, the target startup information is the startup information obtained by pre-authentication of the target account, and the startup information records the startup data used to start the server after the target account is authenticated. Then, the target startup data is verified by using the target startup information to avoid the security of the target startup data to be called during the server startup process, and to avoid the server using tampered startup data to perform startup operations. This solution does not limit this.

[0095] This application adopts a method that does not rely on the processor to protect the static area of ​​the server firmware BIOS. The characteristics of the high-quality trusted platform module TPM and the developed verification algorithm are used to verify the static area of ​​the BIOS. The purpose of secure boot is achieved to avoid being invaded by viruses such as Trojans. Figure 3 is a schematic diagram of an optional server system according to an embodiment of the present application, such as Figure 3 As shown, the system includes a target server, a target account using the target server, and a reference server for maintaining the target server. The target account is registered on the server and has a login relationship with the target server, that is, the target account can be an account logged in in the server client corresponding to the target server; or the target account can also be an account logged in on a web page bound to the target server; or the target account can also be an account logged in in a candidate server with a binding relationship with the target server, and the candidate server is used to complete the business functions of the candidate server by calling the relevant business functions on the server. Before the server is started, the reference server sends the startup information indicating the data content of the startup data used for the server startup to the target account for authentication. After the target account authenticates the startup information, the startup information is encrypted and authenticated using the target account authentication method to obtain the authentication file to the reference server. The reference server stores the authentication file in the target server, and then after the target account issues a target request for calling the server, the authentication file and the authentication information stored in the server can be retrieved, and the authentication file is decoded by the authentication information to obtain the startup information, so as to use the startup information to verify the startup data to be called by the server.

[0096] Figure 4 is a schematic diagram of information interaction according to an embodiment of the present application, such as Figure 4As shown, in order to ensure the security of the startup information, two sets of keys can be set in this application to encrypt and authenticate the authentication information. The user (using the reference account of the target server) generates a set of keys as the root key pair, which is the trust root of secure startup and is responsible for encrypting the certificate of the secondary key; the server manufacturer (the reference server that maintains the memory of the target server) generates a set of keys as the secondary key pair, which is responsible for encrypting the BIOS static area (startup data). To ensure the security of the public key, the public keys of the root key and the secondary key are stored in the trusted platform module TPM. The private key of the root key is stored on the user side, and the private key of the secondary key is stored on the server manufacturer side. The root key is the source of the trust root of this solution, and the root key is controlled by the user, which meets the customer's security requirements. Support users to customize the BIOS encryption area (startup data), centering on the user, allowing users to select important areas. Such important areas may be the core code area in the BIOS, or the code area of ​​user-customized functions, etc. After the user customizes the BIOS encryption area, the reference server selects different secondary keys based on the area type selected by the user to encrypt them into corresponding secondary certificates, and then passes all secondary certificates to the user. The user uses the private key of the root key to encrypt all secondary certificates into corresponding root certificates and then passes them to the reference server. Next, the reference server writes all root certificates into the BMC out-of-band, and writes the public key of the root key provided by the user into the trusted platform module TPM.

[0097] As an optional embodiment, the retrieving target authentication information corresponding to the target account from the trusted platform module includes:

[0098] Obtaining a target service function of the target server requested to be called by the target request;

[0099] The target authentication information configured by the target account for the target business function is retrieved from the trusted platform module.

[0100] Optionally, in an embodiment of the present application, the target account may use a fixed authentication information to authenticate the startup information of all business functions of the server.

[0101] Optionally, in an embodiment of the present application, the target account can configure different authentication information for different business functions, that is, use different authentication information to authenticate the startup information of different business functions of the server, and then set different authentication information according to the importance of the business function. The higher the importance of the business function, the higher the security level of the authentication method indicated by the authentication information, and the higher the complexity of performing the authentication operation. The lower the importance of the business function, the lower the security level of the authentication method indicated by the authentication service, and the complexity of performing the authentication operation is relatively low.

[0102] Through the above content, by configuring corresponding authentication information for different business functions, the target account is prevented from using the same authentication method to encrypt and authenticate the startup information corresponding to different business functions, thereby ensuring the accuracy of the authentication file, preventing the file content of the authentication file from being stolen or tampered with, and thus ensuring the security of the server's operating environment.

[0103] As an optional embodiment, the retrieving from the trusted platform module the target authentication information configured by the target account for the target business function includes:

[0104] Determine one or more target startup data required to implement the target business function, wherein each target startup data records a startup method for a corresponding hardware device deployed on the target server;

[0105] The target authentication information of the target account corresponding to the target startup data is retrieved from the trusted platform module.

[0106] Optionally, in an embodiment of the present application, the authentication information can be, but is not limited to, generated based on the data content of the corresponding startup data. For example, a key generation algorithm is used to calculate the data content of the startup data to obtain key information for signature authentication of the startup information corresponding to the startup data. The authentication information includes the key information, and this solution does not limit this.

[0107] Through the above steps, the startup data in the server is split according to a certain granularity, and the corresponding authentication method is configured for the startup data, thereby avoiding using the same authentication method to authenticate different startup information, thereby reducing the risk of the startup information being stolen or deciphered and tampered with.

[0108] As an optional embodiment, the retrieving the target authentication information of the target account corresponding to the target startup data from the trusted platform module includes:

[0109] Determine a target storage area corresponding to the target authentication information from the authentication information having a corresponding relationship and the storage area in the trusted platform module;

[0110] Sending a target acquisition request to the trusted platform module, wherein the target acquisition request is used to request to acquire the authentication information stored in the target storage area;

[0111] The target authentication information is received, which is returned by the trusted platform module in response to the target acquisition request.

[0112] Optionally, in an embodiment of the present application, the storage area of ​​the authentication information in the trusted platform module can be continuous, or the same authentication information can also be stored in multiple discontinuous storage areas in the trusted platform module. When obtaining the authentication information stored in the feasible platform module, if the authentication information obtained is sub-authentication information of multiple storage areas, the target authentication information can be obtained by splicing the multiple sub-authentication information in the order of the storage areas in the trusted platform module. This solution does not limit this.

[0113] Through the above content, by dividing and allocating the storage space of the trusted platform module, on the one hand, the storage space of the trusted platform module can be effectively utilized, and on the other hand, the storage efficiency of the authentication information can be improved, the storage of the authentication information can be avoided, and the subsequent use can be facilitated.

[0114] As an optional embodiment, a central processing unit is further disposed on the target server mainboard, and the central processing unit is connected to the basic input and output system and the trusted platform module respectively through a serial peripheral device interface bus.

[0115] The sending a target acquisition request to the trusted platform module includes:

[0116] Generate target instructions in serial peripheral device interface protocol format;

[0117] The target instruction is sent to the central processing unit through the serial peripheral device interface bus, wherein the target instruction is used to instruct the central processing unit to send the target acquisition request in the serial peripheral device interface protocol format to the trusted platform module.

[0118] As an optional embodiment, before sending the target acquisition request to the trusted platform module, the method further includes:

[0119] Acquire a target authorization value stored in the basic input / output system, wherein the target authorization value is used to indicate access rights of the basic input / output system to the trusted platform module;

[0120] A permission verification request carrying the target authorization value is sent to the trusted platform module, wherein the permission verification request is used to request the trusted platform module to verify the data access permission of the basic input / output system based on the target authorization value.

[0121] Optionally, in an embodiment of the present application, the target authorization value represents the basic input / output system's read permission for the trusted platform module, and the basic input / output system can use a fixed authorization value to access the trusted platform module, or, on the trusted platform module, different authentication information stored has different authorization values, and the basic input / output system needs to use the corresponding authorization value to access the storage area in the trusted platform module used to store the corresponding authentication information. This solution does not limit this.

[0122] Through the above content, by setting an authorization value for the basic input / output system on the trusted platform module, before the basic input / output system requests authentication information from the trusted platform module, identity authentication is performed using the authorization value, thereby ensuring the secure storage of authentication information by the trusted authentication platform and preventing the authentication information in the trusted platform module from being stolen.

[0123] As an optional embodiment, retrieving the target authentication file corresponding to the target account from the target server includes:

[0124] Obtaining a target service function of the target server requested to be called by the target request;

[0125] One or more target authentication files corresponding to the target business function are screened out from multiple reference authentication files stored in the server, wherein each reference authentication file is obtained by encrypting reference startup information for the target account, and the reference startup information is used to indicate the data content recorded in the reference startup data used to start the target server, and each reference startup data records the startup method of the corresponding hardware device deployed on the target server.

[0126] Optionally, in an embodiment of the present application, the reference startup data is obtained by segmenting the startup data deployed in the server according to a certain granularity, such as segmenting according to the device type of the hardware device started by the startup data, or segmenting according to the business function implemented by the hardware device started by the startup data. This solution does not limit this.

[0127] Through the above steps, the startup data in the server is divided into multiple reference startup data, thereby ensuring the flexibility of the management of the server startup data. The server maintainer can add corresponding reference startup data according to needs, thereby assembling and splicing multiple reference startup information to obtain a startup data set for realizing the corresponding business function, which will reduce the amount of data maintenance by maintenance personnel. In addition, the reference startup data can also be flexibly combined to enable the server to support different business functions and improve the flexibility of the server's business functions.

[0128] As an optional embodiment, a baseboard management controller is deployed on the target server mainboard, and the baseboard management controller is connected to the basic input and output system.

[0129] The step of selecting the one or more target authentication files corresponding to the target business function from the multiple reference authentication files stored in the server includes:

[0130] Filtering out a target authentication file corresponding to the target account calling the target business function from accounts, business functions and authentication files having corresponding relationships;

[0131] Determining a target storage location for storing the target authentication file from a plurality of storage locations of the baseboard management controller, wherein the storage location in the baseboard management controller and the reference authentication file have a meaningful corresponding relationship;

[0132] The target authentication file is extracted from the target storage location.

[0133] Through the above content, by dividing the storage location of the baseboard management controller, it is realized to configure the corresponding storage location in the baseboard management controller for the corresponding authentication file. On the one hand, it ensures the effective utilization of the storage location of the baseboard management controller, and on the other hand, it improves the storage efficiency of the authentication file, which facilitates the subsequent reading of the authentication file.

[0134] As an optional embodiment, determining a target storage location for storing the target authentication file from a plurality of storage locations of the baseboard management controller includes:

[0135] Acquire a memory mapping table of the baseboard management controller, wherein the memory mapping table is used to indicate the memory space allocation status of the baseboard management controller;

[0136] The target storage location for storing the target authentication file in the memory of the baseboard management controller is searched from the memory mapping table.

[0137] As an optional embodiment, before obtaining the memory mapping table of the trusted platform module, the method further includes:

[0138] Receiving the reference authentication file sent by a reference server, wherein the reference server is a server used to maintain the running status of the target server;

[0139] Filtering out reference storage locations in an unoccupied state from the content space of the baseboard management controller;

[0140] The reference authentication file is stored in the reference storage location, and the corresponding relationship between the reference storage location and the reference authentication file is updated in the memory mapping table.

[0141] Optionally, in the embodiment of the present application, the storage location occupied by the authentication file in the baseboard management controller may be a continuous storage location, or the authentication file may also occupy a plurality of discontinuous storage locations in the baseboard management controller.

[0142] Through the above content, when storing the authentication file in the baseboard management controller, the authentication file is stored in the unoccupied storage location by screening the unoccupied storage location in the baseboard management controller, thereby ensuring the effective occupancy of the storage space of the baseboard management controller and avoiding waste of storage space.

[0143] As an optional embodiment, the adopting the target authentication method indicated by the target authentication information to decrypt and authenticate the target authentication file to obtain the target startup information includes:

[0144] Converting a decryption key corresponding to the target authentication file according to the target authentication information;

[0145] The target authentication file is decrypted using the decryption key to obtain the target startup information.

[0146] Optionally, in an embodiment of the present application, the target authentication information may carry a decryption key for decrypting the authentication information, or may also store a key generation method for generating a decryption key.

[0147] As an optional embodiment, the using the decryption key to decrypt the target authentication file to obtain the target startup information includes:

[0148] Decrypting the target authentication file using the account public key of the target account to obtain a candidate authentication file, wherein the target authentication file is obtained by encrypting the candidate authentication file by the target account using the account private key corresponding to the account public key, and the decryption key includes the account public key;

[0149] Obtaining a server public key of a reference server for the candidate authentication file from the trusted platform module, wherein the reference server is a server used to maintain the running status of the target server, and the reference server is used to encrypt the target startup information using a server private key corresponding to the server public key, and send the encrypted candidate authentication file to the target account for authentication;

[0150] The candidate authentication file is decrypted using the server public key to obtain the target startup information.

[0151] Through the above steps, the target account of the target server and the reference server that maintains the operating functions of the target server jointly encrypt and authenticate the startup information. That is, the reference server first encrypts and authenticates the startup information, and sends the encrypted authentication file to the target account for authentication, so that the target account receives the encrypted version of the startup information, avoiding the problem of startup information leakage caused by sending the server's startup information in plain text to the target user, thereby ensuring the security of the server's startup information.

[0152] As an optional embodiment, converting the decryption key corresponding to the target authentication file according to the target authentication information includes one of the following:

[0153] In a case where the target authentication information is an account public key of the target account, determining the account public key as the decryption key;

[0154] When the target authentication information is information indicating a target encryption method used by the target account for the target authentication file, a decryption method corresponding to the target encryption method is determined; and the decryption key for decrypting the target authentication file is generated according to the decryption method.

[0155] As an optional embodiment, before selecting the target authentication file corresponding to the target account calling the target business function from the accounts, business functions and authentication files having corresponding relationships, the method further includes:

[0156] detecting a communication status between the baseboard management controller and the basic input and output system;

[0157] In a case where the communication status is used to indicate that the basic input / output system is in a disconnected state, the target authentication file corresponding to the target business function is screened out from a plurality of initial authentication files stored in a cache area corresponding to the basic input / output system, wherein the plurality of initial authentication files are authentication files used by the basic input / output system to start the target server for the target account within a reference time period before a current moment.

[0158] Through the above steps, the authentication files used by the target account are cached in the cache area of ​​the basic input / output system, which is used to verify the startup data after the basic input / output system loses contact with the baseboard management controller, thereby improving the operating stability of the server system and avoiding the impact of the link disconnection between the basic input / output system and the baseboard management controller on the server startup.

[0159] As an optional embodiment, after selecting the target authentication file corresponding to the target business function from the multiple initial authentication files stored in the buffer area corresponding to the basic input and output system, the method further includes:

[0160] extracting the plurality of reference authentication files stored in the baseboard management controller in the case where the restored communication between the basic input and output system and the baseboard management controller is detected;

[0161] The initial authentication file is updated using the reference authentication file.

[0162] Through the above steps, after the communication between the basic input and output system and the baseboard management controller is restored, the reference authentication file in the baseboard management controller is called to update the authentication file stored in the cache area of ​​the basic input and output system, thereby ensuring the accuracy of the authentication file stored in the cache area of ​​the basic input and output system.

[0163] As an optional embodiment, the performing data verification on the target startup data indicated by the target startup information includes:

[0164] Matching the target startup information with the target startup data in the target server;

[0165] In a case where the target startup information and the target startup data match each other, determining that the target startup data verification passes;

[0166] When the target startup information and the target startup data do not match each other, it is determined that the target startup data verification fails.

[0167] As an optional embodiment, matching the target startup information with the target startup data in the target server includes:

[0168] Calculating the target startup data using an information digest algorithm to obtain a candidate information digest, wherein the candidate information digest is used to indicate data content carried by the target startup data;

[0169] matching the candidate information digest with the target information digest, wherein the target startup information includes the target information digest;

[0170] When the target information digest and the candidate information digest are the same, determining that the target startup data and the target startup information match each other;

[0171] When the target information digest and the candidate information digest are different, it is determined that the target startup data and the target startup information do not match each other.

[0172] As an optional embodiment, after determining that the target startup data verification fails, the method further includes:

[0173] Controlling the target server to shut down, and generating a target notification message for indicating that the target startup data has been tampered with;

[0174] The target notification message is sent to a reference server used for maintaining the target server, wherein the reference server is used for maintaining the startup data of the target server according to the target notification message.

[0175] Optionally, in an embodiment of the present application, the reference server's startup data maintenance operation on the target server may include, but is not limited to, reconfiguring the startup data and re-obtaining the target authentication file obtained by authenticating the startup information of the startup data by the target account. This solution does not limit this.

[0176] Through the above content, after detecting that the target startup data on the server has been tampered with, the server is first shut down to avoid data theft caused by the server running in an incorrect operating environment, and then a target notification message is sent to the reference server to request startup data maintenance for the target server, so that the server can resume normal operation as soon as possible and improve the operating stability of the server.

[0177] Figure 5 is an optional server hardware connection diagram according to an embodiment of the present application, such as Figure 5 As shown in the figure, from the hardware perspective, the SPI bus of the CPU connects the BIOS and TPM, and the eSPI bus connects the BMC. From the software perspective, after the eSPI bus connection between the BIOS and the BMC is successful. Initialize the Host to bridge device under the BMC during enumeration, and then use the MMIO resources of the device for data interaction. In this solution, the root certificate of each area will be written into the BMC in advance. During the server startup phase, the BIOS can use MMIO to read the root certificate of each area written into the BMC; the BIOS and the TPM used SPI commands for data interaction before. In this solution, the public key of the root key will be written into the TPM in advance. During the server startup phase, the BIOS can use SPI commands to read the public key of the root key written into the TPM.

[0178] Figure 6 is an optional startup data verification flow chart according to an embodiment of the present application, such as Figure 6As shown, after booting, BIOS will read the root certificate of each encryption area from BMC. At the same time, BIOS will also read the root certificate of each encryption area (boot data) from its own chip NVRAM, and compare the root certificates of each encryption area read from BMC and BIOS NVRAM. If they are inconsistent, the root certificate of each encryption area read from BMC will be saved to BIOS NVRAM, that is, BMC has a higher priority than BIOS NVRAM. Saving to BIOS NVRAM is mainly to prevent the failure to communicate with BMC normally during the boot process, resulting in the failure to obtain the correct root certificate of each encryption area from BMC. When the communication with BMC fails, the root certificate of each encryption area can be captured from BIOS NVRAM.

[0179] Next, the BIOS will obtain the public keys of the root key and the secondary key from the trusted platform module TPM. Obtaining the public key from the TPM can ensure the authenticity and security of the public key. Use the public key of the root key to decrypt the root certificate of each encryption area and wait for the secondary certificate of each encryption area, and then continue to use the public key of the secondary key to decrypt the secondary certificate of each encryption area to obtain the Hash value of each encryption area. For example, the Hash value of area 1 is 1_A, the Hash value of area 2 is 2_A, the Hash value of area 3 is 3_A... and so on, the Hash value of area N is N_A. At the same time, before running the encryption area code, the BIOS calculates the Hash value of encryption area 1 as 1_B, the Hash value of area 2 is 2_B, the Hash value of area 3 is 3_B... and so on, the Hash value of area N is N_B. Compare the Hash values ​​of the same area, for example, compare 1_A and 1_B of area 1, and compare 2_A and 2_B of area 2. If the Hash values ​​are the same, the verification is passed and the encrypted area code is allowed to run. Otherwise, it is a verification failure and the verification failure log is recorded for users to view. At the same time, the server downtime mechanism is triggered to avoid a series of serious losses to users due to running codes tampered with by viruses or Trojans.

[0180] This application supports multiple sets of secondary certificates to adapt to different encryption areas selected by users, so as to meet the different customized package requirements of users. For example, the user customized 3 packages, and the application scenarios of each package are different, resulting in inconsistent encryption area combinations that users are concerned about. This solution provides a secondary certificate for each encryption area, for example, 1 to 10, a total of 10 encryption areas provide 10 secondary certificates. The user's package 1 requires encryption areas 1, 3, 5, 7, which are named secondary certificate combination 1; package 2 requires encryption areas 1, 2, 3, 4, 5, which are named secondary certificate combination 2; package 3 requires encryption areas 2, 4, 6, 8, which are named secondary certificate combination 3; different encryption area combinations are selected to form different secondary certificate combinations. This solution does not limit the number of secondary certificate combinations, and everything is configured based on customer needs. At the time of shipment, if the user orders package 1 this time, secondary certificate combination 1 will be written to the TPM. If the user orders package 2 this time, secondary certificate combination 2 will be written to the TPM. If the user orders package 3 this time, secondary certificate combination 3 will be written to the TPM.

[0181] The server secure boot method provided by the above embodiment can help the server detect and prevent the invasion of malware and viruses when starting. The advantage of the present invention is that it is an excellent security implementation solution, free from the restrictions of server processor chip manufacturers, and at the same time, it is customer-centric and ensures the security of the BIOS static area based on user requirements.

[0182] Getting rid of the restrictions of server processor chip manufacturers can achieve cross-platform solution unification, while also achieving code unification, saving development and testing manpower, and making it easier for users to understand and use.

[0183] With root and secondary encryption, security is enhanced while supporting customized encryption area combinations, so that users can use different areas of security encryption and verification for different packages. This solution meets the needs of customers for different package application scenarios and is easy to customize. It only needs to write different secondary key public key combinations into the TPM at the time of shipment, saving the release and self-test time of repeated versions of different packages.

[0184] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment 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 method. Based on this understanding, the technical solution of the present application, 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), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0185] In this embodiment, a server startup device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0186] Figure 7 1 is a structural block diagram of a server startup device according to an embodiment of the present application, which is applied to a basic input / output system. The basic input / output system and a trusted platform module are deployed on a target server. The basic input / output system is connected to the trusted platform module. Figure 7 As shown, the device comprises:

[0187] A receiving module, used for receiving a target request sent by a target account to start the target server;

[0188] a calling module, configured to call the target authentication information corresponding to the target account from the trusted platform module and call the target authentication file corresponding to the target account from the target server when it is determined that the target account has the calling authority to the target server, wherein the target authentication file is obtained by the target account using the target authentication method indicated by the target authentication information to encrypt and authenticate the startup information of the target server, and the startup information is used to indicate the startup data used for startup of the target server;

[0189] An authentication module, used to decrypt and authenticate the target authentication file using the target authentication method indicated by the target authentication information to obtain target startup information;

[0190] A verification module, used for performing data verification on the target startup data indicated by the target startup information;

[0191] The startup module is used to start the target server using the target startup data when the target startup data passes the verification.

[0192] Through the above content, a trusted platform module connected to a basic input and output system is deployed on a target server, the trusted platform module stores authentication information of an account with calling authority to the target server, and the target server also imports an authentication file obtained by encrypting the startup information using the authentication method indicated by the authentication information after the startup information of the target server is verified by the account using the authentication information, so that the data content of the startup data used by the target server to start is authenticated by the account using the server, and the authentication method for authenticating the startup data is mastered by the account using the server, and then after receiving a target request, the target authentication information of the target account is retrieved from the trusted platform module, and the target authentication file corresponding to the target account is retrieved from the server, and the target authentication file is decrypted and authenticated using the target authentication method indicated by the target authentication information, so as to obtain the startup information for verifying the target startup data, and realize running the server according to the startup data authenticated by the target account in advance using a private authentication method, avoiding the impact of the startup security of the server caused by the use of tampered startup data when the server starts, and ensuring the security of the server's operating environment. Therefore, the problem of low security of the server operating environment in the related technology can be solved, and the effect of improving the security of the server operating environment can be achieved.

[0193] Optionally, the calling module includes:

[0194] A first acquisition unit, configured to acquire a target service function of the target server requested to be called by the target request;

[0195] The retrieving unit is used to retrieve the target authentication information configured by the target account for the target business function from the trusted platform module.

[0196] Optionally, the calling unit is used to:

[0197] Determine one or more target startup data required to implement the target business function, wherein each target startup data records a startup method for a corresponding hardware device deployed on the target server;

[0198] The target authentication information of the target account corresponding to the target startup data is retrieved from the trusted platform module.

[0199] Optionally, the calling unit is used to:

[0200] Determine a target storage area corresponding to the target authentication information from the authentication information having a corresponding relationship and the storage area in the trusted platform module;

[0201] Sending a target acquisition request to the trusted platform module, wherein the target acquisition request is used to request to acquire the authentication information stored in the target storage area;

[0202] The target authentication information is received, which is returned by the trusted platform module in response to the target acquisition request.

[0203] Optionally, a central processing unit is further deployed on the target server mainboard, and the central processing unit is connected to the basic input and output system and the trusted platform module respectively through a serial peripheral device interface bus.

[0204] The calling unit is used for:

[0205] Generate target instructions in serial peripheral device interface protocol format;

[0206] The target instruction is sent to the central processing unit through the serial peripheral device interface bus, wherein the target instruction is used to instruct the central processing unit to send the target acquisition request in the serial peripheral device interface protocol format to the trusted platform module.

[0207] Optionally, the device further comprises:

[0208] an acquisition module, used for acquiring a target authorization value stored in the basic input / output system before sending the target acquisition request to the trusted platform module, wherein the target authorization value is used to indicate the access right of the basic input / output system to the trusted platform module;

[0209] The sending module is used to send a permission verification request carrying the target authorization value to the trusted platform module, wherein the permission verification request is used to request the trusted platform module to verify the data access rights of the basic input and output system based on the target authorization value.

[0210] Optionally, the calling module includes:

[0211] A second acquisition unit, configured to acquire a target service function of the target server requested to be called by the target request;

[0212] A screening unit is used to screen out one or more target authentication files corresponding to the target business function from multiple reference authentication files stored in the server, wherein each of the reference authentication files is obtained by encrypting reference startup information for the target account, and the reference startup information is used to indicate the data content recorded in the reference startup data used to start the target server, and each of the reference startup data records the startup method of the corresponding hardware device deployed on the target server.

[0213] Optionally, a baseboard management controller is deployed on the target server mainboard, and the baseboard management controller is connected to the basic input and output system.

[0214] The screening unit is used for:

[0215] Filtering out a target authentication file corresponding to the target account calling the target business function from accounts, business functions and authentication files having corresponding relationships;

[0216] Determining a target storage location for storing the target authentication file from a plurality of storage locations of the baseboard management controller, wherein the storage location in the baseboard management controller and the reference authentication file have a meaningful corresponding relationship;

[0217] The target authentication file is extracted from the target storage location.

[0218] Optionally, the screening unit is used to:

[0219] Acquire a memory mapping table of the baseboard management controller, wherein the memory mapping table is used to indicate the memory space allocation status of the baseboard management controller;

[0220] The target storage location for storing the target authentication file in the memory of the baseboard management controller is searched from the memory mapping table.

[0221] Optionally, the device further comprises:

[0222] A receiving module, used for receiving the reference authentication file sent by a reference server before acquiring the memory mapping table of the trusted platform module, wherein the reference server is a server for maintaining the running status of the target server;

[0223] A first screening module, configured to screen out reference storage locations in an unoccupied state from the content space of the baseboard management controller;

[0224] An updating module is used to store the reference authentication file in the reference storage location, and update the corresponding relationship between the reference storage location and the reference authentication file into the memory mapping table.

[0225] Optionally, the authentication module includes:

[0226] A conversion unit, used to convert a decryption key corresponding to the target authentication file according to the target authentication information;

[0227] The decryption unit is used to decrypt the target authentication file using the decryption key to obtain the target startup information.

[0228] Optionally, the decryption unit is used to:

[0229] Decrypting the target authentication file using the account public key of the target account to obtain a candidate authentication file, wherein the target authentication file is obtained by encrypting the candidate authentication file by the target account using the account private key corresponding to the account public key, and the decryption key includes the account public key;

[0230] Obtaining a server public key of a reference server for the candidate authentication file from the trusted platform module, wherein the reference server is a server used to maintain the running status of the target server, and the reference server is used to encrypt the target startup information using a server private key corresponding to the server public key, and send the encrypted candidate authentication file to the target account for authentication;

[0231] The candidate authentication file is decrypted using the server public key to obtain the target startup information.

[0232] Optionally, the conversion unit is used to perform one of the following operations:

[0233] In a case where the target authentication information is an account public key of the target account, determining the account public key as the decryption key;

[0234] When the target authentication information is information indicating a target encryption method used by the target account for the target authentication file, a decryption method corresponding to the target encryption method is determined; and the decryption key for decrypting the target authentication file is generated according to the decryption method.

[0235] Optionally, the device further comprises:

[0236] A first detection module, configured to detect the communication state between the baseboard management controller and the basic input and output system before filtering out the target authentication file corresponding to the target account calling the target business function from the accounts, business functions and authentication files having corresponding relationships;

[0237] A second screening module is used to screen out the target authentication file corresponding to the target business function from multiple initial authentication files stored in a cache area corresponding to the basic input / output system when the communication status indicates that the basic input / output system is in a disconnected state, wherein the multiple initial authentication files are authentication files used by the basic input / output system to start the target server for the target account within a reference time period before the current moment.

[0238] Optionally, the device further comprises:

[0239] A second detection module is used for, after screening out the target authentication file corresponding to the target business function from the multiple initial authentication files stored in the cache area corresponding to the basic input and output system, extracting the multiple reference authentication files stored in the baseboard management controller in the case where the restored communication between the basic input and output system and the baseboard management controller is detected;

[0240] An updating module is used to update the initial authentication file using the reference authentication file.

[0241] Optionally, the verification module includes:

[0242] A matching unit, used for matching the target startup information with the target startup data in the target server;

[0243] A first determining unit, configured to determine that the target startup data verification passes when the target startup information and the target startup data match each other;

[0244] The second determining unit determines that the target startup data verification fails when the target startup information and the target startup data do not match each other.

[0245] Optionally, the matching unit is used to:

[0246] Calculating the target startup data using an information digest algorithm to obtain a candidate information digest, wherein the candidate information digest is used to indicate data content carried by the target startup data;

[0247] matching the candidate information digest with the target information digest, wherein the target startup information includes the target information digest;

[0248] When the target information digest and the candidate information digest are the same, determining that the target startup data and the target startup information match each other;

[0249] When the target information digest and the candidate information digest are different, it is determined that the target startup data and the target startup information do not match each other.

[0250] Optionally, the device further comprises:

[0251] a processing module, configured to, after determining that the target startup data verification fails, control the target server to shut down, and generate a target notification message indicating that the target startup data has been tampered with;

[0252] A sending module is used to send the target notification message to a reference server used to maintain the target server, wherein the reference server is used to maintain the startup data of the target server according to the target notification message.

[0253] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0254] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0255] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0256] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0257] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0258] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0259] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0260] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0261] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0262] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0263] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for starting a server, characterized in that: Applied to a basic input / output system, the basic input / output system and a trusted platform module are deployed on a target server, the basic input / output system is connected to the trusted platform module, and the method includes: Receiving a target request sent by a target account to start the target server; In the case where it is determined that the target account has the calling authority to the target server, the target authentication information corresponding to the target account is retrieved from the trusted platform module, and the target authentication file corresponding to the target account is retrieved from the target server, wherein the target authentication file is obtained by the target account using the target authentication method indicated by the target authentication information to encrypt and authenticate the startup information of the target server, and the startup information is used to indicate the startup data used for startup of the target server; Decrypting and authenticating the target authentication file using the target authentication method indicated by the target authentication information to obtain target startup information; Performing data verification on the target startup data indicated by the target startup information; In the case where the target startup data passes the verification, starting the target server using the target startup data; The step of decrypting and authenticating the target authentication file using the target authentication method indicated by the target authentication information to obtain the target startup information includes: converting a decryption key corresponding to the target authentication file according to the target authentication information; and decrypting the target authentication file using the decryption key to obtain the target startup information. The decryption key is used to decrypt the target authentication file to obtain the target startup information, including: using the account public key of the target account to decrypt the target authentication file to obtain a candidate authentication file, wherein the target authentication file is obtained by the target account using the account private key corresponding to the account public key to encrypt the candidate authentication file, and the decryption key includes the account public key; obtaining a server public key of the candidate authentication file from the trusted platform module, wherein the reference server is a server for maintaining the running status of the target server, and the reference server is used to encrypt the target startup information using the server private key corresponding to the server public key, and send the encrypted candidate authentication file to the target account for authentication; using the server public key to decrypt the candidate authentication file to obtain the target startup information.

2. The method according to claim 1, characterized in that The step of retrieving target authentication information corresponding to the target account from the trusted platform module includes: Obtaining a target service function of the target server requested to be called by the target request; The target authentication information configured by the target account for the target business function is retrieved from the trusted platform module.

3. The method according to claim 2, characterized in that The step of retrieving from the trusted platform module the target authentication information configured by the target account for the target business function, comprising: Determine one or more target startup data required to implement the target business function, wherein each target startup data records a startup method for a corresponding hardware device deployed on the target server; The target authentication information of the target account corresponding to the target startup data is retrieved from the trusted platform module.

4. The method according to claim 3, characterized in that The step of retrieving the target authentication information of the target account corresponding to the target startup data from the trusted platform module includes: Determine a target storage area corresponding to the target authentication information from the authentication information having a corresponding relationship and the storage area in the trusted platform module; Sending a target acquisition request to the trusted platform module, wherein the target acquisition request is used to request to acquire the authentication information stored in the target storage area; The target authentication information is received, which is returned by the trusted platform module in response to the target acquisition request.

5. The method according to claim 4, characterized in that The target server is also equipped with a central processing unit, which is connected to the basic input and output system and the trusted platform module through a serial peripheral device interface bus. The sending a target acquisition request to the trusted platform module includes: Generate target instructions in serial peripheral device interface protocol format; The target instruction is sent to the central processing unit through the serial peripheral device interface bus, wherein the target instruction is used to instruct the central processing unit to send the target acquisition request in the serial peripheral device interface protocol format to the trusted platform module.

6. The method according to claim 1, characterized in that The step of retrieving the target authentication file corresponding to the target account from the target server includes: Obtaining a target service function of the target server requested to be called by the target request; One or more target authentication files corresponding to the target business function are screened out from multiple reference authentication files stored in the server, wherein each reference authentication file is obtained by encrypting reference startup information for the target account, and the reference startup information is used to indicate the data content recorded in the reference startup data used to start the target server, and each reference startup data records the startup method of the corresponding hardware device deployed on the target server.

7. The method according to claim 6, characterized in that A baseboard management controller is deployed on the target server, and the baseboard management controller is connected to the basic input and output system. The step of selecting the one or more target authentication files corresponding to the target business function from the multiple reference authentication files stored in the server includes: Filtering out a target authentication file corresponding to the target account calling the target business function from accounts, business functions and authentication files having corresponding relationships; Determining a target storage location for storing the target authentication file from a plurality of storage locations of the baseboard management controller, wherein the storage location in the baseboard management controller and the reference authentication file have a meaningful corresponding relationship; The target authentication file is extracted from the target storage location.

8. The method according to claim 7, characterized in that The step of determining a target storage location for storing the target authentication file from a plurality of storage locations of the baseboard management controller includes: Acquire a memory mapping table of the baseboard management controller, wherein the memory mapping table is used to indicate the memory space allocation status of the baseboard management controller; The target storage location for storing the target authentication file in the memory of the baseboard management controller is searched from the memory mapping table.

9. The method according to claim 8, characterized in that Before obtaining the memory mapping table of the trusted platform module, the method further includes: Receiving the reference authentication file sent by a reference server, wherein the reference server is a server used to maintain the running status of the target server; Filtering out reference storage locations in an unoccupied state from the content space of the baseboard management controller; The reference authentication file is stored in the reference storage location, and the corresponding relationship between the reference storage location and the reference authentication file is updated in the memory mapping table.

10. The method according to claim 1, characterized in that The converting the decryption key corresponding to the target authentication file according to the target authentication information includes one of the following: In a case where the target authentication information is an account public key of the target account, determining the account public key as the decryption key; When the target authentication information is information indicating a target encryption method used by the target account for the target authentication file, a decryption method corresponding to the target encryption method is determined; and the decryption key for decrypting the target authentication file is generated according to the decryption method.

11. The method according to claim 7, characterized in that Before selecting the target authentication file corresponding to the target account calling the target business function from the accounts, business functions and authentication files having corresponding relationships, the method further includes: detecting a communication status between the baseboard management controller and the basic input and output system; In a case where the communication status is used to indicate that the basic input / output system is in a disconnected state, the target authentication file corresponding to the target business function is screened out from a plurality of initial authentication files stored in a cache area corresponding to the basic input / output system, wherein the plurality of initial authentication files are authentication files used by the basic input / output system to start the target server for the target account within a reference time period before a current moment.

12. The method according to claim 11, characterized in that After selecting the target authentication file corresponding to the target business function from the multiple initial authentication files stored in the buffer area corresponding to the basic input and output system, the method further includes: extracting the plurality of reference authentication files stored in the baseboard management controller in the case where the restored communication between the basic input and output system and the baseboard management controller is detected; The initial authentication file is updated using the reference authentication file.

13. The method according to claim 1, characterized in that The performing data verification on the target startup data indicated by the target startup information includes: Matching the target startup information with the target startup data in the target server; In a case where the target startup information and the target startup data match each other, determining that the target startup data verification passes; When the target startup information and the target startup data do not match each other, it is determined that the target startup data verification fails.

14. The method according to claim 13, characterized in that The matching of the target startup information with the target startup data in the target server includes: Calculating the target startup data using an information digest algorithm to obtain a candidate information digest, wherein the candidate information digest is used to indicate data content carried by the target startup data; matching the candidate information digest with the target information digest, wherein the target startup information includes the target information digest; When the target information digest and the candidate information digest are the same, determining that the target startup data and the target startup information match each other; When the target information digest and the candidate information digest are different, it is determined that the target startup data and the target startup information do not match each other.

15. A server startup device, characterized in that: Applied to a basic input / output system, the basic input / output system and a trusted platform module are deployed on a target server, the basic input / output system is connected to the trusted platform module, and the device comprises: A receiving module, used for receiving a target request sent by a target account to start the target server; a calling module, configured to call the target authentication information corresponding to the target account from the trusted platform module and call the target authentication file corresponding to the target account from the target server when it is determined that the target account has the calling authority to the target server, wherein the target authentication file is obtained by the target account using the target authentication method indicated by the target authentication information to encrypt and authenticate the startup information of the target server, and the startup information is used to indicate the startup data used for startup of the target server; An authentication module, used to decrypt and authenticate the target authentication file using the target authentication method indicated by the target authentication information to obtain target startup information; A verification module, used for performing data verification on the target startup data indicated by the target startup information; A startup module, used to start the target server using the target startup data if the target startup data passes the verification; The authentication module includes: a conversion unit, used to convert a decryption key corresponding to the target authentication file according to the target authentication information; a decryption unit, used to decrypt the target authentication file using the decryption key to obtain the target startup information; The decryption unit is used to: use the account public key of the target account to decrypt the target authentication file to obtain a candidate authentication file, wherein the target authentication file is obtained by the target account using the account private key corresponding to the account public key to encrypt the candidate authentication file, and the decryption key includes the account public key; obtain the server public key of the reference server for the candidate authentication file from the trusted platform module, wherein the reference server is a server for maintaining the running status of the target server, and the reference server is used to encrypt the target startup information using the server private key corresponding to the server public key, and send the encrypted candidate authentication file to the target account for authentication; use the server public key to decrypt the candidate authentication file to obtain the target startup information.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 14 when executed by a processor.

17. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 14 are implemented.

18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 14 are implemented.

Citation Information

Patent Citations

  • BIOS verification method, configuration method, equipment and system

    CN110245495A

  • Safety PXE method based on domestic network platform

    CN110610091A

  • Remote management method and device based on active measurement

    CN110929263A

  • Method and device for trusted measurement of multi-path server and computer equipment

    CN114048484A