CN117270903A - Vehicle-mounted application updating method, device, equipment and computer readable storage medium - Google Patents
Vehicle-mounted application updating method, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN117270903A CN117270903A CN202311111892.8A CN202311111892A CN117270903A CN 117270903 A CN117270903 A CN 117270903A CN 202311111892 A CN202311111892 A CN 202311111892A CN 117270903 A CN117270903 A CN 117270903A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- certificate
- application
- server
- signature
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/44—Program or device authentication
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域Technical field
本申请涉及计算机技术领域,具体涉及一种车载应用更新方法、装置、设备以及计算机可读存储介质。The present application relates to the field of computer technology, and specifically to a vehicle application update method, device, equipment and computer-readable storage medium.
背景技术Background technique
随着车辆电子信息技术的发展,汽车行业推出了各式各样的车辆应用软件,如音频管理、仪表盘、方向灯控制等车载硬件对应的软件包,又如音乐、视频、地图等附加功能的软件包,这些车辆应用软件的推出可提升车辆的质量。为了便于车辆应用文件包的安装、更新,相关技术通过车联网实现对相应车辆中的车载软件进行远程诊断、控制、空中下载(Over-the-Air Technology,OTA)等业务,提高车辆应用软件的升级效率。With the development of vehicle electronic information technology, the automotive industry has launched a variety of vehicle application software, such as software packages corresponding to vehicle hardware such as audio management, instrument panels, and direction light controls, as well as additional functions such as music, video, and maps. Software packages, the introduction of these vehicle application software can improve the quality of vehicles. In order to facilitate the installation and update of vehicle application file packages, related technologies enable remote diagnosis, control, over-the-air technology (OTA) and other services for the on-board software in the corresponding vehicle through the Internet of Vehicles, improving the efficiency of vehicle application software. Upgrade efficiency.
然而,相关技术虽然可实现对应用文件包的安装、更新,但当前的车辆软件包存在不合规安装、更新的现象,导致不合规软件恶意切入,从而,容易导致用户信息泄露的问题,降低了车辆用户的信息安全性。However, although related technologies can enable the installation and update of application file packages, current vehicle software packages have non-compliant installation and updates, leading to malicious entry of non-compliant software, which can easily lead to the leakage of user information. The information security of vehicle users is reduced.
发明内容Contents of the invention
本申请实施例提供一种车载应用更新方法、装置、设备以及计算机可读存储介质,可通过车载的应用升级包的合规下载和安装来对车载应用进行升级更新,加强对应用升级包的管理,确保车辆用户的信息安全性。Embodiments of the present application provide a vehicle-mounted application update method, device, equipment and computer-readable storage medium, which can upgrade and update vehicle-mounted applications through the compliant download and installation of vehicle-mounted application upgrade packages, and strengthen the management of application upgrade packages. , to ensure the information security of vehicle users.
本申请实施例提供一种车载应用更新方法,应用于诊断设备,包括:The embodiment of the present application provides a vehicle application update method, which is applied to diagnostic equipment, including:
获取本地设备的设备证书,并将所述设备证书发送至目标车辆进行认证;Obtain the device certificate of the local device and send the device certificate to the target vehicle for authentication;
若接收到所述目标车辆针对所述设备证书认证通过后反馈的车辆证书,则将所述车辆证书发送给服务器,使得所述服务器通过公钥管理端对所述车辆证书进行合法性认证;If the vehicle certificate fed back by the target vehicle after passing the device certificate authentication is received, the vehicle certificate is sent to the server, so that the server performs legality verification on the vehicle certificate through the public key management end;
当检测到所述服务器对所述车辆证书的合法性认证通过时,对所述目标车辆的车辆签名信息进行验证;When it is detected that the server has passed the legality authentication of the vehicle certificate, verify the vehicle signature information of the target vehicle;
当检测到对所述车辆签名信息的验证通过时,下载所述服务器的签名处理后的应用升级包;When it is detected that the verification of the vehicle signature information is passed, download the signature-processed application upgrade package of the server;
将所述应用升级包传输至所述目标车辆,使得所述目标车辆在对所述应用升级包进行签名信息校验后更新车载应用。The application upgrade package is transmitted to the target vehicle, so that the target vehicle updates the vehicle-mounted application after verifying the signature information of the application upgrade package.
相应的,本申请实施例提供一种车载应用更新装置,应用于诊断设备,包括:Correspondingly, embodiments of the present application provide a vehicle-mounted application update device, which is applied to diagnostic equipment, including:
获取单元,用于获取本地设备的设备证书,并将所述设备证书发送至目标车辆进行认证;An acquisition unit configured to obtain the device certificate of the local device and send the device certificate to the target vehicle for authentication;
发送单元,用于若接收到所述目标车辆针对所述设备证书认证通过后反馈的车辆证书,则将所述车辆证书发送给服务器,所述车辆证书用于所述服务器进行合法性认证;A sending unit configured to send the vehicle certificate to the server if the vehicle certificate fed back by the target vehicle after passing the device certificate authentication is received, and the vehicle certificate is used by the server for legality authentication;
验证单元,用于在所述服务器对所述车辆证书的合法性认证通过的情况下,对所述目标车辆的车辆签名信息进行验证;A verification unit configured to verify the vehicle signature information of the target vehicle when the server passes the legality certification of the vehicle certificate;
下载单元,用于在对所述车辆签名信息的验证通过的情况下,获取应用升级包,所述应用升级包携带开发商的签名信息和所述服务器的签名信息;A download unit, configured to obtain an application upgrade package when the verification of the vehicle signature information passes, where the application upgrade package carries the signature information of the developer and the signature information of the server;
传输单元,用于将所述应用升级包传输至所述目标车辆,所述应用升级包用于所述目标车辆进行签名信息校验后更新车载应用。A transmission unit, configured to transmit the application upgrade package to the target vehicle, where the application upgrade package is used by the target vehicle to update the vehicle-mounted application after verifying the signature information.
在一些实施方式中,所述车载应用更新装置还包括登录单元,用于:In some implementations, the vehicle-mounted application updating device further includes a login unit for:
获取登录的管理账户信息;Obtain logged-in management account information;
则所述获取单元,用于若对所述管理账户信息的验证通过,向所述服务器获取本地设备的设备证书。The obtaining unit is configured to obtain the device certificate of the local device from the server if the verification of the management account information is passed.
在一些实施方式中,所述验证单元,还用于:In some embodiments, the verification unit is also used to:
从所述目标车辆中获取车辆签名信息,以及读取所述车辆证书对应的车辆公钥;Obtain vehicle signature information from the target vehicle and read the vehicle public key corresponding to the vehicle certificate;
通过哈希算法计算所述目标车辆的待确认摘要信息,并根据所述车辆公钥对所述待确认摘要信息进行加密,得到待确认车辆签名信息;Calculate the summary information to be confirmed of the target vehicle through a hash algorithm, and encrypt the summary information to be confirmed according to the vehicle public key to obtain the vehicle signature information to be confirmed;
若所述车辆签名信息与所述待确认车辆签名信息一致,则确定对所述车辆签名信息的验证通过;If the vehicle signature information is consistent with the vehicle signature information to be confirmed, it is determined that the verification of the vehicle signature information is passed;
若所述车辆签名信息与所述待确认车辆签名信息不一致,则确定对所述车辆签名信息的验证不通过。If the vehicle signature information is inconsistent with the vehicle signature information to be confirmed, it is determined that the verification of the vehicle signature information fails.
相应的,本申请实施例还提供一种车载应用更新方法,应用于服务器,包括:Correspondingly, the embodiment of the present application also provides a vehicle application update method, which is applied to the server and includes:
响应于诊断设备发送的设备证书获取请求,将所述设备证书传输至所述诊断设备;in response to a device certificate acquisition request sent by the diagnostic device, transmitting the device certificate to the diagnostic device;
接收所述诊断设备发送的车辆证书认证请求,对所述车辆证书进行合法性认证,其中,所述车辆证书由目标车辆对所述设备证书认证通过后反馈给所述诊断设备;Receive the vehicle certificate authentication request sent by the diagnostic device, and perform legality authentication on the vehicle certificate, wherein the vehicle certificate is fed back to the diagnostic device after the target vehicle passes the device certificate authentication;
若对所述车辆证书的合法性认证通过,则向所述诊断设备反馈对所述车辆证书的合法性认证通过的验证结果,使得所述诊断设备在对所述目标车辆的车辆签名信息验证通过后将下载的应用升级包传输至所述目标车辆进行车载应用更新。If the legality authentication of the vehicle certificate passes, the verification result of the legality authentication of the vehicle certificate is fed back to the diagnostic device, so that the diagnostic device passes the verification of the vehicle signature information of the target vehicle. The downloaded application upgrade package is then transmitted to the target vehicle for in-vehicle application update.
相应的,本申请实施例还提供一种车载应用更新装置,应用于服务器,包括:Correspondingly, embodiments of the present application also provide a vehicle-mounted application update device, which is applied to a server and includes:
传输单元,用于响应于诊断设备发送的设备证书获取请求,将所述设备证书传输至所述诊断设备;a transmission unit configured to transmit the device certificate to the diagnostic device in response to a device certificate acquisition request sent by the diagnostic device;
认证单元,用于接收所述诊断设备发送的车辆证书认证请求,对所述车辆证书进行合法性认证,其中,所述车辆证书由目标车辆对所述设备证书认证通过后反馈给所述诊断设备;An authentication unit, configured to receive a vehicle certificate authentication request sent by the diagnostic device, and perform legality authentication on the vehicle certificate, wherein the vehicle certificate is fed back to the diagnostic device after the target vehicle passes the authentication of the device certificate. ;
反馈单元,用于若对所述车辆证书的合法性认证通过,则向所述诊断设备反馈对所述车辆证书的合法性认证通过的验证结果,使得所述诊断设备在对所述目标车辆的车辆签名信息验证通过后将下载的应用升级包传输至所述目标车辆进行车载应用更新,所述应用升级包携带开发商的签名信息和所述服务器的签名信息。A feedback unit configured to, if the legality authentication of the vehicle certificate passes, feed back the verification result of the legality authentication of the vehicle certificate to the diagnostic device, so that the diagnostic device performs the verification on the target vehicle. After the vehicle signature information is verified, the downloaded application upgrade package is transmitted to the target vehicle for vehicle-mounted application update. The application upgrade package carries the signature information of the developer and the signature information of the server.
在一些实施方式中,所述认证单元,还用于:In some embodiments, the authentication unit is also used to:
将所述车辆证书传输至公钥管理端,使得所述公钥管理端对所述车辆证书进行证书的合法性认证。The vehicle certificate is transmitted to the public key management end, so that the public key management end verifies the validity of the certificate on the vehicle certificate.
在一些实施方式中,所述车载应用更新装置还包括签名确认单元,用于:In some embodiments, the vehicle-mounted application updating device further includes a signature confirmation unit, used for:
接收应用包管理服务器发送的应用包加密请求,所述应用包加密请求携带有待加密的应用文件包;Receive an application package encryption request sent by the application package management server, where the application package encryption request carries an application file package to be encrypted;
对所述待加密的应用文件包进行加密签名,得到文件签名数据;Encrypt and sign the application file package to be encrypted to obtain file signature data;
将所述文件签名数据反馈给所述应用包管理服务器,使得所述应用包管理服务器根据所述文件签名数据和签名证书打包生成应用升级包。The file signature data is fed back to the application package management server, so that the application package management server packages and generates an application upgrade package based on the file signature data and the signature certificate.
在一些实施方式中,所述签名确认单元,还用于:In some embodiments, the signature verification unit is also used to:
对所述待加密的应用文件包进行加密处理,并根据加密处理得到的加密文件包生成对应的文件哈希值;Encrypt the application file package to be encrypted, and generate a corresponding file hash value based on the encrypted file package obtained by the encryption process;
对所述文件哈希值进行编码处理,得到哈希编码数据;Encoding the file hash value to obtain hash-encoded data;
将所述哈希编码数据发送至公钥管理端进行签名处理,得到所述公钥管理端反馈的文件签名数据。The hash coded data is sent to the public key management terminal for signature processing, and the file signature data fed back by the public key management terminal is obtained.
在一些实施方式中,所述签名确认单元,还用于:In some embodiments, the signature verification unit is also used to:
获取所述应用文件包对应的签名证书,并根据所述签名证书确定所述公钥管理端对应的接口数据格式;Obtain the signature certificate corresponding to the application file package, and determine the interface data format corresponding to the public key management end based on the signature certificate;
按照所述接口数据格式将所述哈希编码数据转换为目标哈希数据;Convert the hash-encoded data into target hash data according to the interface data format;
将所述目标哈希数据发送至所述公钥管理端进行签名处理。The target hash data is sent to the public key management terminal for signature processing.
此外,本申请实施例还提供一种计算机设备,包括处理器和存储器,所述存储器存储有计算机程序,所述处理器用于运行所述存储器内的计算机程序实现本申请实施例提供的任一种车载应用更新方法中的步骤。In addition, embodiments of the present application also provide a computer device, including a processor and a memory. The memory stores a computer program. The processor is configured to run the computer program in the memory to implement any of the methods provided by the embodiments of the present application. Steps in the car app update method.
此外,本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有多条指令,所述指令适于处理器进行加载,以执行本申请实施例所提供的任一种车载应用更新方法中的步骤。In addition, embodiments of the present application also provide a computer-readable storage medium that stores a plurality of instructions, and the instructions are suitable for loading by the processor to execute any of the instructions provided by the embodiments of the present application. Steps in an in-vehicle application update method.
此外,本申请实施例还提供一种计算机程序产品,包括计算机指令,所述计算机指被执行时实现本申请实施例所提供的任一种车载应用更新方法中的步骤。In addition, embodiments of the present application further provide a computer program product, including computer instructions, which when executed, implement steps in any of the vehicle-mounted application update methods provided by embodiments of the present application.
本申请实施例可以获取本地设备的设备证书,并将设备证书发送至目标车辆进行认证;若接收到目标车辆针对设备证书认证通过后反馈的车辆证书,则将车辆证书发送给服务器,车辆证书用于服务器进行合法性认证;在服务器对车辆证书的合法性认证通过的情况下,对目标车辆的车辆签名信息进行验证;在对车辆签名信息的验证通过的情况下,获取应用升级包,应用升级包携带开发商的签名信息和服务器的签名信息;将应用升级包传输至目标车辆,应用升级包用于目标车辆进行签名信息校验后更新车载应用。由此可得,本方案的诊断设备可将本地设备证书发送给车辆进行认证,以及将获取到车辆证书发送至服务器进行远程认证,以实现诊断设备、车辆和服务器之间的三方认证,以完成合法性校验,提高诊断设备的可信度,进而,通过诊断设备下载经过服务器签名处理的应用升级包,并通过诊断设备将下载的应用升级包传输至目标车辆进行车载应用的更新;以此,可通过三方验证通过的诊断设备来对应用升级包的合规下载和安装,并对车载应用进行升级更新,加强对应用升级包的管理,有效避免用户信息泄露,确保车辆用户的信息安全性。This application embodiment can obtain the device certificate of the local device and send the device certificate to the target vehicle for authentication; if the vehicle certificate fed back by the target vehicle after passing the device certificate authentication is received, the vehicle certificate is sent to the server. The vehicle certificate is Perform legality authentication on the server; if the server passes the legality authentication of the vehicle certificate, verify the vehicle signature information of the target vehicle; if the verification of the vehicle signature information passes, obtain the application upgrade package, and apply the upgrade The package carries the signature information of the developer and the signature information of the server; the application upgrade package is transmitted to the target vehicle, and the application upgrade package is used by the target vehicle to verify the signature information and then update the in-vehicle application. It can be seen that the diagnostic equipment of this solution can send the local device certificate to the vehicle for authentication, and send the obtained vehicle certificate to the server for remote authentication to achieve three-party authentication between the diagnostic equipment, vehicle and server to complete Legality verification improves the credibility of the diagnostic device, and then downloads the application upgrade package that has been signed by the server through the diagnostic device, and transmits the downloaded application upgrade package to the target vehicle through the diagnostic device to update the in-vehicle application; , the diagnostic equipment that has passed the third-party verification can be used to download and install the application upgrade package in compliance with regulations, and upgrade and update the in-vehicle application, strengthen the management of the application upgrade package, effectively avoid the leakage of user information, and ensure the information security of vehicle users. .
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1是本申请实施例提供的车载应用更新系统的场景示意图;Figure 1 is a schematic scene diagram of a vehicle-mounted application update system provided by an embodiment of the present application;
图2是本申请实施例提供的车载应用更新方法的步骤流程示意图;Figure 2 is a schematic flow chart of the steps of the vehicle application update method provided by the embodiment of the present application;
图3是本申请实施例提供的车载应用更新方法的另一步骤流程示意图;Figure 3 is a schematic flowchart of another step of the vehicle application update method provided by the embodiment of the present application;
图4是本申请实施例提供的车载应用更新场景的架构示意图;Figure 4 is an architectural schematic diagram of a vehicle application update scenario provided by an embodiment of the present application;
图5是本申请实施例提供的车辆的车载应用更新场景的示意图;Figure 5 is a schematic diagram of an on-vehicle application update scenario of a vehicle provided by an embodiment of the present application;
图6是本申请实施例提供的诊断设备与服务器和车辆之间的认证场景的时序图;Figure 6 is a sequence diagram of the authentication scenario between the diagnostic device, the server and the vehicle provided by the embodiment of the present application;
图7是本申请实施例提供的应用升级包的二次签名的场景时序图;Figure 7 is a scenario sequence diagram of the secondary signature of the application upgrade package provided by the embodiment of the present application;
图8是本申请实施例提供的车载应用更新装置的第一结构示意图;Figure 8 is a first structural schematic diagram of a vehicle-mounted application update device provided by an embodiment of the present application;
图9是本申请实施例提供的车载应用更新装置的第二结构示意图;Figure 9 is a second structural schematic diagram of a vehicle-mounted application update device provided by an embodiment of the present application;
图10是本申请实施例提供的计算机设备的结构示意图。Figure 10 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts fall within the scope of protection of this application.
本申请实施例提供一种车载应用更新方法、装置、设备以及计算机可读存储介质。具体地,本申请实施例将从车载应用更新装置的角度进行描述,该车载应用更新装置具体可以集成在计算机设备中,该计算机设备可以是服务器,也可以是用户终端等设备。其中,该服务器可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。其中,用户终端可以是智能手机、平板电脑、笔记本电脑、台式计算机、智能音箱、智能手表、智能家电、车载终端、智能语音交互设备、飞行器、车辆诊断设备等,但并不局限于此。Embodiments of the present application provide a vehicle application updating method, device, equipment and computer-readable storage medium. Specifically, the embodiments of the present application will be described from the perspective of a vehicle-mounted application update device. The vehicle-mounted application update device may be integrated in a computer device. The computer device may be a server or a user terminal or other equipment. Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud Cloud servers for basic cloud computing services such as communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Among them, the user terminal can be a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart home appliance, a vehicle-mounted terminal, an intelligent voice interaction device, an aircraft, a vehicle diagnostic equipment, etc., but is not limited thereto.
本申请实施例提供的车载应用更新方法可应用于各种车载中应用程序的升级更新场景,如,包括但不限于车载应用的本地升级和远程升级等车载应用更新的场景,这些应用场景不限于通过云服务、云计算等方式实现,具体通过如下实施例进行说明:The vehicle application update method provided by the embodiment of the present application can be applied to various vehicle application upgrade and update scenarios, including but not limited to vehicle application update scenarios such as local upgrade and remote upgrade of vehicle applications. These application scenarios are not limited to It is implemented through cloud services, cloud computing, etc., and is specifically explained through the following examples:
例如,参见图1,为本申请实施例提供的车载应用更新系统的示意图。本实施例的车载应用更新系统可以包括终端、服务器和目标车辆。For example, see Figure 1, which is a schematic diagram of a vehicle-mounted application update system provided by an embodiment of the present application. The vehicle application update system in this embodiment may include a terminal, a server and a target vehicle.
终端可以是车辆的诊断设备,该诊断设备可以安装有客户端,以通过客户端与服务器进行数据交互,或者诊断设备可以通过网络页面与服务器件进行数据交互。具体的,该终端可以获取本地设备的设备证书,并将设备证书发送至目标车辆进行认证;若接收到目标车辆针对设备证书认证通过后反馈的车辆证书,则将车辆证书发送给服务器,车辆证书用于服务器进行合法性认证;在服务器对车辆证书的合法性认证通过的情况下,对目标车辆的车辆签名信息进行验证;在对车辆签名信息的验证通过的情况下,获取应用升级包,应用升级包携带开发商的签名信息和服务器的签名信息;将应用升级包传输至目标车辆,应用升级包用于目标车辆进行签名信息校验后更新车载应用。The terminal may be a diagnostic device of the vehicle, and the diagnostic device may be installed with a client to interact with the server through data, or the diagnostic device may interact with the server through a network page. Specifically, the terminal can obtain the device certificate of the local device and send the device certificate to the target vehicle for authentication; if it receives the vehicle certificate fed back by the target vehicle after passing the device certificate authentication, the vehicle certificate is sent to the server, and the vehicle certificate It is used for server to perform legality authentication; when the server passes the legality authentication of the vehicle certificate, it verifies the vehicle signature information of the target vehicle; when the verification of the vehicle signature information passes, it obtains the application upgrade package and applies The upgrade package carries the signature information of the developer and the signature information of the server; the application upgrade package is transmitted to the target vehicle, and the application upgrade package is used in the target vehicle to verify the signature information and then update the in-vehicle application.
其中,车载应用更新过程可以包括诊断设备完成与目标车辆之间的合法性认证、诊断设备完成与服务器之间的合法性认证、诊断设备下载应用升级包、诊断设备将应用升级包传输至目标车辆进行应用升级等方式。Among them, the vehicle application update process may include completing the legality authentication between the diagnostic device and the target vehicle, completing the legality authentication between the diagnostic device and the server, downloading the application upgrade package by the diagnostic device, and transmitting the application upgrade package to the target vehicle by the diagnostic device. Perform application upgrades, etc.
以下分别进行详细说明。需说明的是,以下实施例的顺序不作为对实施例优选顺序的限定。Each is explained in detail below. It should be noted that the order of the following examples does not limit the preferred order of the examples.
在本申请实施例中,将从车载应用更新装置的角度进行描述,以该车载应用更新装置具体可以集成在计算机设备如终端中。参见图2,图2为本申请实施例提供的一种车载应用更新方法的步骤流程示意图,本申请实施例以车载应用更新装置具体集成在终端上为例,终端上的处理器执行车载应用更新方法对应的程序指令时,具体流程如下:In this embodiment of the present application, description will be made from the perspective of a vehicle-mounted application updating device, which may be integrated in a computer device such as a terminal. Referring to Figure 2, Figure 2 is a schematic flowchart of the steps of a vehicle-mounted application update method provided by an embodiment of the present application. In this embodiment of the present application, a vehicle-mounted application update device is specifically integrated on a terminal as an example. The processor on the terminal executes the vehicle-mounted application update. When specifying the program instructions corresponding to the method, the specific process is as follows:
101、获取本地设备的设备证书,并将设备证书发送至目标车辆进行认证。101. Obtain the device certificate of the local device and send the device certificate to the target vehicle for authentication.
在本申请实施例中,为了对车辆中的应用软件进行合规、安全地升级更新,以避免非法应用窃取车辆用户的信息,需要对应用软件的升级文件包的下载和安装进行安全性管理。为了确保车载应用的安全合规升级,本申请实施例先分别完成诊断设备与目标车辆和服务器之间的安全性验证,以确定诊断设备的合法性和目标车辆的合法性,并在完成合法性验证后,通过诊断设备下载目标车辆的应用软件的升级文件包,以传输至目标车辆进行软件应用的更新。In the embodiment of this application, in order to compliantly and securely upgrade the application software in the vehicle to prevent illegal applications from stealing the vehicle user's information, it is necessary to perform security management on the download and installation of the upgrade file package of the application software. In order to ensure the safety and compliance upgrade of in-vehicle applications, the embodiment of this application first completes the security verification between the diagnostic device, the target vehicle and the server respectively to determine the legality of the diagnostic device and the legality of the target vehicle, and after completing the legality After verification, the upgrade file package of the target vehicle's application software is downloaded through the diagnostic device and transferred to the target vehicle for updating the software application.
需要说明的是,本申请实施例在对诊断设备和目标车辆进行合法性校验时,可以通过证书验证的方式来实现合法性校验,例如,通过诊断设备的本地设备证书和车辆的车辆证书来完成合法性校验的相关验证流程。It should be noted that when the embodiment of the present application performs legality verification on the diagnostic device and the target vehicle, the legality verification can be implemented through certificate verification, for example, through the local device certificate of the diagnostic device and the vehicle certificate of the vehicle. To complete the relevant verification process of legality verification.
其中,该本地设备是指本申请实施例的执行主体,其可以理解为应用管理设备,如,在车辆的场景中,该本地设备可以是诊断设备,用于完成自身的合法性验证以及对需要管理的车辆进行合法性验证,还用于对合法性验证通过的车辆进行应用软件的升级更新。Among them, the local device refers to the execution subject of the embodiment of the present application, which can be understood as an application management device. For example, in the scenario of a vehicle, the local device can be a diagnostic device, used to complete its own legality verification and to respond to needs. Managed vehicles are verified for legality, and are also used to upgrade application software for vehicles that pass legality verification.
其中,该设备证书可以是前述的诊断设备的数字签名证书,其可包含诊断设备的签名信息、设备公钥信息等。可选的,该设备证书可以由服务器向公钥基础设施(PublicKey Infrastructure,PKI)和权威公信机构(Certification Authority,CA)请求生成并颁发,可以理解的是,不同的设备、车辆或任意个体,其证书是不一致的,具有独立性。The device certificate may be the aforementioned digital signature certificate of the diagnostic device, which may include signature information of the diagnostic device, device public key information, etc. Optionally, the device certificate can be generated and issued by the server by requesting the Public Key Infrastructure (PKI) and the Certification Authority (CA). It is understandable that different devices, vehicles, or any individual, Its certificate is inconsistent and independent.
需要说明的是,为了提高对车辆的应用软件进行合规、安全管理,可以通过管理账户的形式来登录诊断设备,以使得诊断设备获得后续的任意操作权限,同时使得应用软件的下载、安装、删除等任意操作具有可追溯性。具体的,相关管理人员可以通过向服务器请求注册诊断设备的管理账户,如,车主或汽车维护人员可以向目标车辆的信息安全认证(汽车厂商的)服务器请求注册一个管理账户信息,以便后续通过该管理账户信息登录诊断设备,以便通过获取到操作权限的诊断设备来执行合法性验证和车载应用升级更新,提高车载应用的合规、安全性。It should be noted that in order to improve the compliance and security management of vehicle application software, you can log in to the diagnostic device through a management account, so that the diagnostic device can obtain any subsequent operation permissions, and at the same time, the download, installation, and Any operations such as deletion are traceable. Specifically, relevant managers can request to register the management account of the diagnostic device by requesting the server. For example, the car owner or car maintenance personnel can request to register a management account information from the target vehicle's information security certification (automobile manufacturer's) server, so that they can subsequently pass the Manage the account information to log in to the diagnostic device so that the diagnostic device that has obtained the operating authority can perform legality verification and vehicle application upgrades and updates to improve the compliance and security of the vehicle application.
在一些实施方式中,为了使得诊断设备的业务操作具有可追溯性,以及提高车载应用升级更新的合规性,在步骤101之前,还可以包括:获取登录的管理账户信息。进一步的,则步骤101,可以包括:若对管理账户信息的验证通过,向服务器获取本地设备的设备证书。In some embodiments, in order to make the business operations of the diagnostic device traceable and improve the compliance of vehicle-mounted application upgrades and updates, before step 101, it may also include: obtaining logged-in management account information. Further, step 101 may include: if the verification of the management account information passes, obtaining the device certificate of the local device from the server.
具体的,诊断设备可以实时检测登录该设备的管理账户信息,并对该管理账户信息进行信息登录认证,当诊断设备通过本地账户信息库认证或远程认证的方式对当前登录的管理账户信息的登录信息验证通过时,确定当前登录诊断设备的管理账户信息合法,并允许该管理账户信息成功登录本地设备,进而,当检测到用户基于当前的管理账户信息触发合法性认证的指令时,诊断设备可以向服务器请求获取本地设备的设备证书。需要说明的是,当诊断设备上安装有用于管理车载应用软件的客户端时,该客户端中可以寄存有设备证书,此时,诊断设备可以直接从客户端中获取到设备证书,以上仅为示例,不作为实施本实施方式的限定。Specifically, the diagnostic device can detect the management account information logged into the device in real time, and perform information login authentication on the management account information. When the diagnostic device logs in the currently logged in management account information through local account information database authentication or remote authentication When the information verification is passed, it is determined that the management account information currently logged in to the diagnostic device is legal, and the management account information is allowed to successfully log in to the local device. Furthermore, when it is detected that the user triggers a legality authentication instruction based on the current management account information, the diagnostic device can Request the server to obtain the device certificate of the local device. It should be noted that when a client for managing vehicle application software is installed on the diagnostic device, the device certificate can be stored in the client. At this time, the diagnostic device can directly obtain the device certificate from the client. The above is only Examples are not intended to limit the implementation of this embodiment.
此后,诊断设备在获取到本地的设备证书后,可以将该设备证书发送给目标车辆进行验证,此过程可以为目标车辆对诊断设备的合法性或安全性校验。具体的,目标车辆可以根据设备证书来对诊断设备进行合法性校验,当目标车辆可以根据设备证书对诊断设备的合法性校验通过时,说明该设备证书一开始是由目标车辆关联的信息安全认证(汽车厂商的)服务器下发,该诊断设备得到信息安全认证(汽车厂商的)服务器的认证,属于可信的终端设备,则目标车辆对设备证书认证通过的诊断设备赋予可信状态,以便后续将目标车辆自身的车辆证书发送给诊断设备,以进行车辆的合法性验证。Thereafter, after the diagnostic device obtains the local device certificate, it can send the device certificate to the target vehicle for verification. This process can verify the legality or safety of the diagnostic device for the target vehicle. Specifically, the target vehicle can verify the legitimacy of the diagnostic device based on the device certificate. When the target vehicle can pass the legitimacy verification of the diagnostic device based on the device certificate, it means that the device certificate was originally information associated with the target vehicle. The security certification (car manufacturer's) server issues it, and the diagnostic device is certified by the information security certification (car manufacturer's) server and is a trusted terminal device. Then the target vehicle assigns a trusted status to the diagnostic device that has passed the device certificate certification. In order to subsequently send the vehicle certificate of the target vehicle to the diagnostic device to verify the legality of the vehicle.
其中,目标车辆在对设备证书进行验证时,可以根据设备证书的设备公钥信息来生成待校验设备签名信息,并将该待校验设备签名信息与设备证书对应的设备签名信息进行比较,当待校验设备签名信息与设备证书对应的设备签名信息一致时,确定目标车辆对设备证书的合法性校验通过;反之,则确定目标车辆对设备证书的合法性校验不通过。When the target vehicle verifies the device certificate, it can generate the device signature information to be verified based on the device public key information of the device certificate, and compare the device signature information to be verified with the device signature information corresponding to the device certificate. When the device signature information to be verified is consistent with the device signature information corresponding to the device certificate, it is determined that the target vehicle has passed the legality check of the device certificate; otherwise, it is determined that the target vehicle has failed the legality check of the device certificate.
通过以上方式,可完成目标车辆对诊断设备的合法性验证,使得目标车辆对诊断设备可信,以授予诊断设备对目标车辆的应用软件的下载、安装、删除等任意操作的权限,有利于对车辆中的应用软件进行合规、安全地升级更新,确保用户信息的安全性。Through the above method, the legality verification of the diagnostic device by the target vehicle can be completed, making the target vehicle trustworthy to the diagnostic device, and granting the diagnostic device permission to download, install, delete and other operations on the target vehicle's application software, which is conducive to the The application software in the vehicle is upgraded and updated compliantly and safely to ensure the security of user information.
102、若接收到目标车辆针对设备证书认证通过后反馈的车辆证书,则将车辆证书发送给服务器,车辆证书用于服务器进行合法性认证。102. If the vehicle certificate returned by the target vehicle after passing the device certificate authentication is received, the vehicle certificate is sent to the server, and the vehicle certificate is used by the server for legality authentication.
需要说明的是,当目标车辆针对诊断设备的设备证书认证通过时,完成了诊断设备与目标车辆之间的合法性验证,此时,目标车辆对诊断设备是可信任的,目标车辆在接收到诊断设备发送的车辆证书获取请求时,可以将自身的车辆证书发送给诊断设备,或者目标车辆在完成对诊断设备的合法性验证后主动发送自身的车辆证书至诊断设备,以便诊断设备根据车辆证书对目标车辆进行合法性验证,以完成诊断设备与目标车辆之间的双向认证,有利于提高后续对车辆的应用软件的合规性和安全性的管理,有效避免用户信息泄露,确保用户信息的安全。It should be noted that when the target vehicle passes the device certificate authentication of the diagnostic device, the legality verification between the diagnostic device and the target vehicle is completed. At this time, the target vehicle is trustworthy to the diagnostic device. After receiving the When the diagnostic device sends a vehicle certificate acquisition request, it can send its own vehicle certificate to the diagnostic device, or the target vehicle actively sends its own vehicle certificate to the diagnostic device after completing the legality verification of the diagnostic device, so that the diagnostic device can obtain the vehicle certificate according to the vehicle certificate. Conduct legality verification on the target vehicle to complete two-way authentication between the diagnostic device and the target vehicle, which will help improve the subsequent compliance and security management of the vehicle's application software, effectively avoid the leakage of user information, and ensure the security of user information Safety.
其中,该车辆证书可以是目标车辆的数字签名证书,其可包含目标车辆的签名信息、车辆公钥信息等。可选的,该车辆证书可以由(车辆厂商的)服务器向公钥基础设施(Public Key Infrastructure,PKI)和权威公信机构(Certification Authority,CA)的系统请求生成并颁发。The vehicle certificate may be a digital signature certificate of the target vehicle, which may include signature information of the target vehicle, vehicle public key information, etc. Optionally, the vehicle certificate can be generated and issued by a server (vehicle manufacturer's) requesting the public key infrastructure (Public Key Infrastructure, PKI) and authoritative public authority (Certification Authority, CA) system.
其中,该公钥管理端是指公钥基础设施(Public Key Infrastructure,PKI)和权威公信机构(Certification Authority,CA)联合的系统,具体的,该公钥管理端由公钥理论和技术建立,具体可以由权威认证机构(CA)、数字证书库、密钥备份及恢复系统、证书作废系统、应用接口(API)等基本构成部分,用于提供信息安全服务,为互联网通信中的诊断设备、车辆等的信息安全提供身份认证、防抵赖和保密性。其中,该公钥管理端可以包括加密、数字签名、数据完整性机制、数字信封、双重数字签名等。Among them, the public key management end refers to a joint system between the Public Key Infrastructure (PKI) and the Certification Authority (CA). Specifically, the public key management end is established by public key theory and technology. Specifically, it can be composed of basic components such as authoritative certification authority (CA), digital certificate library, key backup and recovery system, certificate invalidation system, application interface (API), etc., which are used to provide information security services and provide diagnostic equipment for Internet communications. Information security for vehicles, etc. provides identity authentication, non-repudiation and confidentiality. Among them, the public key management end can include encryption, digital signature, data integrity mechanism, digital envelope, double digital signature, etc.
具体的,目标车辆在对设备证书进行合法性校验后,表示对诊断设备可信,目标车辆可将自身的车辆证书发送给诊断设备,此时,诊断设备在接收到车辆证书后,即可对目标车辆的合法性进行验证。其中,在对目标车辆进行合法性验证时,可以通过请求服务器对车辆证书的验证方式来实现车辆合法性验证,例如,诊断设备在得到目标车辆的车辆证书后,可将车辆证书发送给服务器,以通过服务器来对该车辆证书进行合法性验证,并将对车辆证书的验证结果反馈给诊断设备,如,将对车辆证书的合法性认证通过的验证结果反馈给诊断设备,或者将对车辆证书的合法性认证不通过的验证结果反馈给诊断设备,以便诊断设备后续继续完成合法性验证流程。Specifically, after the target vehicle performs legality verification on the device certificate, it indicates that it trusts the diagnostic device. The target vehicle can send its own vehicle certificate to the diagnostic device. At this time, after receiving the vehicle certificate, the diagnostic device can Verify the legality of the target vehicle. When verifying the legality of the target vehicle, the vehicle legality verification can be achieved by requesting the server to verify the vehicle certificate. For example, after obtaining the vehicle certificate of the target vehicle, the diagnostic device can send the vehicle certificate to the server. The server is used to verify the legality of the vehicle certificate, and the verification result of the vehicle certificate is fed back to the diagnostic device. For example, the verification result of the legality authentication of the vehicle certificate is fed back to the diagnostic device, or the verification result of the vehicle certificate is fed back to the diagnostic device. The verification results that fail the legality authentication are fed back to the diagnostic device so that the diagnostic device can continue to complete the legality verification process.
需要说明的是,服务器在对诊断设备请求验证的车辆证书进行合法性认证时,可以将接收到的车辆证书传输至公钥管理端(Public Key Infrastructure,PKI),公钥管理端在接收到车辆证书后,根据车辆证书的摘要信息和车辆公钥信息生成待校验车辆签名信息,并将待校验车辆签名信息与车辆证书对应的车辆签名信息进行比较,若校验车辆签名信息与车辆证书对应的车辆签名信息一致,则表示对车辆证书的合法性验证通过,反之,若校验车辆签名信息与车辆证书对应的车辆签名信息不一致,则表示对车辆证书的合法性验证不通过;进一步的,公钥管理端将验证结果返回给服务器,服务器再将对车辆证书的合法性验证结果反馈给诊断设备。It should be noted that when the server authenticates the legality of the vehicle certificate requested by the diagnostic device, it can transmit the received vehicle certificate to the public key management end (Public Key Infrastructure, PKI). The public key management end receives the vehicle certificate. After the certificate is issued, the vehicle signature information to be verified is generated based on the summary information of the vehicle certificate and the vehicle public key information, and the vehicle signature information to be verified is compared with the vehicle signature information corresponding to the vehicle certificate. If the vehicle signature information is verified and the vehicle certificate is If the corresponding vehicle signature information is consistent, it means that the legality verification of the vehicle certificate is passed. On the contrary, if the verification vehicle signature information is inconsistent with the vehicle signature information corresponding to the vehicle certificate, it means that the legality verification of the vehicle certificate is not passed; further , the public key management end returns the verification result to the server, and the server then feeds back the validity verification result of the vehicle certificate to the diagnostic device.
通过以上方式,诊断设备在接收到目标车辆针对设备证书认证通过后反馈的车辆证书时,可将车辆证书发送给服务器,由于目标车辆可在出厂之前由(汽车厂商的)服务器下发,因此,可通过服务器来验证车辆证书的合法性,以获取车辆证书的合法性验证结果,至此,实现对车辆合法性的校验,则对于诊断设备而言目标车俩是可信任的,以便后续通过诊断设备对车辆的应用软件的合规性和安全性的管理,有效避免用户信息泄露,确保用户信息的安全。Through the above method, when the diagnostic device receives the vehicle certificate fed back by the target vehicle after passing the device certificate authentication, it can send the vehicle certificate to the server. Since the target vehicle can be issued by the server (car manufacturer's) before leaving the factory, therefore, The legality of the vehicle certificate can be verified through the server to obtain the legality verification result of the vehicle certificate. At this point, the verification of the vehicle's legality is achieved, and the target vehicles are trustworthy for the diagnostic equipment, so that subsequent diagnosis can be passed The device manages the compliance and security of vehicle application software, effectively avoiding leakage of user information and ensuring the security of user information.
103、在服务器对车辆证书的合法性认证通过的情况下,对目标车辆的车辆签名信息进行验证。103. When the server passes the legality authentication of the vehicle certificate, verify the vehicle signature information of the target vehicle.
在本申请实施例中,服务器在对车辆证书的合法性认证后,会将验证结果反馈至诊断设备,当验证结果指示对车辆证书的合法性认证通过,此外,该验证结果还可以包括服务器返回的公钥管理端对车辆证书的目标签名信息,此时,诊断设备还可对该目标签名信息进行验证,此处不作限定。进一步的,诊断设备在接收到服务器指示的对车辆证书的合法性认证通过后,和/或对目标签名信息的验证通过后,即可对目标车辆自身计算的车辆签名信息进行验证,以便完成诊断设备与目标车辆之间的双向认证。In the embodiment of this application, after the server authenticates the legality of the vehicle certificate, it will feedback the verification result to the diagnostic device. When the verification result indicates that the legality authentication of the vehicle certificate has passed, in addition, the verification result may also include the server returning The public key management end verifies the target signature information of the vehicle certificate. At this time, the diagnostic device can also verify the target signature information, which is not limited here. Further, after receiving the server instruction to pass the legality authentication of the vehicle certificate and/or after passing the verification of the target signature information, the diagnostic device can verify the vehicle signature information calculated by the target vehicle itself in order to complete the diagnosis. Two-way authentication between device and target vehicle.
在一些实施方式中,诊断设备在得到服务器对车辆证书的合法性认证通过的验证结果后,为了提高信息安全性,诊断设备自身还可对车辆的签名信息进行验证。具体的,步骤103中的“对目标车辆的车辆签名信息进行验证”,可以包括:从目标车辆中获取车辆签名信息,以及读取车辆证书对应的车辆公钥;通过哈希算法计算目标车辆的待确认摘要信息,并根据车辆公钥对待确认摘要信息进行加密,得到待确认车辆签名信息;若车辆签名信息与待确认车辆签名信息一致,则确定对车辆签名信息的验证通过;若车辆签名信息与待确认车辆签名信息不一致,则确定对车辆签名信息的验证不通过。In some embodiments, after the diagnostic device obtains the verification result of the server passing the legality authentication of the vehicle certificate, in order to improve information security, the diagnostic device itself can also verify the signature information of the vehicle. Specifically, "verify the vehicle signature information of the target vehicle" in step 103 may include: obtaining the vehicle signature information from the target vehicle, and reading the vehicle public key corresponding to the vehicle certificate; calculating the target vehicle's signature information through a hash algorithm. The summary information to be confirmed is encrypted according to the vehicle public key to obtain the vehicle signature information to be confirmed; if the vehicle signature information is consistent with the vehicle signature information to be confirmed, it is determined that the verification of the vehicle signature information has passed; if the vehicle signature information If it is inconsistent with the vehicle signature information to be confirmed, it is determined that the verification of the vehicle signature information has failed.
通过以上方式,可实现了诊断设备、目标车辆以及云端信息安全认证服务器之间的三方认证,使得目标车辆与诊断设备之间相互信任,且经过服务器侧的认证,确保诊断设备的可信度,确保了后续车载应用的合规、安全地更新升级,具有可靠性。Through the above method, three-party authentication between the diagnostic device, the target vehicle and the cloud information security authentication server can be achieved, so that the target vehicle and the diagnostic device trust each other, and the certification on the server side ensures the credibility of the diagnostic device. This ensures that subsequent in-vehicle applications can be updated and upgraded in compliance with regulations, safely and with reliability.
104、在对车辆签名信息的验证通过的情况下,获取应用升级包,应用升级包携带开发商的签名信息和服务器的签名信息。104. When the verification of the vehicle signature information passes, obtain the application upgrade package. The application upgrade package carries the developer's signature information and the server's signature information.
在本申请实施例中,在诊断设备与目标车辆之间完整双向相互认证后,即可确保诊断设备和目标车辆的安全性,此时,为了对车载应用程序进行安全升级,可以通过诊断设备来下载相应的应用升级包,以便通过诊断设备来协助升级目标车辆的车载应用。In the embodiment of this application, after complete two-way mutual authentication between the diagnostic device and the target vehicle, the security of the diagnostic device and the target vehicle can be ensured. At this time, in order to safely upgrade the vehicle application, the diagnostic device can be used to Download the corresponding application upgrade package to assist in upgrading the target vehicle's on-board application through diagnostic equipment.
需要说明的是,该应用升级包为经过信息安全认证(汽车厂商或主机厂)服务器的签名认证,其携带开发商的签名信息和服务器的签名信息。具体的,由于应用文件包在一开始出厂时包含了应用软件开发商的签名信息,视为第一签名信息,而后,服务器需要对该应用文件包进行再次签名,视为第二签名信息,至此,通过服务器对应用文件包进行再次签名,以确认该应用文件包是由相应的应用软件开发商提供给车企的固定车型的应用升级包,确保应用升级包的合法性和安全性。进一步的,当信息安全认证服务器在对应用文件包进行再次签名后,确认该应用文件包是由相应的应用软件开发商提供给车企的固定车型的应用升级包,即可将完成签名的应用升级包返还给应用软件开发商,以供诊断设备下载,并协助目标车辆对相关车载应用进行升级更新。It should be noted that the application upgrade package is signed and authenticated by an information security certified (automobile manufacturer or OEM) server, and it carries the developer's signature information and the server's signature information. Specifically, since the application file package contains the signature information of the application software developer when it is initially shipped from the factory, it is regarded as the first signature information. Then, the server needs to sign the application file package again, which is regarded as the second signature information. , re-sign the application file package through the server to confirm that the application file package is an application upgrade package for a fixed model provided by the corresponding application software developer to the car company, ensuring the legality and security of the application upgrade package. Further, when the information security authentication server re-signs the application file package and confirms that the application file package is an application upgrade package for a fixed model provided by the corresponding application software developer to the car company, the signed application can be The upgrade package is returned to the application software developer for downloading by diagnostic equipment and assists the target vehicle in upgrading and updating relevant in-vehicle applications.
在一些实施方式中,可将应用软件开发商的服务器确定为第二服务器,则诊断设备在下载应用升级包时,具体过程可以是:读取目标车辆安装的车载应用标识;根据车载应用标识向第二服务器查询应用升级包;对查询到的应用升级包进行下载。In some embodiments, the server of the application software developer can be determined as the second server. When the diagnostic device downloads the application upgrade package, the specific process may be: reading the vehicle-mounted application identification installed on the target vehicle; The second server queries the application upgrade package and downloads the queried application upgrade package.
通过以上方式,可通过诊断设备来从应用软件开发商处下载应用升级包,以便通过诊断设备来协助升级目标车辆的车载应用,提高目标车辆的车载应用的升级安全性和合规性,具有可靠性。Through the above method, the application upgrade package can be downloaded from the application software developer through the diagnostic device, so as to assist in upgrading the on-board application of the target vehicle through the diagnostic device, and improve the upgrade security and compliance of the on-board application of the target vehicle, which is reliable and reliable. sex.
105、将应用升级包传输至目标车辆,应用升级包用于目标车辆进行签名信息校验后更新车载应用。105. Transmit the application upgrade package to the target vehicle. The application upgrade package is used by the target vehicle to verify the signature information and then update the in-vehicle application.
在本申请实施例中,诊断设备在下载得到应用升级包后,即可将该应用升级包传输至目标车辆,以使得目标车辆基于该应用升级包对相应的车载应用进行升级更新。In this embodiment of the present application, after downloading the application upgrade package, the diagnostic device can transmit the application upgrade package to the target vehicle, so that the target vehicle can upgrade and update the corresponding vehicle-mounted application based on the application upgrade package.
需要说明的是,目标车辆在根据应用升级包对相应的车载应用进行升级更新时,为了提高应用升级包的安全性和可靠性,目标车辆还可在升级更新前对应用升级包进行验签。具体的,应用升级包可以包括签名证书、数字签名文件和应用文件包,目标车辆在得到应用升级包后,一方面,可获取应用文件包的数字摘要信息,并获取签名证书关联的签名公钥信息,根据数字摘要信息和签名公钥信息生成待确认文件数字签名,另一方面,将数字签名文件解密得到文件数字签名,进一步的,将待确认文件数字签名与加密得到的文件数字签名进行对比,以确定是否相同;当待确认文件数字签名与加密得到的文件数字签名一致,则表示目标车辆签名验证通过,可根据应用升级包对车载应用进行升级更新,反之,当待确认文件数字签名与加密得到的文件数字签名不一致,则表示目标车辆的签名验证不通过,可停止使用应用升级包对车载应用进行升级更新。It should be noted that when the target vehicle upgrades the corresponding in-vehicle application based on the application upgrade package, in order to improve the security and reliability of the application upgrade package, the target vehicle can also verify the application upgrade package before upgrading and updating. Specifically, the application upgrade package can include a signature certificate, a digital signature file and an application file package. After the target vehicle obtains the application upgrade package, on the one hand, it can obtain the digital summary information of the application file package and obtain the signature public key associated with the signature certificate. Information, generate a digital signature of the file to be confirmed based on the digital digest information and signature public key information. On the other hand, decrypt the digital signature file to obtain the file digital signature. Further, compare the digital signature of the file to be confirmed with the encrypted file digital signature. to determine whether they are the same; when the digital signature of the file to be confirmed is consistent with the digital signature of the encrypted file, it means that the target vehicle signature has passed the verification, and the vehicle application can be upgraded and updated according to the application upgrade package. On the contrary, when the digital signature of the file to be confirmed is consistent with the digital signature of the encrypted file, If the digital signature of the encrypted file is inconsistent, it means that the signature verification of the target vehicle fails, and you can stop using the application upgrade package to upgrade the vehicle application.
通过以上方式,可在完成诊断设备与目标车辆和服务器之间的安全性认证后,通过诊断设备将下载的应用升级包传输至目标车辆,以使得目标车辆根据应用升级包对车载软件应用进行升级更新。Through the above method, after completing the security authentication between the diagnostic device, the target vehicle and the server, the downloaded application upgrade package can be transmitted to the target vehicle through the diagnostic device, so that the target vehicle can upgrade the on-board software application according to the application upgrade package. renew.
通过实施本申请实施例中任意一个实施方式或实施方式组合,可实现车载应用更新过程的应用场景。By implementing any implementation mode or combination of implementation modes in the embodiments of this application, the application scenario of the vehicle application update process can be realized.
由上可知,本申请实施例可以获取本地设备的设备证书,并将设备证书发送至目标车辆进行认证;若接收到目标车辆针对设备证书认证通过后反馈的车辆证书,则将车辆证书发送给服务器,使得服务器通过公钥管理端对车辆证书进行合法性认证;当检测到服务器对车辆证书的合法性认证通过时,对目标车辆的车辆签名信息进行验证;当检测到对车辆签名信息的验证通过时,下载服务器的签名处理后的应用升级包;将应用升级包传输至目标车辆,使得目标车辆在对应用升级包进行签名信息校验后更新车载应用。由此可得,本方案的诊断设备可将本地设备证书发送给车辆进行认证,以及将获取到车辆证书发送至服务器进行远程认证,以实现诊断设备、车辆和服务器之间的三方认证,以完成合法性校验,提高诊断设备的可信度,进而,通过诊断设备下载经过服务器签名处理的应用升级包,并通过诊断设备将下载的应用升级包传输至目标车辆进行车载应用的更新;以此,可通过三方验证通过的诊断设备来对应用升级包的合规下载和安装,并对车载应用进行升级更新,加强对应用升级包的管理,有效避免用户信息泄露,确保车辆用户的信息安全性。It can be seen from the above that the embodiment of this application can obtain the device certificate of the local device and send the device certificate to the target vehicle for authentication; if the vehicle certificate fed back by the target vehicle after passing the device certificate authentication is received, the vehicle certificate will be sent to the server , causing the server to verify the legality of the vehicle certificate through the public key management end; when it is detected that the server has passed the legality verification of the vehicle certificate, it will verify the vehicle signature information of the target vehicle; when it is detected that the verification of the vehicle signature information has passed When the application upgrade package is signed and processed by the server, the application upgrade package is downloaded; the application upgrade package is transmitted to the target vehicle, so that the target vehicle updates the vehicle-mounted application after verifying the signature information of the application upgrade package. It can be seen that the diagnostic equipment of this solution can send the local device certificate to the vehicle for authentication, and send the obtained vehicle certificate to the server for remote authentication to achieve three-party authentication between the diagnostic equipment, vehicle and server to complete Legality verification improves the credibility of the diagnostic device, and then downloads the application upgrade package that has been signed by the server through the diagnostic device, and transmits the downloaded application upgrade package to the target vehicle through the diagnostic device to update the in-vehicle application; , the diagnostic equipment that has passed the third-party verification can be used to download and install the application upgrade package in compliance with regulations, and upgrade and update the in-vehicle application, strengthen the management of the application upgrade package, effectively avoid the leakage of user information, and ensure the information security of vehicle users. .
根据上面实施例所描述的方法,以下将举例作进一步详细说明。According to the method described in the above embodiment, examples will be given below for further detailed explanation.
本申请实施例以数据处理为例,对本申请实施例提供的数据处理方法作进一步叙述。The embodiment of this application takes data processing as an example to further describe the data processing method provided by the embodiment of this application.
图3是本申请实施例提供的车载应用更新方法的另一步骤流程示意图,图4是本申请实施例提供的车载应用更新场景的架构示意图,图5是本申请实施例提供的车辆的车载应用更新场景的示意图,图6是本申请实施例提供的诊断设备与服务器和车辆之间的认证场景的时序图,图7是本申请实施例提供的应用升级包的二次签名的场景时序图。为了便于理解,本申请实施例结合图3-7进行描述。Figure 3 is a schematic flowchart of another step of the vehicle application update method provided by the embodiment of the present application. Figure 4 is an architectural schematic diagram of the vehicle application update scenario provided by the embodiment of the present application. Figure 5 is the vehicle application of the vehicle provided by the embodiment of the present application. As a schematic diagram of the update scenario, Figure 6 is a sequence diagram of the authentication scenario between the diagnostic device, the server and the vehicle provided by the embodiment of the present application. Figure 7 is a sequence diagram of the secondary signature scenario of the application upgrade package provided by the embodiment of the present application. For ease of understanding, the embodiments of the present application are described with reference to Figures 3-7.
在本申请实施例中,将从车载应用更新装置的角度进行描述,该车载应用更新装置具体可以集成在计算机设备如终端或服务器中。例如,该计算机设备上的处理器执行车载应用更新方法对应的程序时,该车载应用更新方法的具体流程如下:In this embodiment of the present application, description will be made from the perspective of a vehicle-mounted application update device. The vehicle-mounted application update device may be integrated in a computer device such as a terminal or a server. For example, when the processor on the computer device executes the program corresponding to the vehicle-mounted application update method, the specific process of the vehicle-mounted application update method is as follows:
需要说明的是,本申请实施例包括信息安全认证(汽车厂商或主机厂的)服务器、诊断设备、目标车辆以及应用软件开发商使用的应用包管理服务器(开发商可以通过客户端或web页面来与应用包管理服务器进行交互),以上各端之间通过数据交互来实现诊断设备与服务器和目标车辆之间的合法性认证,以及通过服务器对软件开发商的软件文件包进行签名确认,并通过诊断设备下载应用升级包。It should be noted that the embodiments of this application include information security authentication servers (from car manufacturers or OEMs), diagnostic equipment, target vehicles, and application package management servers used by application software developers (developers can use the client or web page to Interact with the application package management server), the above terminals realize the legality authentication between the diagnostic device, the server and the target vehicle through data exchange, and sign and confirm the software file package of the software developer through the server, and pass Download the application upgrade package for diagnostic equipment.
201、服务器接收应用包管理服务器发送的应用包加密请求,应用包加密请求携带有待加密的应用文件包。201. The server receives the application package encryption request sent by the application package management server. The application package encryption request carries the application file package to be encrypted.
在本申请实施例中,该应用升级包为经过信息安全认证(汽车厂商或主机厂)服务器的签名认证。具体的,由于应用文件包/应用软件包在一开始出厂时包含了应用软件开发商的签名信息,视为第一签名信息,而后,服务器需要对该应用文件包进行再次签名,视为第二签名信息,至此,通过服务器对应用文件包进行再次签名,以确认该应用文件包是由相应的应用软件开发商提供给车企的固定车型的应用升级包,确保应用升级包的合法性和安全性。In the embodiment of this application, the application upgrade package is signed and authenticated by an information security authentication (automobile manufacturer or OEM) server. Specifically, since the application file package/application software package contains the signature information of the application software developer when it is initially shipped from the factory, it is regarded as the first signature information. Then, the server needs to sign the application file package again, which is regarded as the second signature information. Signature information. At this point, the application file package is signed again through the server to confirm that the application file package is an application upgrade package for a fixed model provided by the corresponding application software developer to the car company, ensuring the legality and security of the application upgrade package. sex.
其中,该应用管理页面可以是与服务器连接的管理页面,该应该管理页面可以是web页面,应用软件开发商可以通过该应用管理页面来实现与服务器之间的文件数据传输,例如,通过该应用管理页面来发送需要签名确认的应用文件包至服务器,而服务器在完成对应用文件包的二次签名确认后,将签名确认后的应用升级包返回至应用管理页面。The application management page may be a management page connected to the server. The management page may be a web page. Application software developers may use the application management page to implement file data transmission with the server. For example, through the application The management page is used to send the application file package that requires signature confirmation to the server. After completing the secondary signature confirmation of the application file package, the server returns the signed and confirmed application upgrade package to the application management page.
具体的,为了提高应用软件包的可信度,车企可限定任何用于旗下车辆的车载应用软件包都需要经过信息安全认证服务器的签名确认,以达到目标车辆的车载应用安全、合规地升级更新,并避免车辆用户的信息泄露。因此,应用软件开发商可以通过该应用管理页面向服务器发送应用包加密请求,该应用包加密请求携带有待加密的应用文件包,服务器后续可以对该应用文件包进行签名。Specifically, in order to improve the credibility of application software packages, car companies can restrict that any in-vehicle application software package used for its vehicles needs to be signed and confirmed by the information security authentication server to ensure that the in-vehicle application of the target vehicle is safe and compliant. Upgrade updates and avoid vehicle user information leakage. Therefore, the application software developer can send an application package encryption request to the server through the application management page. The application package encryption request carries the application file package to be encrypted, and the server can subsequently sign the application file package.
202、服务器对待加密的应用文件包进行加密签名,得到文件签名数据。202. The server performs an encrypted signature on the application file package to be encrypted, and obtains the file signature data.
在本申请实施例中,为了确保应用软件包的安全性,服务器可以通过签名方式来确认应用软件包,具体的,通过对应用软件包进行数字签名,以进行数字签名验证,并在数字签名验证通过后,确认该应用软件包符合安全性。In the embodiment of this application, in order to ensure the security of the application software package, the server can confirm the application software package through a signature method. Specifically, by digitally signing the application software package for digital signature verification, and after the digital signature verification After passing, confirm that the application package complies with security.
在一些实施方式中,步骤202“对待加密的应用文件包进行加密签名,得到文件签名数据”,可以包括:In some embodiments, step 202 "Encrypt and sign the application file package to be encrypted to obtain file signature data" may include:
(202.1)对待加密的应用文件包进行加密处理,并根据加密处理得到的加密文件包生成对应的文件哈希值;(202.1) Encrypt the application file package to be encrypted, and generate the corresponding file hash value based on the encrypted file package obtained by the encryption process;
(202.2)对文件哈希值进行编码处理,得到哈希编码数据;(202.2) Encode the file hash value to obtain hash-encoded data;
(202.3)将哈希编码数据发送至公钥管理端进行签名处理,得到公钥管理端反馈的文件签名数据。(202.3) Send the hash coded data to the public key management terminal for signature processing, and obtain the file signature data fed back by the public key management terminal.
具体的,为了对应用文件包进行签名确认,服务器在得到需要签名确认的应用文件包后,首先,可以通过密码算法对该待加密的应用文件包进行加密处理,得到加密文件包,进而,生成该加密文件包的文件哈希值,然后,对文件哈希值进行编码处理,得到哈希编码数据,最后,通过公钥管理端(Public Key Infrastructure,PKI)来实现签名确认,具体为将哈希编码数据传输至公钥管理端,通过公钥管理端来对哈希编码数据进行签名,并将签名得到的文件签名数据返回给服务器,以便服务器将文件签名数据发给应用管理页面进行打包。Specifically, in order to perform signature confirmation on the application file package, after the server obtains the application file package that requires signature confirmation, it can first encrypt the application file package to be encrypted through a cryptographic algorithm to obtain the encrypted file package, and then generate The file hash value of the encrypted file package is then encoded to obtain the hash encoded data. Finally, the signature is confirmed through the public key infrastructure (PKI). Specifically, the hash value is The hash-encoded data is transmitted to the public key management end, and the hash-encoded data is signed through the public key management end, and the signed file signature data is returned to the server so that the server can send the file signature data to the application management page for packaging.
在一些实施方式中,可按照预设接口数据格式来将哈希编码数据发送至公钥管理端进行签名处理。例如,步骤(202.3)“将哈希编码数据发送至公钥管理端进行签名处理”,可以包括:获取应用文件包对应的签名证书,并根据签名证书确定公钥管理端对应的接口数据格式;按照接口数据格式将哈希编码数据转换为目标哈希数据;将目标哈希数据发送至公钥管理端进行签名处理。In some implementations, the hash-encoded data can be sent to the public key management end for signature processing according to a preset interface data format. For example, step (202.3) "Send the hash-encoded data to the public key management terminal for signature processing" may include: obtaining the signature certificate corresponding to the application file package, and determining the corresponding interface data format of the public key management terminal based on the signature certificate; Convert the hash-encoded data into target hash data according to the interface data format; send the target hash data to the public key management terminal for signature processing.
需要说明的是,该接口数据格式可以是公钥管理端的签名接口所要求的数据格式,可以根据签名证书来确定接口数据格式。具体的,由于应用软件包/应用文件包经过软件开发商的签名,其包含软件开发商对该应用软件包的签名证书,由于签名证书一般是由统一的公钥管理端(Public Key Infrastructure,PKI)生成和颁发的,则根据应用软件包对应的签名证书可以确定公钥管理端要求的接口数据格式,进而,按照的数据接口格式将哈希编码数据转换为待签名的目标哈希数据,并将需要签名的目标哈希数据发送至公钥管理端进行签名处理;其中,该签名处理过程可以是:公钥管理端根据文件包公钥信息对目标哈希数据进行签名加密,得到文件签名数据;进一步的,公钥管理端将验证结果返回给服务器,至此,服务器得到文件签名数据,完成了对应用软件包的二次签名的流程。It should be noted that the interface data format may be the data format required by the signature interface of the public key management end, and the interface data format may be determined based on the signature certificate. Specifically, since the application software package/application file package is signed by the software developer, it contains the software developer's signature certificate for the application software package, because the signature certificate is generally generated by a unified public key infrastructure (PKI). ) generated and issued, the interface data format required by the public key management end can be determined based on the signature certificate corresponding to the application software package, and then the hash-encoded data is converted into the target hash data to be signed according to the data interface format, and Send the target hash data that needs to be signed to the public key management terminal for signature processing; the signature processing process can be: the public key management terminal signs and encrypts the target hash data according to the public key information of the file package to obtain the file signature data ; Further, the public key management end returns the verification result to the server. At this point, the server obtains the file signature data and completes the secondary signature process of the application software package.
203、服务器将文件签名数据反馈给应用包管理服务器,使得应用包管理服务器根据文件签名数据和签名证书打包生成应用升级包。203. The server feeds back the file signature data to the application package management server, so that the application package management server packages and generates an application upgrade package based on the file signature data and the signature certificate.
在本申请实施例中,服务器在完成对应用软件包的二次签名后,除了得到文件签名数据外,还可得到二次签名的目标签名证书,该目标签名证书符合相应的场景,此时,服务器可将文件签名数据以及目标签名证书返回至应用包管理服务器,以使得应用包管理服务器将文件签名数据存储加密得到数字签名文件,并将数字签名文件、目标签名证书和应用软件包进行打包,以使得软件开发商获得打包好的应用升级包。In the embodiment of this application, after the server completes the secondary signature of the application software package, in addition to obtaining the file signature data, it can also obtain the target signature certificate of the secondary signature. The target signature certificate meets the corresponding scenario. At this time, The server can return the file signature data and the target signature certificate to the application package management server, so that the application package management server stores and encrypts the file signature data to obtain a digital signature file, and packages the digital signature file, target signature certificate and application software package, This enables software developers to obtain packaged application upgrade packages.
204、服务器响应于诊断设备发送的设备证书获取请求,将设备证书传输至诊断设备。204. The server responds to the device certificate acquisition request sent by the diagnostic device and transmits the device certificate to the diagnostic device.
在本申请实施例中,为了对车辆中的应用软件进行合规、安全地升级更新,以避免非法应用窃取车辆用户的信息,需要对应用软件的升级文件包的下载和安装进行安全性管理。为了确保车载应用的安全合规升级,本申请实施例先完成诊断设备与目标车辆之间的安全性验证,具体的,诊断设备可以通过证书验证的方式来实现合法性校验,因此,服务器在接收到诊断设备发送的设备证书获取请求时,可将设备证书传输给诊断设备,以便目标车辆通过设备证书来完成对诊断设备的合法性认证。In the embodiment of this application, in order to compliantly and securely upgrade the application software in the vehicle to prevent illegal applications from stealing the vehicle user's information, it is necessary to perform security management on the download and installation of the upgrade file package of the application software. In order to ensure the safety and compliance upgrade of vehicle applications, the embodiment of this application first completes the security verification between the diagnostic device and the target vehicle. Specifically, the diagnostic device can implement legality verification through certificate verification. Therefore, the server When receiving the device certificate acquisition request sent by the diagnostic device, the device certificate can be transmitted to the diagnostic device so that the target vehicle can complete the legality authentication of the diagnostic device through the device certificate.
其中,该设备证书可以是前述的诊断设备的数字签名证书,其可包含诊断设备的签名信息、设备公钥信息等。可选的,该设备证书可以由服务器向公钥基础设施(PublicKey Infrastructure,PKI)和权威公信机构(Certification Authority,CA)请求生成并颁发,可以理解的是,不同的设备、车辆或任意个体,其证书是不一致的,具有独立性。The device certificate may be the aforementioned digital signature certificate of the diagnostic device, which may include signature information of the diagnostic device, device public key information, etc. Optionally, the device certificate can be generated and issued by the server by requesting the Public Key Infrastructure (PKI) and the Certification Authority (CA). It is understandable that different devices, vehicles, or any individual, Its certificate is inconsistent and independent.
205、诊断设备获取本地设备的设备证书,并将设备证书发送至目标车辆进行认证。205. The diagnostic device obtains the device certificate of the local device and sends the device certificate to the target vehicle for authentication.
具体的,诊断设备在获取到本地的设备证书后,可以将该设备证书发送给目标车辆进行验证,此过程可以为目标车辆对诊断设备的合法性或安全性校验。具体的,目标车辆可以根据设备证书来对诊断设备进行合法性校验,当目标车辆可以根据设备证书对诊断设备的合法性校验通过时,说明该设备证书一开始是由目标车辆关联的信息安全认证(汽车厂商的)服务器下发,该诊断设备得到信息安全认证(汽车厂商的)服务器的认证,属于可信的终端设备,则目标车辆对设备证书认证通过的诊断设备赋予可信状态,以便后续将目标车辆自身的车辆证书发送给诊断设备,以进行车辆的合法性验证。Specifically, after obtaining the local device certificate, the diagnostic device can send the device certificate to the target vehicle for verification. This process can verify the legality or safety of the diagnostic device for the target vehicle. Specifically, the target vehicle can verify the legitimacy of the diagnostic device based on the device certificate. When the target vehicle can pass the legitimacy verification of the diagnostic device based on the device certificate, it means that the device certificate was originally information associated with the target vehicle. The security certification (car manufacturer's) server issues it, and the diagnostic device is certified by the information security certification (car manufacturer's) server and is a trusted terminal device. Then the target vehicle assigns a trusted status to the diagnostic device that has passed the device certificate certification. In order to subsequently send the vehicle certificate of the target vehicle to the diagnostic device to verify the legality of the vehicle.
206、诊断设备在接收到目标车辆针对设备证书认证通过后反馈的车辆证书时,将车辆证书发送给服务器。206. When the diagnostic device receives the vehicle certificate fed back by the target vehicle after passing the device certificate authentication, it sends the vehicle certificate to the server.
具体的,当目标车辆针对诊断设备的设备证书认证通过时,完成了诊断设备与目标车辆之间的合法性验证,此时,目标车辆对诊断设备是可信任的,目标车辆在接收到诊断设备发送的车辆证书获取请求时,可以将自身的车辆证书发送给诊断设备,或者目标车辆在完成对诊断设备的合法性验证后主动发送自身的车辆证书至诊断设备,以便诊断设备根据车辆证书对目标车辆进行合法性验证。Specifically, when the target vehicle passes the device certificate authentication for the diagnostic device, the legality verification between the diagnostic device and the target vehicle is completed. At this time, the target vehicle is trustworthy to the diagnostic device. The target vehicle receives the diagnostic device When sending a vehicle certificate acquisition request, it can send its own vehicle certificate to the diagnostic device, or the target vehicle can actively send its own vehicle certificate to the diagnostic device after completing the legality verification of the diagnostic device, so that the diagnostic device can verify the target based on the vehicle certificate. Vehicle legality verification.
其中,该车辆证书可以是目标车辆的数字签名证书,其可包含目标车辆的签名信息、车辆公钥信息等。可选的,该车辆证书可以由(车辆厂商的)服务器向公钥基础设施(Public Key Infrastructure,PKI)和权威公信机构(Certification Authority,CA)的系统请求生成并颁发。The vehicle certificate may be a digital signature certificate of the target vehicle, which may include signature information of the target vehicle, vehicle public key information, etc. Optionally, the vehicle certificate can be generated and issued by a server (vehicle manufacturer's) requesting the public key infrastructure (Public Key Infrastructure, PKI) and authoritative public authority (Certification Authority, CA) system.
需要说明的是,诊断设备在对车辆证书进行认证时,可以通过远程认证的方式,如将车辆证书发送给服务器,以请求服务器对该车辆证书进行认证。It should be noted that when the diagnostic device authenticates the vehicle certificate, it can use remote authentication, such as sending the vehicle certificate to the server to request the server to authenticate the vehicle certificate.
207、服务器对车辆证书进行合法性认证,并将验证结果反馈给诊断设备。207. The server verifies the legality of the vehicle certificate and feeds the verification result back to the diagnostic device.
在本申请实施例中,当诊断设备将车辆证书发送至服务器,以请求远程认证时,服务器可将车辆证书传输至公钥管理端,使得公钥管理端对车辆证书进行证书的合法性认证。具体的,公钥管理端在对车辆证书进行合法性认证时,根据车辆证书的摘要信息和车辆公钥信息生成待校验车辆签名信息,并将待校验车辆签名信息与车辆证书对应的车辆签名信息进行比较,若校验车辆签名信息与车辆证书对应的车辆签名信息一致,则表示对车辆证书的合法性验证通过,反之,若校验车辆签名信息与车辆证书对应的车辆签名信息不一致,则表示对车辆证书的合法性验证不通过;进一步的,公钥管理端将验证结果返回给服务器。In the embodiment of this application, when the diagnostic device sends the vehicle certificate to the server to request remote authentication, the server can transmit the vehicle certificate to the public key management end, so that the public key management end verifies the validity of the vehicle certificate. Specifically, when the public key management end authenticates the validity of the vehicle certificate, it generates the vehicle signature information to be verified based on the summary information of the vehicle certificate and the vehicle public key information, and compares the vehicle signature information to be verified with the vehicle corresponding to the vehicle certificate. Compare the signature information. If the verification vehicle signature information is consistent with the vehicle signature information corresponding to the vehicle certificate, it means that the legality verification of the vehicle certificate is passed. On the contrary, if the verification vehicle signature information is inconsistent with the vehicle signature information corresponding to the vehicle certificate, It means that the validity verification of the vehicle certificate fails; further, the public key management end returns the verification result to the server.
在本申请实施例中,服务器在得到对车辆证书的合法性验证的验证结果后,将验证结果反馈给诊断设备。例如,服务器在对车辆证书的合法性认证通过时,向诊断设备反馈对车辆证书的合法性认证通过的验证结果;反之,向诊断设备反馈对车辆证书的合法性认证不通过的验证结果。In this embodiment of the present application, after obtaining the verification result of the legality verification of the vehicle certificate, the server feeds back the verification result to the diagnostic device. For example, when the server passes the legality authentication of the vehicle certificate, it feeds back to the diagnostic device the verification result that the legality authentication of the vehicle certificate passes; conversely, it feeds back to the diagnostic device the verification result that the legality authentication of the vehicle certificate fails.
208、诊断设备在检测到验证结果为对车辆证书的合法性认证通过时,对目标车辆的车辆签名信息进行验证。208. When the diagnostic device detects that the verification result is that the legality certification of the vehicle certificate has passed, it verifies the vehicle signature information of the target vehicle.
在本申请实施例中,当服务器返回的验证结果为指示对车辆证书的合法性认证通过时,诊断设备可对目标车辆自身计算的车辆签名信息进行验证,以便完成诊断设备与目标车辆之间的双向认证。In the embodiment of this application, when the verification result returned by the server indicates that the legality authentication of the vehicle certificate has passed, the diagnostic device can verify the vehicle signature information calculated by the target vehicle itself, so as to complete the communication between the diagnostic device and the target vehicle. Two-way authentication.
具体的,诊断设备可请求目标车辆计算车辆签名信息,并读取车辆证书对应的车辆公钥;进而,通过哈希算法计算目标车辆的待确认摘要信息,并根据车辆公钥对待确认摘要信息进行加密,得到待确认车辆签名信息;若车辆签名信息与待确认车辆签名信息一致,则确定对车辆签名信息的验证通过;若车辆签名信息与待确认车辆签名信息不一致,则确定对车辆签名信息的验证不通过。Specifically, the diagnostic device can request the target vehicle to calculate the vehicle signature information and read the vehicle public key corresponding to the vehicle certificate; further, calculate the summary information to be confirmed of the target vehicle through a hash algorithm, and perform the summary information to be confirmed based on the vehicle public key. Encrypt to obtain the vehicle signature information to be confirmed; if the vehicle signature information is consistent with the vehicle signature information to be confirmed, it is determined that the vehicle signature information has been verified; if the vehicle signature information is inconsistent with the vehicle signature information to be confirmed, it is determined that the vehicle signature information has been verified Verification failed.
209、诊断设备在对车辆签名信息的验证通过时,下载服务器的签名处理后的应用升级包,并将应用升级包传输至目标车辆进行车载应用升级。209. When the diagnostic device passes the verification of the vehicle signature information, it downloads the signature-processed application upgrade package from the server, and transmits the application upgrade package to the target vehicle for vehicle-mounted application upgrade.
在本申请实施例中,当诊断设备对车辆签名信息的验证通过时,表示合法性认证流程完成,即诊断设备与目标车辆之间完整双向相互认证。此时,即可确保诊断设备和目标车辆的安全性,此时,为了对车载应用程序进行安全升级,可以通过诊断设备从软件开发商处下载相应的应用升级包,进而,诊断设备将下载的应用升级包发送给目标车辆,使得目标车辆基于该应用升级包对相应的车载应用进行升级更新。以此,实现通过诊断设备来协助升级目标车辆的车载应用,提高目标车辆中车载应用的升级更新的合规性,以及确保车辆用户的信息安全。In the embodiment of this application, when the diagnostic device passes the verification of the vehicle signature information, it means that the legality authentication process is completed, that is, complete two-way mutual authentication between the diagnostic device and the target vehicle. At this point, the safety of the diagnostic device and the target vehicle can be ensured. At this time, in order to safely upgrade the vehicle application, the corresponding application upgrade package can be downloaded from the software developer through the diagnostic device, and then the diagnostic device will download the The application upgrade package is sent to the target vehicle, so that the target vehicle upgrades and updates the corresponding vehicle-mounted application based on the application upgrade package. In this way, the diagnostic equipment can be used to assist in upgrading the in-vehicle application of the target vehicle, improve the compliance of the upgrade and update of the in-vehicle application in the target vehicle, and ensure the information security of vehicle users.
为了便于对本申请实施例的理解,将以具体的应用场景实例对本申请实施例进行描述。具体的,通过执行以上步骤201-209,以及结合图4-6,对该应用场景实例进行描述。In order to facilitate understanding of the embodiments of the present application, the embodiments of the present application will be described with specific application scenario examples. Specifically, by performing the above steps 201-209 and combining Figure 4-6, the application scenario example is described.
本申请实施例的应用场景实例可适用于车辆中车载应用的本地升级更新的场景。为了便于理解,本申请实施例将以视频直播画面的场景进行叙述,具体如下:The application scenario examples of the embodiments of the present application can be applied to the scenario of local upgrade and update of on-vehicle applications in vehicles. In order to facilitate understanding, the embodiments of this application will be described with the scene of live video, as follows:
一、如图4所示,车载应用更新系统的架构上包括汽车(目标车辆)、诊断仪(诊断设备)、(信息安全)认证服务器和PKI系统(公钥管理端)。其中,该汽车可包括多个控制单元,如ECU1、ECU2、ECU3、ECUm,每个控制单元可具有相应的软件控制程序,每个软件控制程序可以理解为一个车载应用。1. As shown in Figure 4, the architecture of the vehicle application update system includes the car (target vehicle), diagnostic instrument (diagnostic equipment), (information security) authentication server and PKI system (public key management end). The car may include multiple control units, such as ECU1, ECU2, ECU3, and ECUm. Each control unit may have a corresponding software control program, and each software control program may be understood as a vehicle-mounted application.
其中,诊断设备通过数据流交互途径来与汽车、认证服务器之间完成合法性认证,具体的,诊断仪可以通过内置的在线认证客户端或网页等方式与布置在云端的信息安全认证服务器进行连接,并进行认证,以确认诊断仪的合法性。以及,诊断设备需要与汽车之间完成相互认证,具体是诊断设备与目标车辆中的相关控制单元(ECU节点)完成相互认证,以确认目标车辆的合法性。Among them, the diagnostic device completes legality authentication with the car and the authentication server through data flow interaction. Specifically, the diagnostic device can connect to the information security authentication server arranged in the cloud through a built-in online authentication client or web page. , and conduct certification to confirm the legitimacy of the diagnostic instrument. Furthermore, the diagnostic equipment needs to complete mutual authentication with the car. Specifically, the diagnostic equipment and the relevant control unit (ECU node) in the target vehicle need to complete mutual authentication to confirm the legitimacy of the target vehicle.
此外,诊断仪在完成双向认证后,可将下载的应用升级包传递到目标车辆的ECU节点进行相应的车载应用升级更新。如图5所示,ECU节点在得到应用升级包后,将应用升级包中的数字签名文件解密得到数字签名信息,同时,ECU节点根据应用文件包的数字摘要信息生成待确认文件数字签名,进一步的,通过比较待确认文件数字签名与文件数字签名,以对文件的签名信息进行验签,当签名信息验签通过后,ECU节点则根据应用升级包对ECU节点对应的车载应用进行升级更新,反之,当验签不通过时,则不进行车载应用的升级更新。以此,确保应用升级包的可信度,使得车载应用能够合规、安全升级,提高车辆用户的信息安全性。In addition, after completing two-way authentication, the diagnostic instrument can transfer the downloaded application upgrade package to the ECU node of the target vehicle for corresponding on-board application upgrades and updates. As shown in Figure 5, after obtaining the application upgrade package, the ECU node decrypts the digital signature file in the application upgrade package to obtain the digital signature information. At the same time, the ECU node generates a digital signature for the file to be confirmed based on the digital summary information of the application file package. Further By comparing the digital signature of the file to be confirmed with the digital signature of the file, the signature information of the file is verified. When the signature information is verified, the ECU node upgrades and updates the vehicle-mounted application corresponding to the ECU node according to the application upgrade package. On the contrary, when the signature verification fails, the in-vehicle application will not be upgraded. This ensures the credibility of the application upgrade package, enables in-vehicle applications to be compliant and securely upgraded, and improves the information security of vehicle users.
二、参见图6所示,诊断设备与汽车、认证服务器之间完成合法性认证,该合法性认证流程如下:2. As shown in Figure 6, the legality authentication is completed between the diagnostic device, the car, and the authentication server. The legality authentication process is as follows:
(1)创建诊断设备的管理账户信息。具体的,信息安全认证服务器创建工程师A的账号和密码,该工程师A可以理解为汽修人员或车辆维护人员,其不限于是车主或汽修技术人员。进一步的,信息安全认证服务器向PKI/CA系统申请A账号的证书,使得PKI/CA系统为A账号分配证书,进而,信息安全认证服务器在收到A账号的证书后,则完成工程师A的账号创建,并将工程师A的账号和密码提供给车辆工程师A。(1) Create management account information for diagnostic equipment. Specifically, the information security authentication server creates the account and password of engineer A. Engineer A can be understood as an automobile repairman or vehicle maintenance personnel, and is not limited to a car owner or an automobile repair technician. Further, the information security authentication server applies to the PKI/CA system for the certificate of account A, causing the PKI/CA system to allocate a certificate to account A. Furthermore, after receiving the certificate of account A, the information security authentication server completes the account verification of engineer A. Create and provide Engineer A's account and password to Vehicle Engineer A.
(2)通过工程师A的账号和密码登录诊断设备,以启动合法性认证流程,流程具体如下:(2) Log in to the diagnostic device with Engineer A’s account and password to start the legality authentication process. The process is as follows:
(2.1)诊断设备向信息安全认证服务器请求设备证书。(2.1) The diagnostic device requests a device certificate from the information security authentication server.
(2.2)信息安全认证服务器返回设备证书至诊断设备。(2.2) The information security authentication server returns the device certificate to the diagnostic device.
(2.3)诊断设备将设备证书发送至目标车辆,以请求目标车辆验证设备证书。(2.3) The diagnostic device sends the device certificate to the target vehicle to request the target vehicle to verify the device certificate.
(2.4)目标车辆对设备证书认证成功,表示对诊断设备的信任,并将自身的车辆证书返回给诊断设备。(2.4) The target vehicle successfully authenticates the device certificate, indicating its trust in the diagnostic device, and returns its own vehicle certificate to the diagnostic device.
(2.5)诊断设备将车辆证书发送给信息安全认证服务器,请求信息安全认证服务器验证车辆证书。(2.5) The diagnostic device sends the vehicle certificate to the information security authentication server and requests the information security authentication server to verify the vehicle certificate.
(2.6)信息安全认证服务器请求公钥管理端(PKI/CA系统)验证车辆证书,使得公钥管理端在验证完毕后返回验证结果至信息安全认证服务器。(2.6) The information security authentication server requests the public key management end (PKI/CA system) to verify the vehicle certificate, so that the public key management end returns the verification result to the information security authentication server after the verification is completed.
(2.7)信息安全认证服务器将车辆证书的验证结果返回给诊断设备。(2.7) The information security authentication server returns the verification result of the vehicle certificate to the diagnostic device.
(2.8)诊断设备在检测到对车辆证书的合法性认证通过后,请求目标车辆计算车辆签名信息。(2.8) After detecting that the legality authentication of the vehicle certificate is passed, the diagnostic device requests the target vehicle to calculate the vehicle signature information.
(2.9)目标车辆在计算自身的车辆签名信息,并将计算的车辆签名信息返回给诊断设备。(2.9) The target vehicle is calculating its own vehicle signature information and returning the calculated vehicle signature information to the diagnostic device.
(2.10)诊断设备针对该车辆签名信息进行验证,至此,完成诊断设备与目标车辆、信息安全认证服务器之间的合法性认证。(2.10) The diagnostic device verifies the signature information of the vehicle. At this point, the legality authentication between the diagnostic device, the target vehicle, and the information security authentication server is completed.
三、信息安全认证服务器对应用升级包进行签名确认。具体的,ECU零部件供应商(应用软件开发商)提交的应用软件包中包含了零部件供应自身的签名信息,主机厂(信息安全认证服务器)需要对应用软件包进行第二次签名,从而确认该应用软件包是由相应的零部件供应商提供给车企的固定车型的应用升级包,确保应用升级包的合法性和安全性。具体的,参见图7所示,信息安全认证服务器的签名确认流程如下:3. The information security authentication server signs and confirms the application upgrade package. Specifically, the application software package submitted by the ECU parts supplier (application software developer) contains the signature information of the parts supplier itself, and the OEM (information security authentication server) needs to sign the application software package a second time, so that Confirm that the application software package is an application upgrade package for a fixed model provided by the corresponding parts supplier to the car company to ensure the legality and safety of the application upgrade package. Specifically, as shown in Figure 7, the signature confirmation process of the information security authentication server is as follows:
(3.1)升级包发布者(零部件供应商)生成应用文件包,其已加你个携带有供应商自身的签名;进而,将应用文件包发送至web页面。(3.1) The upgrade package publisher (parts supplier) generates an application file package, which has been added with the supplier's own signature; then, the application file package is sent to the web page.
(3.2)web页面将待签名的应用文件包发送至信息安全认证服务器,以进行签名确认。(3.2) The web page sends the application file package to be signed to the information security authentication server for signature confirmation.
(3.3)信息安全认证服务器通过分组对称密码算法(SM4)对应用文件包进行加密,得到pack_encrypt key=预置密钥。(3.3) The information security authentication server encrypts the application file package through the block symmetric cipher algorithm (SM4) to obtain pack_encrypt key = preset key.
(3.4)信息安全认证服务器生成pack_encrypt文件包的sha256,并按照Base64编码方式对哈希值sha256进行编码,得到编码数据Base64HashData。(3.4) The information security authentication server generates the sha256 of the pack_encrypt file package, and encodes the hash value sha256 according to the Base64 encoding method to obtain the encoded data Base64HashData.
(3.5)信息安全认证服务器查询应用文件包的前模证书,并根据签名证书来确定PKI签名接口要求的数据格式。(3.5) The information security authentication server queries the pre-model certificate of the application file package and determines the data format required by the PKI signature interface based on the signature certificate.
(3.6)按照PKI签名接口要求的数据格式,将编码数据Base64HashData转换为目标哈希数据HashData。(3.6) Convert the encoded data Base64HashData into the target hash data HashData according to the data format required by the PKI signature interface.
(3.7)信息安全认证服务器将待签名的目标哈希数据HashData发送给PKI系统,以通过PKI系统对目标哈希数据HashData进行签名,并返回文件签名数据至信息安全认证服务器。(3.7) The information security authentication server sends the target hash data HashData to be signed to the PKI system to sign the target hash data HashData through the PKI system, and returns the file signature data to the information security authentication server.
(3.8)信息安全认证服务器将文件签名数据和场景-签名证书发送至web页面。(3.8) The information security authentication server sends the file signature data and scenario-signing certificate to the web page.
(3.9)web页面以文件的形式保存文件签名数据,得到数字签名文件,并将数字签名文件、签名证书和应用文件包进行打包,得到信息安全认证服务器签名确认的应用升级包,以供申报发布者保存。(3.9) The web page saves the file signature data in the form of a file, obtains a digital signature file, and packages the digital signature file, signature certificate and application file package to obtain an application upgrade package signed and confirmed by the information security authentication server for declaration and release. or save.
通过执行以上应用场景,不仅可实现转移、云端信息安全认证服务器及目标车辆之间三方认证的流程,还可通过信息安全认证服务器对待发布的应用软件包进行再次签名确认,以确保应用升级包的安全性和可靠性。以此,确保在车载应用的本地升级刷新时的机密性、完整性和有效性。By executing the above application scenario, not only can the three-party authentication process between the transfer, the cloud information security authentication server and the target vehicle be realized, but the application software package to be released can also be re-signed and confirmed through the information security authentication server to ensure the authenticity of the application upgrade package. Security and reliability. In this way, the confidentiality, integrity and effectiveness of local upgrades and refreshes of in-vehicle applications are ensured.
由以上可知,本申请实施例可将本地设备证书发送给车辆进行认证,以及将获取到车辆证书发送至服务器进行远程认证,以实现诊断设备、车辆和服务器之间的三方认证,以完成合法性校验,提高诊断设备的可信度,进而,通过诊断设备下载经过服务器签名处理的应用升级包,并通过诊断设备将下载的应用升级包传输至目标车辆进行车载应用的更新;以此,可通过三方验证通过的诊断设备来对应用升级包的合规下载和安装,并对车载应用进行升级更新,加强对应用升级包的管理,有效避免用户信息泄露,确保车辆用户的信息安全性。As can be seen from the above, the embodiment of this application can send the local device certificate to the vehicle for authentication, and send the obtained vehicle certificate to the server for remote authentication, so as to achieve three-party authentication between the diagnostic device, the vehicle and the server to complete the legality Verification improves the credibility of the diagnostic device, and then downloads the application upgrade package that has been signed by the server through the diagnostic device, and transmits the downloaded application upgrade package to the target vehicle through the diagnostic device for updating the in-vehicle application; in this way, it can Use diagnostic equipment that has passed three-party verification to download and install application upgrade packages in compliance with regulations, upgrade and update vehicle applications, strengthen the management of application upgrade packages, effectively avoid user information leakage, and ensure vehicle user information security.
为了更好地实施以上方法,本申请实施例还提供一种车载应用更新装置。例如,如图8所示,该车载应用更新装置可以包括获取单元401、发送单元402、验证单元403、下载单元404和传输单元405。In order to better implement the above method, embodiments of the present application also provide a vehicle-mounted application updating device. For example, as shown in FIG. 8 , the vehicle-mounted application update device may include an acquisition unit 401, a sending unit 402, a verification unit 403, a download unit 404 and a transmission unit 405.
获取单元401,用于获取本地设备的设备证书,并将设备证书发送至目标车辆进行认证;The acquisition unit 401 is used to obtain the device certificate of the local device and send the device certificate to the target vehicle for authentication;
发送单元402,用于若接收到目标车辆针对设备证书认证通过后反馈的车辆证书,则将车辆证书发送给服务器,车辆证书用于服务器进行合法性认证;The sending unit 402 is configured to send the vehicle certificate to the server if the vehicle certificate fed back by the target vehicle after passing the device certificate authentication is received, and the vehicle certificate is used by the server for legality authentication;
验证单元403,用于在服务器对车辆证书的合法性认证通过的情况下,对目标车辆的车辆签名信息进行验证;The verification unit 403 is used to verify the vehicle signature information of the target vehicle when the server passes the legality certification of the vehicle certificate;
下载单元404,用于在对车辆签名信息的验证通过的情况下,获取应用升级包,应用升级包携带开发商的签名信息和服务器的签名信息;The download unit 404 is used to obtain the application upgrade package when the verification of the vehicle signature information passes. The application upgrade package carries the developer's signature information and the server's signature information;
传输单元405,用于将应用升级包传输至目标车辆,应用升级包用于目标车辆进行签名信息校验后更新车载应用。The transmission unit 405 is used to transmit the application upgrade package to the target vehicle. The application upgrade package is used by the target vehicle to update the in-vehicle application after verifying the signature information.
在一些实施方式中,车载应用更新装置还包括登录单元,用于:获取登录的管理账户信息;In some implementations, the vehicle-mounted application updating device further includes a login unit, configured to: obtain logged-in management account information;
则获取单元401,用于若对管理账户信息的验证通过,向服务器获取本地设备的设备证书。The obtaining unit 401 is configured to obtain the device certificate of the local device from the server if the verification of the management account information is passed.
在一些实施方式中,验证单元403,还用于:从目标车辆中获取车辆签名信息,以及读取车辆证书对应的车辆公钥;通过哈希算法计算目标车辆的待确认摘要信息,并根据车辆公钥对待确认摘要信息进行加密,得到待确认车辆签名信息;若车辆签名信息与待确认车辆签名信息一致,则确定对车辆签名信息的验证通过;若车辆签名信息与待确认车辆签名信息不一致,则确定对车辆签名信息的验证不通过。In some implementations, the verification unit 403 is also used to: obtain the vehicle signature information from the target vehicle and read the vehicle public key corresponding to the vehicle certificate; calculate the summary information to be confirmed of the target vehicle through a hash algorithm, and calculate the summary information according to the vehicle The public key encrypts the summary information to be confirmed to obtain the vehicle signature information to be confirmed; if the vehicle signature information is consistent with the vehicle signature information to be confirmed, it is determined that the verification of the vehicle signature information has passed; if the vehicle signature information is inconsistent with the vehicle signature information to be confirmed, Then it is determined that the verification of the vehicle signature information fails.
由以上可知,本申请实施例可将本地设备证书发送给车辆进行认证,以及将获取到车辆证书发送至服务器进行远程认证,以实现诊断设备、车辆和服务器之间的三方认证,以完成合法性校验,提高诊断设备的可信度,进而,通过诊断设备下载经过服务器签名处理的应用升级包,并通过诊断设备将下载的应用升级包传输至目标车辆进行车载应用的更新;以此,可通过三方验证通过的诊断设备来对应用升级包的合规下载和安装,并对车载应用进行升级更新,加强对应用升级包的管理,有效避免用户信息泄露,确保车辆用户的信息安全性。As can be seen from the above, the embodiment of this application can send the local device certificate to the vehicle for authentication, and send the obtained vehicle certificate to the server for remote authentication, so as to achieve three-party authentication between the diagnostic device, the vehicle and the server to complete the legality Verification improves the credibility of the diagnostic device, and then downloads the application upgrade package that has been signed by the server through the diagnostic device, and transmits the downloaded application upgrade package to the target vehicle through the diagnostic device for updating the in-vehicle application; in this way, it can Use diagnostic equipment that has passed three-party verification to download and install application upgrade packages in compliance with regulations, upgrade and update vehicle applications, strengthen the management of application upgrade packages, effectively avoid user information leakage, and ensure vehicle user information security.
为了更好地实施以上方法,本申请实施例还提供一种车载应用更新装置。例如,如图9所示,该车载应用更新装置可以包括传输单元501、认证单元502和反馈单元503。In order to better implement the above method, embodiments of the present application also provide a vehicle-mounted application updating device. For example, as shown in FIG. 9 , the vehicle-mounted application update device may include a transmission unit 501 , an authentication unit 502 and a feedback unit 503 .
传输单元501,用于响应于诊断设备发送的设备证书获取请求,将设备证书传输至诊断设备;The transmission unit 501 is configured to transmit the device certificate to the diagnostic device in response to the device certificate acquisition request sent by the diagnostic device;
认证单元502,用于接收诊断设备发送的车辆证书认证请求,对车辆证书进行合法性认证,其中,车辆证书由目标车辆对设备证书认证通过后反馈给诊断设备;The authentication unit 502 is configured to receive a vehicle certificate authentication request sent by the diagnostic device, and perform legality authentication on the vehicle certificate, where the vehicle certificate is fed back to the diagnostic device after the target vehicle passes the device certificate authentication;
反馈单元503,用于若对车辆证书的合法性认证通过,则向诊断设备反馈对车辆证书的合法性认证通过的验证结果,使得诊断设备在对目标车辆的车辆签名信息验证通过后将下载的应用升级包传输至目标车辆进行车载应用更新,应用升级包携带开发商的签名信息和服务器的签名信息。The feedback unit 503 is configured to, if the legality authentication of the vehicle certificate passes, feed back the verification result of the legality authentication of the vehicle certificate to the diagnostic device, so that the diagnostic device will verify the downloaded vehicle signature information of the target vehicle after passing the verification. The application upgrade package is transmitted to the target vehicle for on-vehicle application update. The application upgrade package carries the developer's signature information and the server's signature information.
在一些实施方式中,认证单元502,还用于:将车辆证书传输至公钥管理端,使得公钥管理端对车辆证书进行证书的合法性认证。In some implementations, the authentication unit 502 is also used to transmit the vehicle certificate to the public key management terminal, so that the public key management terminal verifies the validity of the vehicle certificate.
在一些实施方式中,车载应用更新装置还包括签名确认单元,用于:接收应用包管理服务器发送的应用包加密请求,应用包加密请求携带有待加密的应用文件包;对待加密的应用文件包进行加密签名,得到文件签名数据;将文件签名数据反馈给应用包管理服务器,使得应用包管理服务器根据文件签名数据和签名证书打包生成应用升级包。In some embodiments, the vehicle-mounted application update device further includes a signature confirmation unit, configured to: receive an application package encryption request sent by the application package management server, where the application package encryption request carries an application file package to be encrypted; Encrypt the signature to obtain the file signature data; feed the file signature data back to the application package management server, so that the application package management server packages and generates an application upgrade package based on the file signature data and signature certificate.
在一些实施方式中,签名确认单元,还用于:对待加密的应用文件包进行加密处理,并根据加密处理得到的加密文件包生成对应的文件哈希值;对文件哈希值进行编码处理,得到哈希编码数据;将哈希编码数据发送至公钥管理端进行签名处理,得到公钥管理端反馈的文件签名数据。In some embodiments, the signature confirmation unit is also used to: encrypt the application file package to be encrypted, and generate the corresponding file hash value based on the encrypted file package obtained by the encryption process; encode the file hash value, Obtain the hash-encoded data; send the hash-encoded data to the public key management terminal for signature processing, and obtain the file signature data fed back by the public key management terminal.
在一些实施方式中,签名确认单元,还用于:获取应用文件包对应的签名证书,并根据签名证书确定公钥管理端对应的接口数据格式;按照接口数据格式将哈希编码数据转换为目标哈希数据;将目标哈希数据发送至公钥管理端进行签名处理。In some embodiments, the signature confirmation unit is also used to: obtain the signature certificate corresponding to the application file package, and determine the interface data format corresponding to the public key management end based on the signature certificate; convert the hash-encoded data into the target according to the interface data format Hash data; send the target hash data to the public key management terminal for signature processing.
由以上可知,本申请实施例可将本地设备证书发送给车辆进行认证,以及将获取到车辆证书发送至服务器进行远程认证,以实现诊断设备、车辆和服务器之间的三方认证,以完成合法性校验,提高诊断设备的可信度,进而,通过诊断设备下载经过服务器签名处理的应用升级包,并通过诊断设备将下载的应用升级包传输至目标车辆进行车载应用的更新;以此,可通过三方验证通过的诊断设备来对应用升级包的合规下载和安装,并对车载应用进行升级更新,加强对应用升级包的管理,有效避免用户信息泄露,确保车辆用户的信息安全性。As can be seen from the above, the embodiment of this application can send the local device certificate to the vehicle for authentication, and send the obtained vehicle certificate to the server for remote authentication, so as to achieve three-party authentication between the diagnostic device, the vehicle and the server to complete the legality Verification improves the credibility of the diagnostic device, and then downloads the application upgrade package that has been signed by the server through the diagnostic device, and transmits the downloaded application upgrade package to the target vehicle through the diagnostic device for updating the in-vehicle application; in this way, it can Use diagnostic equipment that has passed three-party verification to download and install application upgrade packages in compliance with regulations, upgrade and update vehicle applications, strengthen the management of application upgrade packages, effectively avoid user information leakage, and ensure vehicle user information security.
本申请实施例还提供一种计算机设备,如图10所示,其示出了本申请实施例所涉及的计算机设备的结构示意图,具体来讲:An embodiment of the present application also provides a computer device, as shown in Figure 10, which shows a schematic structural diagram of the computer device involved in the embodiment of the present application. Specifically:
该计算机设备可以包括一个或者一个以上处理核心的处理器601、一个或一个以上计算机可读存储介质的存储器602、电源603和输入单元604等部件。本领域技术人员可以理解,图10中示出的计算机设备结构并不构成对计算机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。其中:The computer device may include components such as a processor 601 of one or more processing cores, a memory 602 of one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art can understand that the structure of the computer equipment shown in Figure 10 does not constitute a limitation on the computer equipment, and may include more or fewer components than shown, or combine certain components, or arrange different components. in:
处理器601是该计算机设备的控制中心,利用各种接口和线路连接整个计算机设备的各个部分,通过运行或执行存储在存储器602内的软件程序和/或模块,以及调用存储在存储器602内的数据,执行计算机设备的各种功能和处理数据。可选的,处理器601可包括一个或多个处理核心;优选的,处理器601可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器601中。The processor 601 is the control center of the computer equipment, using various interfaces and lines to connect various parts of the entire computer equipment, by running or executing software programs and/or modules stored in the memory 602, and calling software programs stored in the memory 602. Data, perform various functions of computer equipment and process data. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, where the application processor mainly processes operating systems, user interfaces, application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 601.
存储器602可用于存储软件程序以及模块,处理器601通过运行存储在存储器602的软件程序以及模块,从而执行各种功能应用以及车载应用更新。存储器602可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据计算机设备的使用所创建的数据等。此外,存储器602可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器602还可以包括存储器控制器,以提供处理器601对存储器602的访问。The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and vehicle-mounted application updates by running the software programs and modules stored in the memory 602 . The memory 602 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may store a program based on Data created by the use of computer equipment, etc. In addition, memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602 .
计算机设备还包括给各个部件供电的电源603,优选的,电源603可以通过电源管理系统与处理器601逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。电源603还可以包括一个或一个以上的直流或交流电源、再充电系统、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。The computer equipment also includes a power supply 603 that supplies power to various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so that functions such as charging, discharging, and power consumption management can be implemented through the power management system. The power supply 603 may also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
该计算机设备还可包括输入单元604,该输入单元604可用于接收输入的数字或字符信息,以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The computer device may also include an input unit 604 operable to receive input numeric or character information and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and functional controls.
尽管未示出,计算机设备还可以包括显示单元等,在此不再赘述。具体在本申请实施例中,计算机设备中的处理器601会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行文件加载到存储器602中,并由处理器601来运行存储在存储器602中的应用程序,从而实现各种功能,如下:Although not shown, the computer device may also include a display unit and the like, which will not be described again here. Specifically, in this embodiment of the present application, the processor 601 in the computer device will load the executable files corresponding to the processes of one or more application programs into the memory 602 according to the following instructions, and the processor 601 will run the stored program. The application program in the memory 602 implements various functions, as follows:
获取本地设备的设备证书,并将设备证书发送至目标车辆进行认证;若接收到目标车辆针对设备证书认证通过后反馈的车辆证书,则将车辆证书发送给服务器,车辆证书用于服务器进行合法性认证;在服务器对车辆证书的合法性认证通过的情况下,对目标车辆的车辆签名信息进行验证;在对车辆签名信息的验证通过的情况下,获取应用升级包,应用升级包携带开发商的签名信息和服务器的签名信息;将应用升级包传输至目标车辆,应用升级包用于目标车辆进行签名信息校验后更新车载应用。Obtain the device certificate of the local device and send the device certificate to the target vehicle for authentication; if the vehicle certificate received from the target vehicle after passing the device certificate authentication is received, the vehicle certificate is sent to the server, and the vehicle certificate is used by the server for legality Authentication; when the server passes the legality certification of the vehicle certificate, the vehicle signature information of the target vehicle is verified; when the verification of the vehicle signature information passes, the application upgrade package is obtained, and the application upgrade package carries the developer's Signature information and signature information of the server; transmit the application upgrade package to the target vehicle, and the application upgrade package is used by the target vehicle to verify the signature information and then update the in-vehicle application.
或者,响应于诊断设备发送的设备证书获取请求,将设备证书传输至诊断设备;接收诊断设备发送的车辆证书认证请求,对车辆证书进行合法性认证,其中,车辆证书由目标车辆对设备证书认证通过后反馈给诊断设备;若对车辆证书的合法性认证通过,则向诊断设备反馈对车辆证书的合法性认证通过的验证结果,使得诊断设备在对目标车辆的车辆签名信息验证通过后将下载的应用升级包传输至目标车辆进行车载应用更新,应用升级包携带开发商的签名信息和服务器的签名信息。Or, in response to the device certificate acquisition request sent by the diagnostic device, transmit the device certificate to the diagnostic device; receive the vehicle certificate authentication request sent by the diagnostic device, and perform legality authentication on the vehicle certificate, wherein the vehicle certificate is authenticated by the target vehicle against the device certificate After passing, it is fed back to the diagnostic device; if the legality authentication of the vehicle certificate is passed, the verification result of the legality authentication of the vehicle certificate is fed back to the diagnostic device, so that the diagnostic device will download the vehicle signature information of the target vehicle after passing the verification. The application upgrade package is transmitted to the target vehicle for in-vehicle application update. The application upgrade package carries the signature information of the developer and the signature information of the server.
以上各个操作的具体实施可参见前面的实施例,在此不作赘述。The specific implementation of each of the above operations may be referred to the previous embodiments and will not be described in detail here.
由此可得,本方案的诊断设备可将本地设备证书发送给车辆进行认证,以及将获取到车辆证书发送至服务器进行远程认证,以实现诊断设备、车辆和服务器之间的三方认证,以完成合法性校验,提高诊断设备的可信度,进而,通过诊断设备下载经过服务器签名处理的应用升级包,并通过诊断设备将下载的应用升级包传输至目标车辆进行车载应用的更新;以此,可通过三方验证通过的诊断设备来对应用升级包的合规下载和安装,并对车载应用进行升级更新,加强对应用升级包的管理,有效避免用户信息泄露,确保车辆用户的信息安全性。It can be seen that the diagnostic equipment of this solution can send the local device certificate to the vehicle for authentication, and send the obtained vehicle certificate to the server for remote authentication to achieve three-party authentication between the diagnostic equipment, vehicle and server to complete Legality verification improves the credibility of the diagnostic device, and then downloads the application upgrade package that has been signed by the server through the diagnostic device, and transmits the downloaded application upgrade package to the target vehicle through the diagnostic device to update the in-vehicle application; , the diagnostic equipment that has passed the third-party verification can be used to download and install the application upgrade package in compliance with regulations, and upgrade and update the in-vehicle application, strengthen the management of the application upgrade package, effectively avoid the leakage of user information, and ensure the information security of vehicle users. .
本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,并由处理器进行加载和执行。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. The instructions can be stored in a computer-readable storage medium, and loaded and executed by the processor.
为此,本申请实施例提供一种计算机可读存储介质,其中存储有多条指令,该指令能够被处理器进行加载,以执行本申请实施例所提供的任一种车载应用更新方法中的步骤。例如,该指令可以执行如下步骤:To this end, embodiments of the present application provide a computer-readable storage medium in which a plurality of instructions are stored, and the instructions can be loaded by the processor to execute any of the vehicle-mounted application update methods provided by the embodiments of the present application. step. For example, this command can perform the following steps:
获取本地设备的设备证书,并将设备证书发送至目标车辆进行认证;若接收到目标车辆针对设备证书认证通过后反馈的车辆证书,则将车辆证书发送给服务器,车辆证书用于服务器进行合法性认证;在服务器对车辆证书的合法性认证通过的情况下,对目标车辆的车辆签名信息进行验证;在对车辆签名信息的验证通过的情况下,获取应用升级包,应用升级包携带开发商的签名信息和服务器的签名信息;将应用升级包传输至目标车辆,应用升级包用于目标车辆进行签名信息校验后更新车载应用。Obtain the device certificate of the local device and send the device certificate to the target vehicle for authentication; if the vehicle certificate received from the target vehicle after passing the device certificate authentication is received, the vehicle certificate is sent to the server, and the vehicle certificate is used by the server for legality Authentication; when the server passes the legality certification of the vehicle certificate, the vehicle signature information of the target vehicle is verified; when the verification of the vehicle signature information passes, the application upgrade package is obtained, and the application upgrade package carries the developer's Signature information and signature information of the server; transmit the application upgrade package to the target vehicle, and the application upgrade package is used by the target vehicle to verify the signature information and then update the in-vehicle application.
或者,响应于诊断设备发送的设备证书获取请求,将设备证书传输至诊断设备;接收诊断设备发送的车辆证书认证请求,对车辆证书进行合法性认证,其中,车辆证书由目标车辆对设备证书认证通过后反馈给诊断设备;若对车辆证书的合法性认证通过,则向诊断设备反馈对车辆证书的合法性认证通过的验证结果,使得诊断设备在对目标车辆的车辆签名信息验证通过后将下载的应用升级包传输至目标车辆进行车载应用更新,应用升级包携带开发商的签名信息和服务器的签名信息。Or, in response to the device certificate acquisition request sent by the diagnostic device, transmit the device certificate to the diagnostic device; receive the vehicle certificate authentication request sent by the diagnostic device, and perform legality authentication on the vehicle certificate, wherein the vehicle certificate is authenticated by the target vehicle against the device certificate After passing, it is fed back to the diagnostic device; if the legality authentication of the vehicle certificate is passed, the verification result of the legality authentication of the vehicle certificate is fed back to the diagnostic device, so that the diagnostic device will download the vehicle signature information of the target vehicle after passing the verification. The application upgrade package is transmitted to the target vehicle for in-vehicle application update. The application upgrade package carries the signature information of the developer and the signature information of the server.
以上各个操作的具体实施可参见前面的实施例,在此不再赘述。For the specific implementation of each of the above operations, please refer to the previous embodiments and will not be described again here.
其中,该计算机可读存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)、磁盘或光盘等。The computer-readable storage medium may include: read only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
由于该计算机可读存储介质中所存储的指令,可以执行本申请实施例所提供的任一种数据处理方法中的步骤,因此,可以实现本申请实施例所提供的任一种数据处理方法所能实现的有益效果,详见前面的实施例,在此不再赘述。Since the instructions stored in the computer-readable storage medium can execute the steps in any data processing method provided by the embodiments of this application, therefore, the steps of any data processing method provided by the embodiments of this application can be realized. The beneficial effects that can be achieved are detailed in the previous embodiments and will not be described again here.
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例提供的各种可选实现方式中提供的方法。According to one aspect of the present application, a computer program product or computer program is provided, which computer program product or computer program includes computer instructions stored in a computer-readable storage medium. The processor of the 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 methods provided in the various optional implementations provided by the above embodiments.
以上对本申请实施例所提供的一种车载应用更新方法、装置以及计算机可读存储介质进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。The above is a detailed introduction to the vehicle application update method, device and computer-readable storage medium provided by the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. Description of the above embodiments It is only used to help understand the methods and core ideas of this application; at the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the ideas of this application. In summary, the content of this specification It should not be construed as a limitation on this application.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311111892.8A CN117270903A (en) | 2023-08-30 | 2023-08-30 | Vehicle-mounted application updating method, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202311111892.8A CN117270903A (en) | 2023-08-30 | 2023-08-30 | Vehicle-mounted application updating method, device, equipment and computer readable storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117270903A true CN117270903A (en) | 2023-12-22 |
Family
ID=89201767
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202311111892.8A Pending CN117270903A (en) | 2023-08-30 | 2023-08-30 | Vehicle-mounted application updating method, device, equipment and computer readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117270903A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120342659A (en) * | 2025-03-18 | 2025-07-18 | 广东中创智腾技术服务有限公司 | A vehicle machine OTA upgrade method, device, electronic device and storage medium |
-
2023
- 2023-08-30 CN CN202311111892.8A patent/CN117270903A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120342659A (en) * | 2025-03-18 | 2025-07-18 | 广东中创智腾技术服务有限公司 | A vehicle machine OTA upgrade method, device, electronic device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7714743B2 (en) | Secure device provisioning and management | |
| KR102618665B1 (en) | Version history management using blockchain | |
| CN112585905B (en) | Equipment upgrading method and related equipment | |
| CN111275857B (en) | Control method of intelligent lock and intelligent lock | |
| US9294468B1 (en) | Application-level certificates for identity and authorization | |
| US10382485B2 (en) | Blockchain-assisted public key infrastructure for internet of things applications | |
| US10355868B2 (en) | Method of providing security for controller using encryption and apparatus therefor | |
| CN110891257B (en) | A networked vehicle remote upgrade system and method with anti-attack two-way authentication | |
| WO2022160124A1 (en) | Service authorisation management method and apparatus | |
| CN115967920B (en) | Automobile Bluetooth key security management method, system, equipment and medium | |
| CN112883382B (en) | Vehicle writing method, internet of vehicles box, vehicle and storage medium | |
| CN114785522A (en) | Internet of vehicles information security authentication method, system, terminal and storage medium | |
| CN117270903A (en) | Vehicle-mounted application updating method, device, equipment and computer readable storage medium | |
| CN116366275B (en) | Safety verification method, device, equipment and storage medium based on vehicle controller | |
| CN114329424A (en) | Authority determination method and device, computer equipment and computer readable storage medium | |
| CN114879980B (en) | Vehicle application installation method, device, computer equipment, and storage medium | |
| CN115514497B (en) | Method and device for issuing certificate | |
| CN114329534A (en) | Authority determination method and device, computer equipment and computer readable storage medium | |
| EP4629060A1 (en) | Upgrading method for vehicle-mounted device, and device | |
| US20230155842A1 (en) | Method and apparatus for certifying an application-specific key and for requesting such certification | |
| CN113810411B (en) | Traffic control facility digital certificate management method and system | |
| CN119966739A (en) | A communication authentication control method and related device | |
| CN115221534A (en) | Information processing method, information processing apparatus, and computer readable medium | |
| CN119109680A (en) | Secure communication method, device, storage medium and computer program product | |
| CN120979678A (en) | Methods, systems, vehicles, and backend servers for obtaining digital certificates for vehicles |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |