Method, device, equipment and medium for obtaining secret key online to realize safe starting of system

Through the method of obtaining keys online, the automatic deployment and compilation signature of the secure boot trust chain and certificates are performed, which solves the threat of control system tampering in intelligent connected vehicles, and realizes safe startup of the vehicle control system and improved key management security.

CN118631471APending Publication Date: 2024-09-10DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410893350.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

In intelligent connected cars, unauthorized personnel can tamper with the control system files in the vehicle controller in a physical non-contact scenario, threatening the lives of drivers and passengers. How to achieve safe startup of the vehicle control system has become an urgent problem that needs to be solved. .

Method used

The system secure startup method is achieved by obtaining the key online, including executing the secure boot trust chain after the system is powered on, automatically deploying the server to generate and upload the certificate to the cloud, setting environment variables at compile time, and implementing the compilation and signing of the certificate based on the automated deployment server. , to ensure the safe startup of the control system in the vehicle.

Benefits of technology

It realizes the safe acquisition and safe compilation of the keys and certificates required for the safe start of the control system in the vehicle, improves the security of safe start key management, and ensures the safe operation of the vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631471A
    Figure CN118631471A
Patent Text Reader

Abstract

The invention discloses a method, a device, equipment and a medium for realizing safe starting of a system by acquiring a secret key online, and relates to the technical field of vehicle safety, and the method comprises the following steps: after the system is electrified, executing a safe guiding trust chain, and carrying out safe starting of the system; compiling a certificate required to be used according to the system, generating the certificate by the automatic deployment server, uploading the generated certificate to a cloud end, and storing the certificate in a production environment of the cloud end; environment variables are set during compiling, and certificate compiling and signature are achieved based on an automatic deployment server. According to the method and the device, safe acquisition and safe compiling of the key and the certificate required by safe starting of the control system in the vehicle can be realized, so that safe starting of the control system is realized, the related key and the certificate can be safely acquired to complete signature of the mirror image, and the safety of safe starting key management is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle safety technology, and in particular to a method, device, equipment and medium for obtaining a key online to realize system security startup. Background Art

[0002] With the popularization of intelligent connected vehicles, vehicle information security has received increasing attention. Unauthorized personnel can tamper with the corresponding control system files in the vehicle controller without physically contacting the vehicle, thereby affecting the vehicle's driving and threatening the lives of the driver and passengers.

[0003] Secure boot is a startup sequence that ensures that the device only executes authorized software. Therefore, in order to ensure the safe use of car networking, how to achieve secure boot of the control system in the vehicle has become an urgent problem that needs to be solved. Summary of the invention

[0004] The present application provides a method, apparatus, device and medium for obtaining keys online to realize system secure startup, which can realize the secure acquisition and secure compilation of keys and certificates required for the secure startup of the control system in the vehicle, thereby realizing the secure startup of the control system, and can securely obtain relevant keys and certificates to complete the signature of the image, thereby improving the security of secure startup key management.

[0005] In a first aspect, an embodiment of the present application provides a method for obtaining a key online to realize system security startup, and the method for obtaining a key online to realize system security startup includes:

[0006] After the system is powered on, the secure boot trust chain is executed to start the system securely;

[0007] According to the certificates required for system compilation, the server is automatically deployed to generate certificates and upload the generated certificates to the cloud, and then save them in the production environment on the cloud;

[0008] Set environment variables at compile time and implement certificate compilation and signing based on the automated deployment server.

[0009] In combination with the first aspect, in one implementation, after the system is powered on, executing the secure boot trust chain to securely start the system specifically includes:

[0010] The system is powered on, PBL is loaded, PBL verifies XBL and XBL SEC through the secure boot certificate, and loads XBL;

[0011] XBL verifies and starts AOP, QTEE and MIFS;

[0012] HYP loads IFS2, IFS2 loads the QNX system image, and the QNX host authenticates and loads the GuestVM through AVB.

[0013] In combination with the first aspect, in one implementation,

[0014] The certificates required for system compilation include secure boot certificate, QNX QTD certificate, AVB certificate and Android APK signing certificate;

[0015] The secure boot certificate and QNX QTD certificate are both self-generated keys;

[0016] The public key of the AVB key in the AVB certificate is written into the QNX source code. The AVB key is the key used by the QNX host to verify the Android VM.

[0017] The Android APK signature certificate is used to determine the type and permissions of each APP.

[0018] In combination with the first aspect, in one implementation, the automated deployment server generates a certificate and uploads the generated certificate to the cloud, and saves it in a production environment on the cloud, specifically including:

[0019] Generate the certificate required for system compilation based on the Jenkins Job on the Jenkins server, upload the generated certificate to the cloud, and delete the certificate on the Jenkins server;

[0020] Save the certificate uploaded to the cloud to the prod environment of the cloud and limit the IP address that can access the certificate.

[0021] In combination with the first aspect, in one implementation, the setting of environment variables at compile time and implementing the compilation and signing of the certificate based on the automated deployment server specifically includes:

[0022] The Jenkins server downloads the source code from the Git server and the certificate from the cloud;

[0023] Set environment variables, including secure boot, user build, and Android resign.

[0024] Compile and sign the certificate, obtain the flash package and OTA package, and delete the local certificate of the Jenkins server;

[0025] Upload the obtained flash package and OTA package to the artifactory server.

[0026] In combination with the first aspect, in one implementation, the method for obtaining keys online to achieve system secure startup also includes signing a secure boot certificate, a QNX QTD certificate, an AVB certificate, and an Android APK signature certificate in the cloud.

[0027] In combination with the first aspect, in one implementation,

[0028] To sign the secure boot certificate in the cloud, deploy the sectools tool to the cloud and upload the SA8155 image to the cloud.

[0029] To sign the QNX QTD certificate in the cloud, upload system_la.img to the cloud, save the QTD public key locally in the compilation system, and deploy the QTD signing tool in the cloud;

[0030] To sign the Android APK signature certificate in the cloud, specifically, save the public key locally in the build system, upload the APK to the cloud for signing, and deploy the Android App signing system in the cloud;

[0031] To sign the AVB certificate in the cloud, specifically, save the AVB public key locally in the compilation system, upload the image to the cloud to generate the vbmeta image, and deploy the AVB signature in the cloud.

[0032] In a second aspect, an embodiment of the present application provides a device for obtaining a key online to implement a system security startup, and the device for obtaining a key online to implement a system security startup includes:

[0033] An execution module, which is used to execute the secure boot trust chain and perform secure startup of the system after the system is powered on;

[0034] The generation module is used to drive the automated deployment server to generate certificates based on the certificates required for system compilation, upload the generated certificates to the cloud, and save them in the production environment on the cloud;

[0035] The compilation module is used to set environment variables at compile time and implement certificate compilation and signing based on the automated deployment server.

[0036] In a third aspect, an embodiment of the present application provides a device for obtaining a key online to implement a system security boot, wherein the device for obtaining a key online to implement a system security boot comprises a processor, a memory, and an online key obtaining system security boot program stored in the memory and executable by the processor, wherein when the online key obtaining system security boot program is executed by the processor, the steps of the above-mentioned method for obtaining a key online to implement a system security boot are implemented.

[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which is stored a program for obtaining keys online to implement system security startup. When the program for obtaining keys online to implement system security startup is executed by a processor, the steps of the above-mentioned method for obtaining keys online to implement system security startup are implemented.

[0038] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:

[0039] After the system is powered on, the secure boot trust chain is executed to perform secure boot of the system. Then, based on the certificate required for system compilation, the automated deployment server generates the certificate and uploads the generated certificate to the cloud and saves it in the cloud production environment. The compilation environment variables are then set. The compilation and signing of the certificate are implemented based on the automated deployment server. This enables secure acquisition and secure compilation of the keys and certificates required for secure boot of the control system in the vehicle, thereby achieving secure boot of the control system. The relevant keys and certificates can be securely obtained to complete the signing of the image, improving the security of secure boot key management. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A flowchart of a method for obtaining a key online to implement system security startup for this application;

[0041] Figure 2 Schematic diagram of the functional modules of the device for obtaining the key online to realize the system security startup for this application;

[0042] Figure 3 Schematic diagram of the hardware structure of the device for obtaining the key online to implement system security boot for this application. DETAILED DESCRIPTION

[0043] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0044] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0045] In a first aspect, an embodiment of the present application provides a method for obtaining keys online to achieve system security startup, which can achieve the secure acquisition and secure compilation of keys and certificates required for the secure startup of a control system in a vehicle, thereby achieving the secure startup of the control system.

[0046] In one embodiment, referring to Figure 1 , Figure 1 The flowchart of the method for obtaining the key online to realize the system security startup is shown in the figure. Figure 1 As shown, the method for obtaining the key online to realize system security startup includes:

[0047] S1: After the system is powered on, the secure boot trust chain is executed to start the system securely.

[0048] Further, in one embodiment, after the system is powered on, a secure boot trust chain is executed to perform a secure boot of the system, specifically including:

[0049] S101: The system is powered on and the PBL (Primary Boot Loader) is loaded. The PBL verifies the XBL (Extensible boot loader) and XBL SEC (security verification) through the secure boot certificate and loads the XBL.

[0050] S102: XBL verifies and starts AOP (Always on Processor), QTEE (Qualcomm Trusted Execution Environment), and MIFS (Main Image File System QNX hypervisor boot);

[0051] S103: HYP (hypervisor, a virtualization product) loads IFS2 (SHA256 hash of IFS2 is stored in HYP image), IFS2 loads QNX system image, QNX host verifies and loads Guest VM (a virtual machine) through AVB (Android Verified Boot, a security feature on Android platform). QNX is an operating system, QNX system image is QNX system file, QNX host is QNX main program,

[0052] S2: According to the certificates required for system compilation, the server is automatically deployed to generate certificates and upload the generated certificates to the cloud, and then save them in the production environment on the cloud.

[0053] It should be noted that the compilation of the system requires the use of four certificates, namely the secure boot certificate (secure boot certificate), QNX QTD certificate (QNX secure storage certificate), AVB certificate and Android APK signing certificate (Android application package signing certificate).

[0054] For the secure boot certificate, it is a self-generated key, including the following certificates: qpsa_attestca.cer, qpsa_attestca.key, qpsa_rootca.cer, qpsa_rootca.key, sec.elfs, among which qpsa_attestca.cer, qpsa_attestca.key and qpsa_rootca are used to compile the system to securely sign the flash image. The sec.elfs file is a FUSE file generated according to qpsa_rootca.cer. This file will be written to the secdata partition of SA8155. Secdata can only be flashed once and cannot be changed.

[0055] For the QNX QTD certificate, it is a self-generated key. The mkqfs provided by QNX uses system_private_key.pem to sign the system image, and the system_public_key.pem will be packaged into the SA8155IFS2 image, so that IFS2 can verify it when mounting system QTD. The system_private_key.pem needs to be kept properly, and the system_public_key.pem will be packaged into ifs2_la.img.

[0056] For AVB certificates, the public key of AVB key in AVB certificates is written into QNX source code. AVB key is the key used by QNX host to verify Android VM, including avb_private.pem and qvb oempk.h. avb_private.pem is used to generate vbmeta when compiling Android images. In this way, QNX can verify Android images through pre-made AVB public key. avb_private.pem needs to be kept properly.

[0057] For Android APK signature certificate, Android APK signature certificate is used to determine the type and permissions of each APP (application). The Android system confirms the type and permissions of each APP by signing the APP. Currently, there are several types of APPs on Android, such as media, platform, shared, releasekey, networkstack, etc. Correspondingly, a set of corresponding APP signature certificate files needs to be generated for each project.

[0058] To ensure certificate security, certificates cannot be generated on the local machine. They need to be generated on the Jenkins server (an automated deployment server) and uploaded directly to the cloud. At the same time, the certificate file generated on the Jenkins server must be deleted. During the entire process, no manual intervention or interruption is ensured, and certificates are generated and uploaded to the cloud server through a Jenkins Job (a task or project).

[0059] Specifically, in this application, the automated deployment server generates certificates and uploads the generated certificates to the cloud, and saves them in the cloud production environment, specifically including:

[0060] S201: Generate the certificate required for system compilation based on the Jenkins Job on the Jenkins server, upload the generated certificate to the cloud, and delete the certificate on the Jenkins server;

[0061] S202: Save the certificate uploaded to the cloud to the prod environment (production environment) of the cloud, and limit the IP address that can access the certificate. For mass production projects, the certificate cannot be saved in the git repository or artifactory (a multi-functional project development and management tool), and the certificate needs to be saved in the prod environment of the cloud. In the cloud environment, you can limit access to the certificate to only specific IP addresses.

[0062] S3: Set environment variables at compile time and implement certificate compilation and signing based on the automated deployment server.

[0063] During the development and debugging process, there is no need to enable secure boot. You can use the system default signature and key to sign each image (file). After mass production, secure boot needs to be enabled, and the system default QNX QTD certificate, AVB certificate, and Android APK signing certificate need to be replaced.

[0064] To support the above two requirements, the compilation system needs to be modified. By setting environment variables during compilation, you can "turn on" or "turn off" secure boot, user / debug build, APK signature, etc.

[0065] For mass-produced equipment, the security of the certificates and keys of the compilation system must be guaranteed, and uniqueness and security must be considered. For uniqueness, a project uses the same set of certificates, and a set of certificates means that the project uses the same fuse file for burning. This fuse file corresponds to a signed version of the later FOTA. For ease of management, different part numbers in the same project use the same fuse file (for example: C385 has DF03 / DF04 / DF07 parts that all use the same fuse). Different projects cannot use the same certificate and key, and the certificate cannot be changed during the OTA upgrade process.

[0066] For security, the compilation and signing of the mass production version must be performed on a specific machine. The key and Cert generation process needs to be jointly witnessed by the heads of quality, R&D, and IT, and deployed to a secure cloud environment without interruption or interference; the entire process needs to be recorded and stored in a secure cloud environment; after the deployment is completed, the three parties must sign and confirm, and the signature scans and witness videos must be archived by IT to the corresponding Google Drive, and the original files must be handed over to the quality compliance department for storage. Once the deployment is completed, the storage environment can only be accessed from the protected Jenkins server, and no one else can access it. The compiled and signed Jenkins server can also only be accessed by DevOps.

[0067] Further, in one embodiment, the environment variables are set at compile time, and the compilation and signing of the certificate are implemented based on the automated deployment server, specifically including:

[0068] S301: The Jenkins server downloads source code from the Git (an open source distributed version control system) server and downloads the certificate from the cloud;

[0069] S302: Setting environment variables, wherein the set environment variables include secure boot, user build (compiling user version software), and Android resign (Android re-signing);

[0070] S303: Compile and sign the certificate, obtain the flash package and OTA (Over-the-Air Technology) package, and delete the local certificate of the Jenkins server;

[0071] S304: Upload the obtained flash package and OTA package to the artifactory (a multi-functional project development and management tool) server.

[0072] The Jenkins server downloads the private key from the KMS certificate server through TLS for code compilation; the Jenkins server obtains the complete code that needs to be compiled from the code environment and signs it with the necessary information.

[0073] It should be noted that, from a security perspective, it is unsafe to download private keys and certificates from the cloud on the Jenkins server for secure boot signing, so the possibility of signing in the cloud needs to be considered. That is, the online key acquisition method for implementing system secure boot in this application also includes signing secure boot certificates, QNX QTD certificates, AVB certificates, and Android APK signing certificates in the cloud.

[0074] For signing the secure boot certificate in the cloud, specifically, deploy the sectools tool (a security tool) to the cloud, and upload the SA8155 (a SoC chip built for car entertainment systems) image to the cloud.

[0075] Secure boot signature requires Qualcomm's sectools. If you want to do secboot signature in the cloud, you need to deploy Qualcomm sectool to the cloud, compile the system to modify the packaging script, upload the SA8155 image to the cloud for signature during the compilation process, and download it after the signature is completed. The size of the transmitted image is less than 300MB QTD cloud signature.

[0076] To sign the QNX QTD certificate in the cloud, specifically, upload system_la.img (system image) to the cloud, save the QTD public key locally in the compilation system, and deploy the QTD signing tool in the cloud;

[0077] Sign the QNX QTD certificate in the cloud. Modify the compilation script in the compilation system. Upload system_la.img to the cloud for signature during the compilation process. The size of system_la.img exceeds 1G. The QTD public key needs to be saved locally in the compilation system. Deploy the QTD signature tool in the cloud. The QTD signature tool comes from QNX's mkmerklefs and mkqfs. Therefore, the entire QNX SDK needs to be deployed in the cloud.

[0078] To sign the Android APK signature certificate in the cloud, specifically, save the public key locally in the compilation system, upload the APK (Android application package) to the cloud for signing, and deploy the Android App signing system in the cloud.

[0079] To sign the AVB certificate in the cloud, specifically, save the AVB public key locally in the compilation system, upload the image to the cloud to produce the vbmeta image (i.e., vbmeta.img image), and deploy the AVB signature in the cloud.

[0080] The online key acquisition method of the embodiment of the present application realizes the system secure startup. After the system is powered on, the secure boot trust chain is executed to perform the secure startup of the system. Then, according to the certificate required for system compilation, the automated deployment server generates the certificate and uploads the generated certificate to the cloud, and saves it in the production environment on the cloud. Then, the compilation environment variables are set, and the compilation and signing of the certificate are realized based on the automated deployment server. The secure acquisition and secure compilation of the keys and certificates required for the secure startup of the control system in the vehicle can be realized, thereby realizing the secure startup of the control system. The relevant keys and certificates can be securely obtained to complete the signing of the image, thereby improving the security of secure startup key management.

[0081] In a second aspect, an embodiment of the present application also provides a device for obtaining a key online to implement system security startup.

[0082] In one embodiment, referring to Figure 2 , Figure 2 A schematic diagram of the functional modules of the device for obtaining the key online to realize the system security startup for this application. Figure 2 As shown, the device for obtaining a key online to realize system security startup includes an execution module, a generation module and a compilation module.

[0083] The execution module is used to execute the secure boot trust chain and perform secure boot of the system after the system is powered on; the generation module is used to drive the automated deployment server to generate certificates based on the certificates required for system compilation, upload the generated certificates to the cloud, and save them in the cloud production environment; the compilation module is used to set environment variables during compilation, and implement certificate compilation and signing based on the automated deployment server. It can achieve secure acquisition and secure compilation of the keys and certificates required for the secure boot of the control system in the vehicle, thereby achieving secure boot of the control system, and can securely obtain relevant keys and certificates to complete the signing of the image, improving the security of secure boot key management.

[0084] Among them, the functional implementation of each module in the above-mentioned online key acquisition system security startup device corresponds to the various steps in the above-mentioned online key acquisition system security startup method embodiment, and its functions and implementation processes are no longer repeated here one by one.

[0085] In a third aspect, an embodiment of the present application provides a device for obtaining a key online to implement a system security boot. The device for obtaining a key online to implement a system security boot may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0086] Reference Figure 3 , Figure 3 The hardware structure diagram of the device for obtaining a key online to realize a system security boot involved in the embodiment of the present application is shown in FIG. In the embodiment of the present application, the device for obtaining a key online to realize a system security boot may include a processor, a memory, a communication interface, and a communication bus.

[0087] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0088] The communication interface includes an input / output (I / O) interface, a physical interface, and a logical interface, etc., which are used to realize the interconnection of devices inside the online key acquisition system security boot device, and the interface used to realize the interconnection of the online key acquisition system security boot device with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display (Display), a keyboard (Keyboard), etc.

[0089] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0090] The processor may be a general-purpose processor, and the general-purpose processor may call the online key acquisition system security boot program stored in the memory, and execute the online key acquisition system security boot method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). Among them, the method executed when the online key acquisition system security boot program is called can refer to the various embodiments of the online key acquisition system security boot method of the present application, which will not be repeated here.

[0091] Those skilled in the art will understand that Figure 3 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0092] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.

[0093] The computer-readable storage medium of the present application stores a program for obtaining a key online to achieve system security startup. When the program for obtaining a key online to achieve system security startup is executed by a processor, the steps of the method for obtaining a key online to achieve system security startup as described above are implemented.

[0094] Among them, the method implemented when the online key acquisition system security startup program is executed can refer to the various embodiments of the method for online key acquisition system security startup of this application, and will not be repeated here.

[0095] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0096] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0097] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0098] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0099] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0100] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially 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, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

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

Claims

1. A method for obtaining a key online to realize system security startup, characterized in that: The method for obtaining a key online to realize system security startup includes: After the system is powered on, the secure boot trust chain is executed to start the system securely; According to the certificates required for system compilation, the server is automatically deployed to generate certificates and upload the generated certificates to the cloud, and then save them in the production environment on the cloud; Set environment variables at compile time and implement certificate compilation and signing based on the automated deployment server.

2. A method for obtaining a key online to realize system security startup as claimed in claim 1, characterized in that: After the system is powered on, the secure boot trust chain is executed to perform a secure boot of the system, specifically including: The system is powered on, PBL is loaded, PBL verifies XBL and XBL SEC through the secure boot certificate, and loads XBL; XBL verifies and starts AOP, QTEE and MIFS; HYP loads IFS2, IFS2 loads the QNX system image, and the QNX host authenticates and loads the Guest VM through AVB.

3. A method for obtaining a key online to realize system security startup as claimed in claim 1, characterized in that: The certificates required for system compilation include secure boot certificate, QNX QTD certificate, AVB certificate and Android APK signing certificate; The secure boot certificate and QNX QTD certificate are both self-generated keys; The public key of the AVB key in the AVB certificate is written into the QNX source code. The AVB key is the key used by the QNX host to verify the Android VM. The Android APK signature certificate is used to determine the type and permissions of each APP.

4. A method for obtaining a key online to realize system security startup as claimed in claim 1, characterized in that: The automated deployment server generates a certificate and uploads the generated certificate to the cloud, and saves it to the production environment in the cloud, specifically including: Generate the certificate required for system compilation based on the Jenkins Job on the Jenkins server, upload the generated certificate to the cloud, and delete the certificate on the Jenkins server; Save the certificate uploaded to the cloud to the prod environment of the cloud and limit the IP address that can access the certificate.

5. A method for obtaining a key online to realize system security startup as claimed in claim 4, characterized in that: The environment variable setting during compilation implements the compilation and signing of the certificate based on the automated deployment server, specifically including: The Jenkins server downloads the source code from the Git server and the certificate from the cloud; Set environment variables, including secure boot, user build, and Androidresign; Compile and sign the certificate, obtain the flash package and OTA package, and delete the local certificate of the Jenkins server; Upload the obtained flash package and OTA package to the artifactory server.

6. A method for obtaining a key online to realize system security startup as claimed in claim 3, characterized in that: The method for obtaining keys online to achieve system secure startup also includes signing a secure boot certificate, a QNX QTD certificate, an AVB certificate, and an Android APK signature certificate in the cloud.

7. A method for obtaining a key online to realize system security startup as claimed in claim 6, characterized in that: To sign the secure boot certificate in the cloud, deploy the sectools tool to the cloud and upload the SA8155 image to the cloud. To sign the QNX QTD certificate in the cloud, upload system_la.img to the cloud, save the QTD public key locally in the compilation system, and deploy the QTD signing tool in the cloud; To sign the Android APK signature certificate in the cloud, specifically, save the publickey locally in the compilation system, upload the APK to the cloud for signing, and deploy the Android App signing system in the cloud; To sign the AVB certificate in the cloud, specifically, save the AVB public key locally in the compilation system, upload the image to the cloud to generate the vbmeta image, and deploy the AVB signature in the cloud.

8. A device for obtaining a key online to realize system security startup, characterized in that: The device for obtaining a key online to realize system security startup comprises: An execution module, which is used to execute the secure boot trust chain and perform secure startup of the system after the system is powered on; The generation module is used to drive the automated deployment server to generate certificates based on the certificates required for system compilation, upload the generated certificates to the cloud, and save them in the production environment on the cloud; The compilation module is used to set environment variables at compile time and implement certificate compilation and signing based on the automated deployment server.

9. A device for obtaining a key online to realize system security startup, characterized in that: The online key acquisition system security boot device includes a processor, a memory, and an online key acquisition system security boot program stored in the memory and executable by the processor, wherein when the online key acquisition system security boot program is executed by the processor, the steps of the online key acquisition system security boot method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a program for obtaining keys online to implement system security startup. When the program for obtaining keys online to implement system security startup is executed by a processor, the steps of the method for obtaining keys online to implement system security startup as described in any one of claims 1 to 7 are implemented.