Internet of Vehicles Certificate Authentication Method Based on Blockchain

By adopting a blockchain-based certificate authentication method in the Internet of Vehicles system and using multiple certificate authority centers as alliance chain nodes, it solves the problems of single point of failure and certificate revocation management, improves the efficiency of identity authentication and reduces costs, achieving Fast, secure authentication in insecure environments.

CN115102695BActive Publication Date: 2024-09-24XIDIAN UNIV
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202210689218.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2024-09-24
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

Existing Internet of Vehicles identity authentication protocols have problems such as single point of failure, difficulty in certificate revocation management, and complex cross-domain authentication, resulting in low efficiency and high cost of identity authentication.

Method used

Adopting a blockchain-based certificate authentication method, multiple certificate authority centers serve as the central nodes of the alliance chain, use a consensus mechanism to generate parameters, and store and verify public key certificates on the blockchain to implement a distributed CA system and reduce the need for Reliance on third-party trust organizations improves the efficiency of cross-domain identity authentication.

Benefits of technology

It effectively solves the problems of single point of failure and certificate revocation management, improves the identity authentication efficiency of Internet of Vehicles devices, reduces authentication costs, and achieves fast and secure identity authentication in unsafe network environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115102695B
    Figure CN115102695B
Patent Text Reader

Abstract

The present invention proposes a vehicle network certificate authentication method based on blockchain, which mainly solves the problems of single point failure, certificate revocation and lack of mutual trust between cross-center nodes in the prior art. Its implementation scheme is as follows: initialize network parameters, each center node distributes private keys, aggregated public keys and public key certificates to the vehicle nodes and roadside unit nodes it manages, and stores the public key certificates in the blockchain; the sending request vehicle node sends an authentication request message to the receiving request vehicle node; the receiving request vehicle node authenticates the identity of the sending request vehicle node; the receiving request vehicle node and the sending request vehicle node exchange their identity identifiers, and perform identity authentication to complete the two-way identity authentication of the vehicle network device. The present invention improves urban traffic efficiency and user driving experience, improves the efficiency of cross-domain identity authentication of the vehicle network, reduces the cost of identity authentication, and can be used for automobile intelligence and automatic driving.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information security technology, and in particular relates to a method for identity authentication of vehicle networking equipment, which can be used in the fields of automobile intelligence and automatic driving to improve urban traffic efficiency and user driving experience. Background Art

[0002] The Internet of Vehicles is a network system that uses the new generation of information and communication technology to achieve all-round network connection of in-vehicle network, inter-vehicle network and in-vehicle mobile Internet, so as to improve the level of automobile intelligence and autonomous driving capabilities, thereby improving traffic efficiency and driving experience. The Internet of Vehicles is actually the supporting infrastructure of driverless cars. It not only provides important information elements such as vehicle location, speed and route information, driver information, road congestion and accident information, and various multimedia application fields for vehicles in the network, but also realizes networked interactive control through big data and cloud computing.

[0003] Due to the unique characteristics of VANET, such as high mobility and volatility, it is vulnerable to attacks with various impacts. Security, privacy and trust issues need to be considered at the beginning of VANET design. Information forged by external vehicles can not only reduce the efficiency of certificate authentication, but in the worst case, may lead to unexpected events that threaten human life. Although this problem can be resisted by external attackers by providing a secure communication channel, trust management and privacy protection of vehicles remain unresolved issues in VANET.

[0004] The certificate authority CA center is the core of the public key infrastructure PKI and is responsible for issuing public key certificates to user nodes. A public key certificate is a piece of electronic data containing the identity information of the vehicle node holding the certificate. It usually consists of the identity information of the user node, the public key of the user node, and the signature generated by the trusted center. Its function is similar to that of an ID card in real life. It can provide the public key required for cryptographic services such as encryption and digital signatures for the identity authentication and communication process between user nodes or between user nodes and other physical nodes.

[0005] In the Internet of Vehicles, Internet of Vehicles devices include on-board units (OBU) and roadside units (RSU). In order to ensure the security of the communication process between different Internet of Vehicles devices, identity authentication is required before the Internet of Vehicles devices communicate to prevent various attacks in the network. Under the premise of ensuring security, the higher the efficiency of identity authentication of Internet of Vehicles devices, the better. The main factors affecting the efficiency of identity authentication include communication overhead and transmission delay in the identity authentication process. Internet of Vehicles certificate management based on the PKI system is one of the most mainstream certificate management mechanisms at present. Among them, the vehicle management agency acts as a certificate authority CA, issues public key certificates to the vehicle nodes OBU and roadside unit nodes RSU it manages, and is responsible for the update and revocation of node certificates while maintaining the revocation list. However, the current security issues in this Internet of Vehicles identity authentication protocol based on the PKI system mainly include the following three aspects:

[0006] The first is the single point failure problem: the security of PKI certificates is completely dependent on the security of the certificate authority CA. Since the certificate authority CA may be dishonest, may be attacked, sign fraudulent certificates, make mistakes, or use expired or defective cryptographic algorithms, this will bring risks to certificate management.

[0007] The second is the issue of certificate revocation: the certificate verifier not only needs to identify the binding relationship between the public key of the network entity and the certificate, but also needs to confirm whether the verified certificate is within the validity period, that is, whether the verified certificate has been revoked. The certificate verifier needs to regularly maintain a certificate revocation list CRL, which contains certificates issued by the certificate authority CA and have been revoked. The CRL is executed to check whether the certificate is in a revoked state, but since the update of the CRL is not real-time, this brings risks to certificate verification;

[0008] The third is the mutual trust problem between certificate authorization CAs: Under the PKI system, facing the complex needs of actual Internet of Vehicles application scenarios, it is necessary to solve the mutual trust problem between cross-CAs. In the Internet of Vehicles, cross-certification is usually adopted. Trust relationships are established between different root CAs by issuing certificates to each other. In the certificate authentication stage, the terminal entity certificate is verified by finding the trust chain from the terminal entity certificate to the trust root. When the number of CAs is large, the use of cross-certification methods will form a complex mesh structure, and the certificate chain discovery process will also become complicated. Cross-CA authentication can also be achieved by setting up a bridge CA between multiple trust domains. The bridge CA serves as a connecting bridge and establishes a trust relationship with multiple trust domains by issuing cross-certification certificates to each other. Compared with cross-recognition between multiple CAs, the establishment of a bridge CA is convenient for discovering the trust chain path, but it requires the maintenance of a large number of certificates with different structures, and the management is relatively complicated.

[0009] Blockchain is a distributed database that can be used to manage data in time order and ensure that the data cannot be tampered with. It is divided into public chain, private chain, and alliance chain. Among them, the public chain means that any node can participate in the use and maintenance, and the information is completely public; the private chain means that the administrator manages and restricts it on the basis of the public chain, and only a few internal nodes can participate in the use and maintenance, and the information is not public; the alliance chain is between the public chain and the private chain. A blockchain is maintained by several organizations together. It is a semi-open decentralized access authority. The voting rights for the addition of new nodes and the generation of new blocks are on the pre-set nodes, and the unset nodes can only participate in transactions. Although the relevant information in the alliance chain will be protected, because its query authority is public, even entities that are not in the alliance chain can query through the preset open interface.

[0010] In recent years, in order to solve the common single point failure, cross-domain authentication difficulties, and revocation table maintenance difficulties in the PKI system-based Internet of Vehicles identity authentication protocol, some scholars have proposed a method of combining traditional PKI technology with blockchain ideas. The patent application with application publication number CN 112929179 A and titled "Internet of Vehicles Device Identity Authentication and Key Negotiation Method Based on Blockchain" discloses a blockchain-based Internet of Vehicles device identity authentication and key negotiation method. The method builds a distributed CA system based on the alliance chain idea, realizes rapid authentication between Internet of Vehicles devices through a dual-chain structure, and performs a simple hash iteration to calculate the authenticity of the certificate through the returned verification value sequence, without the need for trusted CA nodes to provide online services at all times. Although this method can complete the security authentication of identity without relying on a trusted third party in an insecure network environment, the constructed distributed blockchain CA system has certain advantages in security compared to the traditional distributed CA system, but because the Internet of Vehicles devices need to obtain a large amount of data on the dual chain when verifying the certificate, and the Internet of Vehicles devices need to synchronize the latest block hash values ​​on the dual chain in real time, the authentication cost of the Internet of Vehicles devices is relatively high. Summary of the invention

[0011] The purpose of the present invention is to address the deficiencies in the above-mentioned prior art and propose a blockchain-based Internet of Vehicles certificate authentication method, which aims to maintain the revocation list in certificate management in real time while ensuring the security of the identity authentication of the Internet of Vehicles equipment, thereby improving the efficiency of cross-domain identity authentication and reducing the authentication cost.

[0012] To achieve the above object, the technical solution of the present invention includes the following:

[0013] (1) Initialization:

[0014] With N certificate authorities CA = {CA n |1≤n≤N} is the central node, where CAn Indicates the nth central node, N ≥ 2;

[0015] All central nodes CA generate (q, G1, G2, G t ,e,g1,g2,H0,H1) parameters, where q is a large prime number, G1 is the first q-order cyclic additive group, G2 is the second q-order cyclic additive group, G t is a q-order cyclic multiplicative group, g1 is the generator of G1, g2 is the generator of G2, and e is the sum of G1, G2 to G t Bilinear mapping: G1×G2→G t , H0 is the hash function mapped to G1, H1 is the hash function mapped to Z q The hash function Z q is the set of integers modulo q;

[0016] (2) Each central node CA n Distribute private key Pri, aggregate public key apk and public key certificate Cer to the vehicle nodes and roadside unit nodes it manages, and store the public key certificate in the blockchain;

[0017] (3) In an insecure network environment, the central node CA n Managed i-th vehicle node OBU n,i To the central node CA m Manage the jth vehicle node OBU to communicate m,j Send authentication request message Req n,i , where 1≤n≤N,1≤m≤N,1≤i≤M n ,1≤j≤M n , and when n=m, i≠j, M n is the number of vehicle nodes managed by the nth central node, R n is the number of roadside unit nodes managed by the nth central node;

[0018] (4) Accept the request vehicle node OBU m,j Through the authentication request message Req n,i Send request to vehicle node OBU n,i Authentication is performed by:

[0019] (4a) Accept the request vehicle node OBU m,j Determine the message Req n,i Is it within the validity period: If it is, execute step 4b); otherwise, send the request to the vehicle node OBU n,i Identity authentication failed;

[0020] (4b) Accept the request vehicle node OBU m,j Through the central node CA closest to youx Managed yth roadside unit node RSU x,y Get the Cer on the blockchain n,i Certificate verification message Mes x_n,i , the verification message includes block Block d MerkleRootHash d 、Block d BlockCer stored in n,i And the hash value of q certificates: CerHash d ={CerHash d_r |1≤r≤q}, where 1≤x≤N, 1≤y≤R n , 0≤d≤l, 1≤q, l is the total height of the block on the current main chain;

[0021] (4c) Accept the request vehicle node OBU m,j Judge Mes x_n,i Does it contain the public key certificate Cer n,i Verification value sequence: If yes, execute step 4d); otherwise, send the request to the vehicle node OBU n,i The identity authentication fails, where 1≤x≤N, 1≤y≤R n , Cer n,i Request message Req n,i Send request to vehicle node OBU n,i The public key certificate of

[0022] (4d) Accept the request vehicle node OBU m,j For public key certificate Cer n,i To verify:

[0023] (4d1) Accept the request vehicle node OBU m,j Determine Mes by verifying the hash value k_n,i Whether it has been tampered by other malicious nodes: If so, the vehicle node OBU that sent the request n,i The identity authentication fails; otherwise, execute 4d2);

[0024] (4d2) Accept the request vehicle node OBU m,j VerifyMes x_n,i BlockCer in the blockchain n,i Aggregate signature Sig aggCer Whether e(Sig aggCer ,g2)=e(H0(Cer n,i ),apk): If yes, then the block certificate BlockCer n,iIf the OBU of the vehicle sending the request has not been tampered with, execute step 4d3); otherwise, n,i Identity authentication failed;

[0025] (4d3) Accept the request vehicle node OBU m,j Verify block certificate BlockCer n,i Is the certificate revoked? If so, send the request to the vehicle node OBU n,i Identity authentication fails; otherwise, go to 4e);

[0026] (4e) Accept the request vehicle node OBU m,j Determine the decryption signature information DSig n,i With the request message Req n,i Is the cascade data in the same? If yes, send the request to the vehicle node OBU n,i If the identity authentication is successful, go to step 5); otherwise, the authentication fails;

[0027] (5) The vehicle node OBU that receives the request m,j The vehicle node OBU sends the request n,i The identity identifications are exchanged for identity authentication;

[0028] (5a) In an unsafe network environment, the vehicle node OBU sends a request m,j To the receiving vehicle node OBU to be responded n,i Send authentication response message Rep m,j ;

[0029] (5b) The vehicle node OBU that receives the request n,i Through the authentication response message Rep m,j To the vehicle node OBU that sends the request m,j The identity is authenticated: if the authentication is successful, execute 5c); otherwise, the key negotiation fails;

[0030] (5c) Accept the request vehicle node OBU n,i and send request to vehicle node OBU m,j Calculate the result of key negotiation and complete the Internet of Vehicles certificate authentication.

[0031] Compared with the prior art, the present invention has the following advantages:

[0032] 1. The present invention combines PKI technology with blockchain, and uses multiple different authorization centers as the central nodes of the alliance chain. It can manage the certificates between different authorization centers, thereby solving the single point failure and certificate revocation problems in the PKI certificate management system, and effectively improving the efficiency of identity authentication of Internet of Vehicles devices.

[0033] 2. The present invention combines the aggregate signature technology with the blockchain, and adds the signatures of all central node CAs to the block certificates stored on the blockchain. This can verify the identity certificates of other Internet of Vehicles devices in an unsafe environment. At the same time, it does not require a third-party trust agency to provide online services, effectively reducing the authentication cost of the identity of Internet of Vehicles devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flow chart for implementing the present invention.

[0035] Figure 2 This is a diagram of the alliance chain network structure in the present invention. DETAILED DESCRIPTION

[0036] The embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings.

[0037] Reference Figure 1 , the implementation steps of this example are as follows:

[0038] Step 1: Build a consortium chain network.

[0039] Build 5 certificate authorities CA = {CA n |1≤n≤5} is the central node, Vehicle equipment OBU and The alliance blockchain network with roadside unit equipment RSU as ordinary nodes has the following structure: Figure 2 shown.

[0040] Figure 2 All central nodes CA in the network generate (q, G1, G2, G t ,e,g1,g2,H0,H1) these parameters and generate their respective public and private key pairs (pk n ,sk n ), each block stores 5 block certificates encapsulated as blockchain transactions, and each vehicle node OBU and roadside unit node RSU has both sending and receiving functions.

[0041] Among them, CA n represents the nth central node, M n Indicates the central node CA n The number of vehicle nodes managed, R n Indicates the central node CA n The number of roadside unit nodes managed, q is a large prime number, G1 and G2 are q-order cyclic additive groups, G t is a q-order cyclic multiplicative group, g1 is the generator of G1, g2 is the generator of G2, and e is the sum of G1, G2 to Gt Bilinear mapping: G1×G2→G t , H0 is the hash function mapped to G1, H1 is the hash function mapped to Z q The hash function Z q is the set of integers modulo q, pk n Indicates the central node CA n The public key of n Indicates the central node CA n The block certificate consists of a certificate standard domain, a certificate extension domain and an aggregate signature. The certificate standard domain includes the certificate version number, certificate serial number, revocation flag, aggregate signature algorithm identifier, certificate validity expiration time, Internet of Vehicles device subject name, Internet of Vehicles device subject public key information, issuer CA's unique identifier, and Internet of Vehicles device subject unique identity identifier. The certificate extension domain includes the public key usage in the certificate, certificate policy, policy mapping, Internet of Vehicles device subject alternative name, and basic constraints. The revocation flag value of 0 indicates that the certificate has been revoked, and the revocation flag value of 1 indicates that the certificate has not been revoked.

[0042] Step 2: Each central node CA n Distribute private keys Pri, aggregate public keys apk and public key certificates Cer to the vehicle nodes and roadside unit nodes it manages, and store the public key certificates in the blockchain.

[0043] 2.1) Each central node CA n Generate the public key Pub and private key Pri according to the identity Iden of each vehicle node OUB and roadside unit RSU managed by it:

[0044] The identity identifier Iden is the information of the Internet of Vehicles device when it is registered and filed with the relevant government management agency, including the name of the Internet of Vehicles device entity and the unique identity identifier of the Internet of Vehicles device entity;

[0045] Since the SM2 algorithm is more secure and has faster encryption and decryption speed, CA n The public key Pub and private key Pri are generated using the SM2 algorithm based on the identity Iden;

[0046] 2.2) Generate a public key certificate Cer based on the identity Iden and the public key Pub, and generate an aggregate public key based on the g public keys of all central nodes:

[0047]

[0048] Among them, pk i It is the central node CA i 's public key;

[0049] 2.3) Central Node CA nBroadcast the public key certificate Cer to other nodes CA on the alliance chain j , other nodes CA j After receiving the public key certificate Cer, verify the public key certificate Cer. After successful verification, sign the public key certificate Cer and send the signature information Sig cer,j =sk j H0(Cer) is returned to the central node CA n , where sk j It is CA j The private key of , 1≤j≤N;

[0050] 2.4) Central Node CA n Generate an aggregate signature after receiving signature information from other nodes According to the public key Cer and aggregate signature Sig aggCer Generate a block certificate BlockCer, encode the block certificate BlockCer, and encapsulate it into a transaction Tr n , and then the transaction Tr n Broadcast to other central nodes in the alliance chain network, waiting for other central nodes to respond to the transaction Tr n After verification, it is written into the blockchain;

[0051] 2.5) Central Node CA n Learn about the transaction Tr n After the data is written into the blockchain, the aggregated public key apk, private key Pri and certificate Cer are securely distributed to the corresponding Internet of Vehicles device nodes through offline channels.

[0052] Step 3, vehicle node OBU 1,3 To the vehicle node OBU to be communicated 4,1 Send authentication request message Req 1,3 .

[0053] 3.1) Send request to vehicle node OBU 1,3 Generate a random number r 1,3 and request timestamp T 1,3 , and use the private key Pri 1,3 The public key certificate Cer 1,3 , random number r 1,3 and request timestamp T 1,3 , the signature of the data string formed is Sig 1,3 ;

[0054] 3.2) By public key certificate Cer 1,3 , random number r 1,3 , request timestamp T 1,3 And the signature Sig of the data string 1,3 Composition of authentication request message Req 1,3= {Cer 1,3 ||r 1,3 ||T 1,3 ||Sig 1,3};

[0055] 3.3) Send request to vehicle node OBU 1,3 The request message Req 1,3 Sent to the vehicle node OBU that accepts the request 4,1 .

[0056] In this example, each ordinary node has a local random number generator, which can be used to generate random numbers. The clocks of all nodes in the alliance blockchain are synchronized, and the timestamp is r 1,3 It is to parse the current system time into a Unix timestamp.

[0057] Step 4: Accept the request vehicle node OBU 4,1 Through the authentication request message Req 1,3 Send request to vehicle node OBU 1,3 identity authentication.

[0058] 4.1) Accept the request vehicle node OBU 4,1 Determine the message Req 1,3 Is it within the validity period:

[0059] 4.1.1) The vehicle node OBU that accepts the request during the communication process 4,1 Set the effective threshold T of the timestamp according to the network environment max ;

[0060] 4.1.2) Accept the request vehicle node OBU 4,1 Calculate the current time T now_4,1 With the authentication request Req 1,3 Send timestamp T 1,3 The difference ΔT 1,3 =T now_4,1 -T 1,3 ;

[0061] 4.1.3) Set ΔT 1,3 With T max For comparison:

[0062] If ΔT 1,3 ≤T max , then the authentication request Req 1,3 Within the valid period, execute step 4.2)

[0063] Otherwise, send the request to the vehicle node OBU 1,3 Authentication failed.

[0064] 4.2) Accept the request vehicle node OBU 4,1 The first roadside unit node RSU managed by the nearest central node CA2 2,1 Get the Cer on the blockchain 1,3 Certificate verification message Mes 2_1,3 , the verification message includes block Block d MerkleRootHash d 、Block d BlockCer stored in 1,3 And the hash values ​​of 5 certificates: CerHash d ={CerHash d_r |1≤r≤5}, where 0≤d≤l, l is the total height of the block on the current main chain;

[0065] 4.2.1) Accept the request vehicle node OBU 4,1 Will send a request for the vehicle node public key certificate Cer 1,3 Sent to the nearest roadside unit node RSU 2,1 ;

[0066] 4.2.2) Roadside Unit Node RSU 2,1 The public key certificate Cer 1,3 Forward to the central node CA2 to which it belongs;

[0067] 4.2.3) Central node CA2 receives the unit node RSU 2,1 Sent public key certificate Cer 1,3 Then, check from the end of the blockchain to see if there is a block Block 10 The Cer 1,3 Transaction:

[0068] If yes, then return the message Mes 2_1,3 , execute 4.2.4);

[0069] Otherwise, query Cer 1,3 Failed, CA2 to RSU 2,1 Returns a message Mes containing all zero sequences. 2_1,3 ;

[0070] 4.2.4) Unit Node RSU 2,1 The received message Mes 2_1,3 Return to the vehicle node OBU that accepts the request 4,1 .

[0071] 4.3) Accept the request vehicle node OBU 4,1 Verify Message2_1,3 Does it contain the public key certificate Cer 1,3 The validation value sequence:

[0072] If Mes 2_1,3 The sequence is all 0 sequence, then the message Mes 2_1,3 Does not contain verification value, for sending request vehicle node OBU 1,3 Identity authentication failed;

[0073] Otherwise, the message Mes 2_1,3 Contains the verification value, execute step 4.4);

[0074] 4.4) Accept the request vehicle node OBU 4,1 For public key certificate Cer 1,3 To verify:

[0075] 4.4.1) Accept the request vehicle node OBU 4,1 First, according to the 5 hash values ​​CerHash 10 Calculate the Merkle tree root hash value MRHash; then compare it with the block Block 10 MerkleRootHash 10 For comparison:

[0076] If MRHash=MerkleRootHash 10 , then Block 10 The transaction stored in has not been tampered with, proceed to step 4.4.2);

[0077] Otherwise, the transaction has been tampered with, and the vehicle node OBU that sent the request 1,3 Identity authentication failed;

[0078] 4.4.2) Accept the request vehicle node OBU 4,1 VerifyMes 2_1,3 BlockCer in the blockchain 1,3 Aggregate signature Sig aggCer Whether e(Sig aggCer ,g2)=e(H0(Cer 1,3 ),apk):

[0079] If yes, then the block certificate BlockCer 1,3 If it has not been tampered with, proceed to step 4.4.3);

[0080] Otherwise, send the request to the OBU vehicle 1,3 Identity authentication failed;

[0081] 4.4.3) Accept the request vehicle node OBU4,1 According to the block certificate BlockCer 1,3 The certificate revocation flag in the BlockCer verification block 1,3 Is the certificate revoked?

[0082] If the certificate revocation flag is 1, the block certificate BlockCer 1,3 For a valid certificate, proceed to step 4.5);

[0083] Otherwise, the block certificate BlockCer 1,3 To revoke the certificate, send the request to the vehicle OBU 1,3 Authentication failed.

[0084] 4.5) Accept the request vehicle node OBU 4,1 Determine the decryption signature information DSig 1,3 With the request message Req 1,3 Whether the cascade data in is consistent:

[0085] 4.5.1) Receive message vehicle node OBU 4,1 By Cer 1,3 The public key in Pub 1,3 Req 1,3 The signature Sig 1,3 Decrypt and get the decryption result DSig 1,3 ={DCer 1,3 ||Dr 1,3 ||DT 1,3}, where; DCer 1,3 Is the signature Sig 1,3 Chinese Certificate 1,3 The decryption result of Dr. 1,3 Is the signature Sig 1,3 Random number r 1,3 The decryption result, DT 1,3 Is the signature Sig 1,3 Timestamp T 1,3 The decryption result of

[0086] 4.5.2) The decrypted result {DCer 1,3 ||Dr 1,3 ||DT 1,3} and Req 1,3 The data string in {Cer 1,3 ||r 1,3 ||T 1,3} for comparison:

[0087] If {DCer 1,3 ||Dr 1,3 ||DT1,3}={Cer 1,3 ||r 1,3 ||T 1,3}, then decrypt the signature information DSig 1,3 With the request message Req 1,3 If the cascade data in is consistent, execute step 5);

[0088] Otherwise, decrypt the signature information DSig 1,3 With the request message Req 1,3 The cascade data in the request is inconsistent, and the OBU of the vehicle sending the request 1,3 Authentication failed.

[0089] Step 5: The vehicle node OBU will receive the request 4,1 The vehicle node OBU sends the request 1,3 exchange identities and perform identity authentication.

[0090] 5.1) In an unsafe network environment, send a request to the vehicle node OBU 4,1 To the receiving vehicle node OBU to be responded 1,3 Send authentication response message Rep 4,1 :

[0091] 5.1.1) Send request to vehicle node OBU 4,1 Generate a random number r 4,1 and request timestamp T 4,1 , and use the private key Pri 4,1 The public key certificate Cer 4,1 , random number r 4,1 and request timestamp T 4,1 Cascade to form the signature Sig of the data string 4,1 ;

[0092] 5.1.2) Public key certificate Cer 4,1 , random number r 4,1 , request timestamp T 4,1 And the signature Sig of the data string 4,1 Composition of authentication request message: Req 4,1 = {Cer 4,1 ||r 4,1 ||T 4,1 ||Sig 4,1};

[0093] 5.1.3) Send request to vehicle node OBU 4,1 The request message Req 4,1 Sent to the vehicle node OBU that accepts the request 1,3 ;

[0094] 5.2) The vehicle node OBU accepts the request 1,3 Through the authentication response message Rep 4,1 To the vehicle node OBU that sends the request 4,1 Authentication is performed by:

[0095] 5.2.1) Accept the request vehicle node OBU 1,3 Judgement message Rep 4,1 Is it within the validity period:

[0096] 5.2.1a) The vehicle node OBU that accepts the request during the communication process 1,3 Set the effective threshold T of the timestamp according to the network environment max ;

[0097] 5.2.1b) Accept the request vehicle node OBU 1,3 Calculate the current time T now_1,3 With the authentication request Req 4,1 Send timestamp T 4,1 The difference: ΔT 4,1 =T now_1,3 -T 4,1 ;

[0098] 5.2.1c) Set ΔT 4,1 With T max For comparison:

[0099] If ΔT 4,1 ≤T max , then the authentication request Req 4,1 Within the valid period, execute step 5.2.2)

[0100] Otherwise, send the request to the vehicle node OBU 4,1 Authentication failed.

[0101] 5.2.2) Accept the request vehicle node OBU 1,3 The second roadside unit node RSU managed by the nearest central node CA3 3,2 Get the Cer on the blockchain 4,1 Certificate verification message Mes 3_4,1 :-

[0102] 5.2.2a) Accept the request vehicle node OBU 1,3 Will send a request for the vehicle node public key certificate Cer 4,1 Sent to the nearest roadside unit node RSU 3,2 ;

[0103] 5.2.2b) Roadside Unit Node RSU 3,2 The public key certificate Cer 4,1Forward to the central node CA3 to which it belongs;

[0104] 5.2.2c) Central node CA3 receives the unit node RSU 3,2 Sent public key certificate Cer 4,1 Then, check from the end of the blockchain to see if there is a block Block 15 The Cer 4,1 Transaction:

[0105] If yes, return message Mes 3_4,1 ;

[0106] Otherwise, query Cer 4,1 Failure, CA3 to RSU 3,2 Returns a message Mes containing all zero sequences. 3_4,1 ;

[0107] 5.2.2d) Unit Node RSU 3,2 The received message Mes 3_4,1 Return to the vehicle node OBU that accepts the request 1,3 .

[0108] 5.2.3) Accept the request vehicle node OBU 1,3 Verify Message 3_4,1 Does it contain the public key certificate Cer 4,1 The validation value sequence:

[0109] If Mes 3_4,1 The sequence is all 0 sequence, then the message Mes 3_4,1 Does not contain verification value, for sending request vehicle node OBU 4,1 Identity authentication failed;

[0110] Otherwise, the message Mes 3_4,1 Contains the verification value and executes step 5.2.4).

[0111] 5.2.4) Accept the request vehicle node OBU 1,3 For public key certificate Cer 4,1 To verify:

[0112] 5.2.4a) Accept the request vehicle node OBU 1,3 First, according to the 5 hash values ​​CerHash 15 Calculate the Merkle tree root hash value MRHash and then compare it with the block Block 15 MerkleRootHash 15 For comparison:

[0113] If MRHash=MerkleRootHash 15 , then Block 15 The transaction stored in has not been tampered with, proceed to step 5.2.4b);

[0114] Otherwise, the transaction has been tampered with, and the vehicle node OBU that sent the request 4,1 Identity authentication failed;

[0115] 5.2.4b) Accept the request vehicle node OBU 1,3 VerifyMes 3_4,1 BlockCer in the blockchain 4,1 Aggregate signature Sig aggCer Whether e(Sig aggCer ,g2)=e(H0(Cer 4,1 ),apk):

[0116] If yes, then the block certificate BlockCer 4,1 If it has not been tampered with, proceed to step 5.2.4c);

[0117] Otherwise, send the request to the OBU vehicle 4,1 Identity authentication failed;

[0118] 5.2.4c) Accept the request vehicle node OBU 1,3 According to the block certificate BlockCer 4,1 The certificate revocation flag in the BlockCer verification block 4,1 Is the certificate revoked?

[0119] If the certificate revocation flag is 1, the block certificate BlockCer 4,1 For a valid certificate, proceed to step 5.2.5);

[0120] Otherwise, the block certificate BlockCer 4,1 To revoke the certificate, send the request to the vehicle OBU 4,1 Authentication failed.

[0121] 5.2.5) Accept the request vehicle node OBU 1,3 Determine the decryption signature information DSig 4,1 With the request message Req 4,1 Whether the cascade data in is consistent:

[0122] 5.2.5a) Receive message vehicle node OBU 1,3 By Cer 4,1 The public key in Pub 4,1 Req 4,1 The signature Sig4,1 Decrypt and get the decryption result DSig 4,1 ={DCer 4,1 ||Dr 4,1 |DT 4,1}, where; DCer 4,1 Is the signature Sig 4,1 Chinese Certificate 4,1 The decryption result of Dr. 4,1 Is the signature Sig 4,1 Random number r 4,1 The decryption result, DT 4,1 Is the signature Sig 4,1 Timestamp T 4,1 The decryption result of

[0123] 5.2.5b) The decrypted result {DCer 4,1 ||Dr 4,1 |DT 4,1} and Req 4,1 The data string in {Cer 4,1 ||r 4,1 ||T 4,1} for comparison:

[0124] If {DCer 4,1 ||Dr 4,1 |DT 4,1}={Cer 4,1 ||r 4,1 ||T 4,1}, then decrypt the signature information DSig 4,1 With the request message Req 4,1 If the cascade data in is consistent, execute step 5.3);

[0125] Otherwise, decrypt the signature information DSig 4,1 With the request message Req 4,1 The cascade data in the request is inconsistent, and the OBU of the vehicle sending the request 4,1 Authentication failed.

[0126] 5.3) Accept the request vehicle node OBU 1,3 and send request to vehicle node OBU 4,1 Based on r 1,3 、r 4,1 A common session key is calculated using a key negotiation algorithm to complete two-way identity authentication of connected vehicle devices.

[0127] The key agreement algorithm includes RSA, DH, and PSK. Since the performance of the PSK algorithm is better than that of the RSA and DH algorithms, this example adopts but is not limited to the PSK algorithm. The calculation formula is as follows:

[0128]

[0129] in, Is the OBU node that accepts the request 1,3 and send request to vehicle node OBU 4,1 The shared key.

Claims

1. A blockchain-based Internet of Vehicles certificate authentication method, characterized in that: The steps include: (1) Initialization: With N certificate authorities CA = {CA n |1≤n≤N} is the central node, where CA n Indicates the nth central node, N ≥ 2; All central nodes CA generate (q, G1, G2, G t ,e,g1,g2,H0,H1) parameters, where q is a large prime number, G1 is the first q-order cyclic additive group, G2 is the second q-order cyclic additive group, G t is a q-order cyclic multiplicative group, g1 is the generator of G1, g2 is the generator of G2, and e is the sum of G1, G2 to G t Bilinear mapping: G1×G2→G t , H0 is the hash function mapped to G1, H1 is the hash function mapped to Z q The hash function Z q is the set of integers modulo q; (2) Each central node CA n Distribute the private key Pri, aggregate public key apk and public key certificate Cer to the vehicle nodes and roadside unit nodes it manages, and store the public key certificate in the blockchain, as follows: (2a) Each central node CA n Generate the public key Pub and private key Pri according to the identity Iden of each vehicle node OUB and roadside unit RSU it manages, generate the public key certificate Cer according to the identity Iden and public key Pub, and generate the aggregate public key according to the public keys of all central nodes where pk i It is the central node CA i 's public key; (2b) Central Node CA n Broadcast the public key certificate Cer to other nodes CA on the alliance chain j , other nodes CA j After receiving the public key certificate Cer, verify the public key certificate Cer. After successful verification, sign the public key certificate Cer and send the signature information Sig cer,j =sk j H0(Cer) is returned to the central node CA n , where sk j It is CA j The private key of , 1≤j≤N; (2c) Central Node CA n Generate an aggregate signature after receiving signature information from other nodes According to the public key Cer and aggregate signature Sig aggCer Generate a block certificate BlockCer, encode the block certificate BlockCer, and encapsulate it into a transaction Tr n , and then the transaction Tr n Broadcast to other central nodes in the alliance chain network, waiting for other central nodes to respond to the transaction Tr n After verification, it is written into the blockchain; (2d) Central Node CA n Learn about the transaction Tr n After the data is written into the blockchain, the aggregated public key apk, private key Pri and certificate Cer are securely distributed to the corresponding Internet of Vehicles device nodes through offline channels; (3) In an insecure network environment, the central node CA n Managed i-th vehicle node OBU n,i To the central node CA m Manage the jth vehicle node OBU to communicate m,j Send authentication request message Req n,i , where 1≤n≤N,1≤m≤N,1≤i≤M n ,1≤j≤M n , and when n=m, i≠j, M n is the number of vehicle nodes managed by the nth central node, R n is the number of roadside unit nodes managed by the nth central node; (4) Accept the request vehicle node OBU m,j Through the authentication request message Req n,i Send request to vehicle node OBU n,i Authentication is performed by: (4a) Accept the request vehicle node OBU m,j Determine the message Req n,i Is it within the validity period: If it is, execute step 4b); otherwise, send the request to the vehicle node OBU n,i Identity authentication failed; (4b) Accept the request vehicle node OBU m,j Through the central node CA closest to you x Managed yth roadside unit node RSU x,y Get the Cer on the blockchain n,i Certificate verification message Mes x_n,i , the verification message includes block Block d MerkleRootHash d 、Block d BlockCer stored in n,i And the hash value of q certificates: CerHash d ={CerHash d_r |1≤r≤q}, where 1≤x≤N, 1≤y≤R n , 0≤d≤l, 1≤q, l is the total height of the block on the current main chain; (4c) Accept the request vehicle node OBU m,j Judge Mes x_n,i Does it contain the public key certificate Cer n,i Verification value sequence: If yes, execute step 4d); otherwise, send the request to the vehicle node OBU n,i The identity authentication fails, where 1≤x≤N, 1≤y≤R n , Cer n,i Request message Req n,i Send request to vehicle node OBU n,i The public key certificate of (4d) Accept the request vehicle node OBU m,j For public key certificate Cer n,i To verify: (4d1) Accept the request vehicle node OBU m,j Determine Mes by verifying the hash value x_n,i Whether it has been tampered by other malicious nodes: If so, the vehicle node OBU that sent the request n,i The identity authentication fails; otherwise, execute 4d2); (4d2) Accept the request vehicle node OBU m,j VerifyMes x_n,i BlockCer in the blockchain n,i Aggregate signature Sig aggCer Whether e(Sig aggCer ,g2)=e(H0(Cer n,i ),apk): If yes, then the block certificate BlockCer n,i If the OBU of the vehicle sending the request has not been tampered with, execute step 4d3); otherwise, n,i Identity authentication failed; (4d3) Accept the request vehicle node OBU m,j Verify block certificate BlockCer n,i Is the certificate revoked? If so, send the request to the vehicle node OBU n,i Identity authentication fails; otherwise, go to 4e); (4e) Accept the request vehicle node OBU m,j Determine the decryption signature information DSig n,i With the request message Req n,i Is the cascade data in the same? If yes, send the request to the vehicle node OBU n,i If the identity authentication is successful, go to step 5); otherwise, the authentication fails; (5) The vehicle node OBU that receives the request m,j The vehicle node OBU sends the request n,i The identity identifications are exchanged for identity authentication; (5a) In an unsafe network environment, the vehicle node OBU sends a request m,j To the receiving vehicle node OBU to be responded n,i Send authentication response message Rep m,j ; (5b) The vehicle node OBU that receives the request n,i Through the authentication response message Rep m,j To the vehicle node OBU that sends the request m,j The identity is authenticated: If the identification is successful, execute 5c); otherwise, the key negotiation fails; the specific implementation is as follows: 5.2.1) Accept the request vehicle node OBU n,i Judgement message Rep m,j Is it within the validity period: If it is, execute step 5.2.2); otherwise, send the request to the vehicle node OBU m,j Identity authentication failed; 5.2.2) Accept the request vehicle node OBU n,i Through the central node CA closest to you z Managed rth roadside unit node RSU z,r Get the public key certificate Cer of the vehicle node that sends the request on the blockchain m,j Verification message Mes r_m,j : 5.2.2a) Accept the request vehicle node OBU n,i The public key certificate Cer m,j Sent to the nearest roadside unit node RSU z,r ; 5.2.2b) The roadside unit node sends the public key certificate Cer m,j Forwarded to the central node CA to which it belongs z ; 5.2.2c) Central Node CA z Upon receiving the unit node RSU z,r Sent public key certificate Cer m,j Then, check from the end of the blockchain to see if there is a block Block a The Cer m,j Transaction: If yes, return message Mes r_m,j ; Otherwise, query Cer m,j Failed, CA z RSU z,r Returns a message Mes containing all zero sequences. r_m,j ; 5.2.2d) Unit Node RSU z,r The received message Mes r_m,j Return to the vehicle node OBU that accepts the request n,i ; 5.2.3) Accept the request vehicle node OBU n,i Verify Message r_m,j Does it contain the public key certificate Cer m,j The validation value sequence: If Mes r_m,j The sequence is all 0 sequence, then the message Mes r_m,j Does not contain verification value, for sending request vehicle node OBU m,j Identity authentication failed; Otherwise, the message Mes r_m,j Contains the verification value, execute step 5.2.4); 5.2.4) Accept the request vehicle node OBU m,j For public key certificate Cer m,j To verify: 5.2.4a) Accept the request vehicle node OBU n,i First, according to the 5 hash values ​​CerHash a Calculate the Merkle tree root hash value MRHash and then compare it with the block Block a MerkleRootHash a For comparison: If MRHash=MerkleRootHash a , then Block a The transaction stored in has not been tampered with, proceed to step 5.2.4b); Otherwise, the transaction has been tampered with, and the vehicle node OBU that sent the request m,j Identity authentication failed; 5.2.4b) Accept the request vehicle node OBU n,i VerifyMes r_m,j BlockCer in the blockchain m,j Aggregate signature Sig aggCer Whether e(Sig aggCer ,g2)=e(H0(Cer m,j ),apk): If yes, then the block certificate BlockCer m,j If it has not been tampered with, proceed to step 5.2.4c); Otherwise, send the request to the vehicle OBU m,j Identity authentication failed; 5.2.4c) Accept the request vehicle node OBU n,i According to the block certificate BlockCer m,j The certificate revocation flag in the BlockCer verification block m,j Is the certificate revoked? If the certificate revocation flag is 1, the block certificate BlockCer m,j For a valid certificate, proceed to step 5.2.5); Otherwise, the block certificate BlockCer m,j To revoke the certificate, send the request to the vehicle OBU n,i Identity authentication failed; 5.2.5) Accept the request vehicle node OBU n,i Determine the decryption signature information DSig m,j With the request message Req m,j Whether the cascade data in is consistent: 5.2.5a) Receive message vehicle node OBU n,i By Cer m,j The public key in Pub m,j Req m,j The signature Sig m,j Decrypt and get the decryption result DSig m,j ={DCer m,j ||Dr m,j |DT m,j }, where; DCer m,j Is the signature Sig m,j Chinese Certificate Cer m,j The decryption result of Dr. m,j Is the signature Sig m,j Random number r m,j The decryption result, DT m,j Is the signature Sig m,j Timestamp T m,j The decryption result of 5.2.5b) The decrypted result {DCer m,j ||Dr m,j |DT m,j } and Req m,j The data string in {Cer m,j ||r m,j ||T m,j } for comparison: If {DCer m,j ||Dr m,j |DT m,j }={Cer m,j ||r m,j ||T m,j }, then decrypt the signature information DCer m,j With the request message Req m,j If the cascade data in is consistent, execute step (5c); Otherwise, decrypt the signature information DSig m,j With the request message Req m,j The cascade data in the request is inconsistent, and the OBU of the vehicle sending the request m,j Identity authentication failed; (5c) Accept the request vehicle node OBU n,i and send request to vehicle node OBU m,j Calculate the result of key negotiation and complete the Internet of Vehicles certificate authentication.

2. The method according to claim 1, characterized in that In step (3), the vehicle node OBU n,i To the vehicle node OBU to be communicated m,j The authentication request message Req sent n,i , which is expressed as follows: Req n,i ={Cer n,i ||r n,i ||T n,i ||Sig n,i } Among them, Cer n,i Is the vehicle node OBU that sends the request n,i The public key certificate of n,i Is the OBU node sending the request n,i The generated random number, T n,i Is the OBU node sending the request n,i The request timestamp, Sig n,i Is the vehicle node OBU that sends the request n,i For Cer n,i 、r n,i and T n,i Signature of the concatenated data string, 1≤n≤N, 1≤i≤M n .

3. The authentication method according to claim 1, characterized in that: The vehicle node OBU that receives the request in step (4a) m,j Determine the authentication message Req n,i Whether it is within the validity period, it is implemented as follows: (4a1) Set the effective threshold T of the timestamp max ; (4a2) Accept the request vehicle node OBU m,j Calculate the current time T now_m,j With the authentication request Req n,i Send timestamp T n,i The difference ΔT n,i =T now_m,j -T n,i ; (4a3) ΔT n,i With T max For comparison: If ΔT n,i ≤T max , then Req n,i In effective Otherwise, it is not within the validity period.

4. The method according to claim 1, characterized in that: In step (4b), the vehicle node OBU receives the request m,j Through the roadside unit node RSU closest to itself x,y Get the public key certificate Cer on the blockchain n,i Verification data Mes x_n,i , implemented as follows: (4b1) Accept the request vehicle node OBU m,j Will send a request for the vehicle node public key certificate Cer n,i Sent to the nearest roadside unit node RSU x,y ; (4b2) Roadside Unit Node RSU x,y Forward the public key certificate to the central node CA to which it belongs x ; (4b3) Central Node CA x Upon receiving the unit node RSU x,y Sent public key certificate Cer n,i Then, check from the end of the blockchain to see if there is a block Block d The Cer n,i Transaction: If yes, then return the message Mes x_n,i , Otherwise, query Cer n,i Failed, CA x RSU x,y Returns a message Mes containing all zero sequences. x_n,i , Where 1≤d≤l, l is the total height of the block on the current blockchain; (4b4) Unit Node RSU x,y The received message Mes x_n,i Return to the vehicle node OBU that accepts the request m,j .

5. The method according to claim 1, characterized in that In step (4b), the vehicle node OBU receives the request m,j Verify Message x_n,i Does it contain the public key certificate Cer n,i The verification value sequence is based on the message Mes x_n,i Sequence judgment: If Mes x_n,i The sequence is all 0 sequence, then the message Mes x_n,i Does not contain validation value; Otherwise, the message Mes x_n,i Contains the validation value.

6. The method according to claim 1, characterized in that Step (4d1) accepts the request vehicle node OBU m,j Determine Mes by verifying the hash value k_n,i Whether it has been tampered by other malicious nodes is determined by the OBU node of the vehicle that receives the request. m,j First, according to q hash values ​​CerHash d Calculate the Merkle tree root hash value MRHash; then compare it with the block Block d MerkleRootHash d For comparison: If MRHash=MerkleRootHash d , then Block d Transactions stored in have not been tampered with: Otherwise, the transaction has been tampered with.

7. The method according to claim 1, characterized in that BlockCer of step (4d2) n,i , consisting of the certificate standard domain, certificate extension domain, and aggregate signature; The standard domain of the certificate includes the certificate version number, certificate serial number, revocation flag, aggregate signature algorithm identifier, certificate validity expiration time, Internet of Vehicles device subject name, Internet of Vehicles device subject public key information, issuer CA unique identifier, and Internet of Vehicles device subject unique identity identifier; when the revocation flag value is 0, it means that the certificate has been revoked, and when it is 1, it means that the certificate has not been revoked; The certificate extension domain includes the public key usage, certificate policy, policy mapping, alternative names of the Internet of Vehicles device subject, and basic constraints in the certificate.

8. The method according to claim 1, characterized in that In step (4d3), the vehicle node OBU receives the request m,j Verify block certificate BlockCer n,i Whether it is a revoked certificate is determined by the BlockCer n,i The certificate revocation flag value in is: If the certificate revocation flag is 1, the block certificate BlockCer n,i is a valid certificate; Otherwise, the block certificate BlockCer n,i To revoke the certificate.

9. The method according to claim 1, characterized in that: In step (4e), the vehicle node OBU receives the request m,j Determine the decryption signature information DSig n,i With the request message Req n,i Whether the cascade data in is consistent is implemented as follows: (4e1) Receive message vehicle node OBU m,j By Cer n,i The public key in Pub n,i Req n,i The signature Sig n,i Decrypt and get the decryption result DSig n,i ={DCer n,i ||Dr n,i ||DT n,i },in; DCer n,i Is the signature Sig n,i Chinese Certificate Cer n,i The decryption result of Dr. n,i Is the signature Sig n,i Random number r n,i The decryption result, DT n,i Is the signature Sig n,i Timestamp T n,i The decryption result of (4e2) The decrypted result {DCer n,i ||Dr n,i ||DT n,i } and Req n,i The data string in {Cer n,i ||r n,i ||T n,i } for comparison: If {DCer n,i ||Dr n,i ||DT n,i }={Cer n,i ||r n,i ||T n,i }, then decrypt the signature information DSig n,i With the request message Req n,i The cascade data in is consistent; Otherwise, decrypt the signature information DSig n,i With the request message Req n,i The cascade data in is inconsistent.

Citation Information

Patent Citations

  • Internet of vehicles equipment identity authentication and key negotiation method based on block chain

    CN112929179A

  • Internet of Vehicles system based on block chain and working method

    CN110446183A

  • Efficient anonymous identity authentication method in Internet of Vehicles environment

    CN111372248A

  • Internet of Vehicles cross-domain authentication method based on side chain technology trust model

    CN112153608A

  • Decentralized identity authentication device and method for privacy protection of Internet of Vehicles

    CN112437108A