Statistical compilation method and apparatus for digital certificate, and electronic device and medium

By downloading and analyzing only the digital signature envelope data segment, the problem of high bandwidth consumption in existing technologies is solved, enabling efficient digital certificate statistics and supporting policy adjustments by CA institutions.

WO2025007373A1PCT designated stage expired Publication Date: 2025-01-09TRUSTASIA TECH INC
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/108343
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-07-03
Filing Date
2023-07-20
Publication Date
2025-01-09

AI Technical Summary

Technical Problem

Existing technologies require downloading the entire software file when analyzing digital certificates for software on the Internet, resulting in high bandwidth consumption and low analysis efficiency.

Method used

By locating and identifying data in the software to be analyzed, only the digital signature envelope data segment is downloaded, and its corresponding digital certificate information is analyzed. This includes determining the size of the PE file header data segment, obtaining the offset of the digital envelope, sending a specific request to download the digital signature envelope data segment, and performing decoding analysis to extract the certificate information.

Benefits of technology

It effectively reduces download time and bandwidth consumption, improves data analysis efficiency, and can quickly collect certificate information, providing a data foundation for CA institutions to adjust their certificate issuance strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023108343_09012025_PF_FP_ABST
    Figure CN2023108343_09012025_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application are a statistical compilation method and apparatus for a digital certificate, and an electronic device and a medium. The method in the embodiments of the present application comprises: performing data positioning and identification on software to be subjected to statistical compilation, and downloading a digital-signature envelope data segment of said software (S200); and according to the digital-signature envelope data segment, performing analysis, so as to obtain digital-certificate information corresponding to said software (S201). The present invention not only can effectively improve the efficiency of data analysis so as to save on bandwidth resources, but also can perform efficient statistical compilation on the usage of a code signing certificate of software on the Internet, thereby providing powerful support and a data basis for a CA to adjust strategies regarding certificate issuing, etc.
Need to check novelty before this filing date? Find Prior Art

Description

Digital certificate statistics method, device, electronic equipment and medium Technical Field

[0001] The present application relates to the technical field of digital certificate statistics, and in particular to a digital certificate statistics method, device, electronic device and medium. Background Art

[0002] A CA, also known as a Certificate Authority (CA), serves as a trusted third party in e-commerce transactions and is responsible for verifying the legitimacy of public keys within the public key system. CAs can provide key escrow services upon request, backing up and managing clients' encryption key pairs. A CA issues a digital certificate to each user using a public key. This digital certificate verifies that the user listed in the certificate legally possesses the public key listed in the certificate. The CA's digital signature prevents attackers from forging or tampering with the certificate. In SET transactions, the CA issues certificates not only to cardholders and merchants, but also to banks and gateways that receive payments. Responsible for generating, distributing, and managing the digital certificates required by all individuals participating in online transactions, CAs are a core component of secure electronic transactions.

[0003] Furthermore, the internet software market hosts a vast number of software programs submitted by companies or individuals for download and use. As a CA, policy adjustments require statistics on whether software on the market is digitally signed, whether the digital certificates are valid, and whether the digital certificates are soft or hard certificates. Therefore, these programs must be downloaded one by one for data analysis. However, due to the large number of software programs and the large number of files exceeding 2GB, this process consumes significant bandwidth resources and results in inefficient data analysis.

[0004] Summary of the Invention

[0005] In view of the above problems, this specification is proposed to provide a digital certificate statistics method, device, electronic device and medium that overcome the above problems or at least partially solve the above problems.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by practice of the present disclosure.

[0007] In a first aspect, an embodiment of the present application provides a digital certificate statistics method, including: performing data location identification on the software to be counted, downloading the digital signature envelope data segment to the software to be counted; and analyzing the digital certificate information corresponding to the software to be counted based on the digital signature envelope data segment.

[0008] In some embodiments, data location and identification are performed on the software to be counted, and a digital signature envelope data segment of the software to be counted is downloaded, including: determining the size of the PE file header data segment; writing a first character string in the http header to send a first download request based on the size of the PE file header data segment, and only downloading the PE file header data segment of the software to be counted; performing data analysis on the PE file header data segment, and obtaining an offset M of the digital envelope from the PE file header data segment; writing a second character string in the http header to send a second download request based on the offset M of the digital envelope, and only downloading the data segment containing the digital envelope of the software to be counted, to obtain the digital signature envelope data segment of the software to be counted.

[0009] In some embodiments, the digital certificate information corresponding to the software to be counted is analyzed based on the digital signature envelope data segment, including: loading the digital envelope data segment data; decoding and analyzing the digital envelope data segment data to obtain a digital envelope; extracting data in the unverified attribute segment of the digital envelope whose object identifier is a preset object identifier to obtain a multi-signature digital envelope; and counting the digital certificate information corresponding to the software to be counted based on the multi-signature digital envelope.

[0010] In some embodiments, digital certificate information corresponding to the software to be counted is counted based on a multi-signature digital envelope, where the multi-signature digital envelope includes multiple digital envelopes, including: extracting signer information from the multiple digital envelopes; and deriving digital certificate information based on the signer information.

[0011] In some embodiments, the signer information includes but is not limited to the organization name, the digital certificate user, the certificate validity period, and the certificate issuer information.

[0012] In some embodiments, digital certificate information is derived based on the signer information, including: comparing the organization name with the existing order database to obtain the organization name comparison result, the comparison process uses desensitizing processing to perform SHA256 hash calculation on the organization name, and then cross-matching; calculating the proportion of different digital certificate types by extracting the digital certificate type, and the digital certificate type extraction process determines whether the digital certificate type is EV type by whether the digital certificate user contains a commercial type value. When the digital certificate type is EV type, whether the certificate policy value in the certificate extension attribute contains organization information is determined to determine whether the digital certificate type is OV type; calculating the monthly distribution of certificate expiration time through the certificate validity period; obtaining the O field through the certificate issuer information, and the O field is used for certificate brand analysis.

[0013] In some embodiments, digital certificate information includes but is not limited to certificate version, serial number, signature algorithm, issuer, validity period, subject name, public key information, extended information, and signature.

[0014] In a second aspect, embodiments of the present application provide a digital certificate statistics device, comprising: a data identification module for locating and identifying data of software to be counted, and downloading a digital signature envelope data segment to the software to be counted; and a statistics module for analyzing the digital signature envelope data segment to obtain digital certificate information corresponding to the software to be counted. In a third aspect, embodiments of the present application provide an electronic device, comprising a memory storing a plurality of instructions; and a processor for loading instructions from the memory to execute the steps of any of the digital certificate statistics methods provided in embodiments of the present application.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps in any one of the digital certificate statistics methods provided in the embodiments of the present application.

[0016] The embodiment of the present application can first perform data identification on the software to be counted to obtain the first data segment of the software to be counted; then load the first data segment into memory and obtain the digital signature envelope data segment from the first data segment; and then count the digital certificate information corresponding to the software to be counted based on the digital signature envelope data segment.

[0017] For each piece of software, regardless of its size, the present invention only downloads the data portion containing the digital certificate. This small data portion is then loaded into memory, the digital envelope format is analyzed, and the certificate information is collected. This invention can efficiently generate statistics on the usage of software code signing certificates on the internet, making it easier for CAs to adjust their certificate issuance policies based on this statistical data.

[0018] The present invention can effectively improve the efficiency of data analysis and save bandwidth resources. Downloading only the data portion of the software containing the digital certificate, rather than the entire software, can significantly reduce download time and bandwidth consumption. At the same time, loading only small-scale data portions, rather than the entire software, can also quickly analyze the digital envelope format and collect certificate information. Through the technical solution of the present invention, the usage of software code signing certificates on the Internet can be efficiently counted, providing strong support and data foundation for CA organizations to adjust policies such as certificate issuance. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0020] FIG1 is a schematic diagram of a scenario of a digital certificate statistics method provided in an embodiment of the present application;

[0021] FIG2a is a flow chart of a digital certificate statistics method provided in an embodiment of the present application;

[0022] FIG2 b is a schematic diagram of the structure of a PE file corresponding to the software to be counted provided in an embodiment of the present application;

[0023] FIG3 is a schematic diagram of the structure of a digital certificate statistics device provided in an embodiment of the present application;

[0024] FIG4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not 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 are within the scope of protection of this application.

[0026] The embodiments of the present application provide a digital certificate statistics method, device, electronic device, and medium.

[0027] The digital certificate statistics device can be integrated into an electronic device, such as a terminal or a server. The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, or personal computer (PC); the server can be a single server or a server cluster consisting of multiple servers.

[0028] In some embodiments, the digital certificate statistics device can also be integrated into multiple electronic devices. For example, the digital certificate statistics device can be integrated into multiple servers, and the digital certificate statistics method of the present application can be implemented by multiple servers.

[0029] In some embodiments, the server may also be implemented in the form of a terminal.

[0030] For example, referring to Figure 1, which is a scenario diagram of the digital certificate statistics method provided in an embodiment of the present application, it may include a server 100 and a storage terminal 110; the server 100 and the storage 110 can be connected to communicate with each other, which will not be repeated here.

[0031] The storage terminal 110 can store the software to be counted, etc. The server 100 can first locate and identify the software to be counted, download the digital signature envelope data segment of the software to be counted, and analyze the digital certificate information corresponding to the software to be counted based on the digital signature envelope data segment.

[0032] It should be noted that the serial numbers of the following embodiments are not intended to limit the preferred order of the embodiments.

[0033] In this embodiment, a digital certificate statistics method is provided, as shown in FIG2a , which is applied to a server. The specific process of the digital certificate statistics method may be as follows:

[0034] 200. Perform data location identification on the statistical software, and download and obtain the digital signature envelope data segment of the statistical software.

[0035] In some embodiments, data location and identification are performed on the software to be counted, and a digital signature envelope data segment of the software to be counted is downloaded, including: determining the size of the PE file header data segment; writing a first character string in the http header to send a first download request based on the size of the PE file header data segment, and only downloading the PE file header data segment of the software to be counted; performing data analysis on the PE file header data segment, and obtaining an offset M of the digital envelope from the PE file header data segment; writing a second character string in the http header to send a second download request based on the offset M of the digital envelope, and only downloading the data segment containing the digital envelope of the software to be counted, to obtain the digital signature envelope data segment of the software to be counted.

[0036] In the embodiment of the present application, the http header is the core of the HTTP request and the corresponding information, which carries information related to the client browser, the requested page, the server, etc.

[0037] In an embodiment of the present application, data location and identification are performed on the software to be counted to obtain the digital envelope data segment of the software to be counted, specifically including: first determining the size of the PE file header data segment, for example, the size of the PE file header data segment is 512 bytes, and then sending a first download request based on the size of the PE file header data segment by writing a first string in the http header, for example, the first string is "Range:bytes=0-511", and the embodiment of the present application sends a download request by writing "Range:bytes=0-511" in the http header, and only downloads the PE file header data segment of the software to be counted; then the embodiment of the present application performs data analysis on the PE file header data segment, and obtains the offset M of the digital envelope from the PE file header data segment; then, based on the digital envelope offset M, sending a second download request by writing a second string in the http header, for example, the second string is "Range:bytes=-M", and the embodiment of the present application sends a download request by writing "Range:bytes=-M" in the http header, and only downloads the partial data segment containing the digital envelope in the software to be counted.

[0038] In some embodiments, the first data segment is loaded into memory, and a digital signature envelope data segment is obtained from the first data segment, wherein the digital signature envelope data segment is a data segment of the software to be counted that is digitally signed using a digital certificate when the software is code signed, and the digital signature envelope data segment is embedded in the first data segment.

[0039] In this embodiment of the present application, the digital signature envelope data segment is embedded within the first data segment of the software to be counted, using a digital certificate to digitally sign the software data during code signing. The software also uses a digital certificate to digitally sign the software data during code signing, embedding the digital signature envelope data segment at the appropriate location in the file. The digital signature data segment follows the PKCS#7 standard format and contains the digital certificate data in DER format.

[0040] In some embodiments, performing data identification on the software to be counted further includes obtaining an executable software program corresponding to the software to be counted; and identifying a PE file corresponding to the software to be counted based on the executable software program corresponding to the software to be counted.

[0041] In the embodiment of the present application, the executable software program includes but is not limited to exe, msi, dll, etc. The executable software program has a PE-COFF standard data format.

[0042] In the embodiment of the present application, the software to be counted includes an executable software program, which has the structure of an executable file (image) and an object file. These files are respectively called Portable Executable (PE) files and Common Object File Format (COFF) files. The executable software program has the PE-COFF standard data format. Specifically, the Portable Executable file has the PE standard data format, and the Common Object File Format file has the COFF standard data format.

[0043] Specifically, as shown in Figure 2b, the structure of the PE file corresponding to the software to be counted consists of two parts: one is the file header, which includes the disk operating system header (DOS Header), portable executable header (PE Header), optional header (Optional Header), section table (Sections Table), etc. The other part is the file sections, which include code (Code), import files (Imports), data segments, etc.

[0044] 210. Analyze the digital certificate information corresponding to the software to be counted based on the digital signature envelope data segment.

[0045] In the embodiment of the present application, the digital certificate information is a digital certificate obtained from a digital signature envelope, and the digital certificate contains company information, address and other information.

[0046] Specifically, digital certificate information includes but is not limited to certificate version, serial number, signature algorithm, issuer, validity period, subject name, public key information, extended information, signature, etc.

[0047] In the embodiment of the present application, version: the corresponding version in the certificate format standard. The digital certificate in the embodiment of the present application uses the version of X.509. Serial number: a positive integer assigned to the certificate by the issuer. The serial numbers of certificates issued by the same issuer are different and can be used together with the issuer name as the unique identifier of the certificate. Signature algorithm: the signature algorithm used by the issuer to issue the certificate. Issuer: the name of the device that issues the certificate, which must be consistent with the subject name in the issuer's certificate. Usually the name of the CA server. Validity period: contains the valid start and end dates. Certificates that are not within the validity period are invalid certificates. Subject name: the name of the certificate owner. If it is the same as the issuer, it means that the certificate is a self-signed certificate. Public key information: the public key and public key algorithm information disclosed by the user. Extended information: usually includes optional fields such as the usage of the certificate and the publication address of the CRL. Signature: the signature of the certificate information by the issuer using the private key.

[0048] In some embodiments, the digital certificate information corresponding to the software to be counted is analyzed based on the digital signature envelope data segment, including: loading the digital envelope data segment data; decoding and analyzing the digital envelope data segment data to obtain a digital envelope; extracting data in the unverified attribute segment of the digital envelope whose object identifier is a preset object identifier to obtain a multi-signature digital envelope; and counting the digital certificate information corresponding to the software to be counted based on the multi-signature digital envelope.

[0049] In an embodiment of the present application, the digital envelope data segment analysis process includes: loading the digital envelope data segment data, performing decoding analysis, and obtaining a digital envelope; then extracting data in the unverified attribute segment of the digital envelope whose object identifier is a preset object identifier, such as extracting data in the unverified attribute segment whose OID is "1.3.6.1.4.1.311.2.4.1", to obtain a dual-signed (dual-signature software can meet the compatibility of different operating systems) digital envelope, or even a multi-digital signature envelope.

[0050] In some embodiments, digital certificate information corresponding to the software to be counted is counted based on a multi-signature digital envelope, where the multi-signature digital envelope includes multiple digital envelopes, including: extracting signer information from the multiple digital envelopes; and deriving digital certificate information based on the signer information.

[0051] In an embodiment of the present application, signer information is extracted from multiple digital envelopes to obtain a certificate, and detailed information of the digital certificate can be obtained by analyzing the certificate.

[0052] In some embodiments, digital certificate information is derived based on the signer information, and the signer information includes but is not limited to the organization name, the digital certificate user, the certificate validity period, and the certificate issuer information, including: comparing the organization name with the existing order database to obtain the organization name comparison result, and the comparison process uses desensitization processing to perform SHA256 hash calculation on the organization name, and then cross-matching; calculating the proportion of different digital certificate types by extracting the digital certificate type, and the digital certificate type extraction process determines whether the digital certificate type is EV type by whether the digital certificate user contains a commercial type value. When the digital certificate type is EV type, whether the certificate policy value in the certificate extension attribute contains organization information is determined to determine whether the digital certificate type is OV type; calculating the monthly distribution of certificate expiration time through the certificate validity period; obtaining the O field through the certificate issuer information, and the O field is used for certificate brand analysis.

[0053] The embodiment of the present application can perform data location and identification on the software to be counted, download the digital signature envelope data segment of the software to be counted, and analyze the digital certificate information corresponding to the software to be counted based on the digital signature envelope data segment.

[0054] For each piece of software, regardless of its size, the present invention only downloads the data portion containing the digital certificate. This small data portion is then loaded into memory, the digital envelope format is analyzed, and the certificate information is collected. This invention can efficiently generate statistics on the usage of software code signing certificates on the internet, making it easier for CAs to adjust their certificate issuance policies based on this statistical data.

[0055] The present invention can effectively improve the efficiency of data analysis and save bandwidth resources. Downloading only the data portion of the software containing the digital certificate, rather than the entire software, can significantly reduce download time and bandwidth consumption. At the same time, loading only small-scale data portions, rather than the entire software, can also quickly analyze the digital envelope format and collect certificate information. Through the technical solution of the present invention, the usage of software code signing certificates on the Internet can be efficiently counted, providing strong support and data foundation for CA organizations to adjust policies such as certificate issuance.

[0056] To better implement the above method, the present application also provides a digital certificate statistics device. The digital certificate statistics device can be integrated into an electronic device, such as a terminal or a server. The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, personal computer, etc. The server can be a single server or a server cluster consisting of multiple servers.

[0057] For example, in this embodiment, the method of the embodiment of the present application will be described in detail by taking the digital certificate statistics device specifically integrated into an electronic device as an example.

[0058] For example, as shown in FIG3 , the digital certificate statistics apparatus may include a data identification module 300 and a statistics module 310. The data identification module 300 is configured to locate and identify the data of the software to be counted and download the digital signature envelope data segment of the software to be counted; the statistics module 310 is configured to analyze the digital certificate information corresponding to the software to be counted based on the digital signature envelope data segment.

[0059] In some embodiments, the data identification module 300 includes a data identification sub-module, which is configured to: determine the size of the PE file header data segment; write a first string in the http header to send a first download request based on the size of the PE file header data segment, and only download the PE file header data segment of the software to be counted; perform data analysis on the PE file header data segment, and obtain the offset M of the digital envelope from the PE file header data segment; write a second string in the http header to send a second download request based on the offset M of the digital envelope, and only download the data segment containing the digital envelope in the software to be counted, to obtain the digital signature envelope data segment of the software to be counted.

[0060] In some embodiments, the statistics module 310 includes an analysis module, which is configured to: load digital envelope data segment data; decode and analyze the digital envelope data segment data to obtain a digital envelope; extract data in the unverified attribute segment of the digital envelope whose object identifier is a preset object identifier to obtain a multi-signature digital envelope; and count the digital certificate information corresponding to the software to be counted based on the multi-signature digital envelope.

[0061] In some embodiments, the multi-signature digital envelope includes multiple digital envelopes, the analysis module includes an extraction module, and the extraction module is configured to: extract signer information from the multiple digital envelopes; and derive digital certificate information based on the signer information.

[0062] In some embodiments, the signer information includes but is not limited to the organization name, the digital certificate user, the certificate validity period, and the certificate issuer information. The extraction module includes an extraction sub-module, and the extraction sub-module is configured to: compare the organization name with the existing order database to obtain the organization name comparison result. The comparison process uses desensitization processing to perform SHA256 hash calculation on the organization name, and then cross-match; calculate the proportion of different digital certificate types by extracting the digital certificate type. The digital certificate type extraction process determines whether the digital certificate type is EV type by whether the digital certificate user contains a commercial type value. When the digital certificate type is EV type, whether the certificate policy value in the certificate extension attribute contains organization information is determined to determine whether the digital certificate type is OV type; calculate the monthly distribution of certificate expiration time by the certificate validity period; obtain the O field through the certificate issuer information, and the O field is used for certificate brand analysis.

[0063] In some embodiments, digital certificate information includes but is not limited to certificate version, serial number, signature algorithm, issuer, validity period, subject name, public key information, extended information, and signature.

[0064] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can be found in the previous method embodiments and will not be repeated here.

[0065] As can be seen from the above, the digital certificate statistics device of this embodiment can locate and identify the data of the software to be counted, download the digital signature envelope data segment of the software to be counted, and analyze the digital certificate information corresponding to the software to be counted based on the digital signature envelope data segment.

[0066] For each piece of software, regardless of its size, the present invention only downloads the data portion containing the digital certificate. This small data portion is then loaded into memory, the digital envelope format is analyzed, and the certificate information is collected. This invention can efficiently generate statistics on the usage of software code signing certificates on the internet, making it easier for CAs to adjust their certificate issuance policies based on this statistical data.

[0067] The present invention can effectively improve the efficiency of data analysis and save bandwidth resources. Downloading only the data portion of the software containing the digital certificate, rather than the entire software, can significantly reduce download time and bandwidth consumption. At the same time, loading only small-scale data portions, rather than the entire software, can also quickly analyze the digital envelope format and collect certificate information. Through the technical solution of the present invention, the usage of software code signing certificates on the Internet can be efficiently counted, providing strong support and data foundation for CA organizations to adjust policies such as certificate issuance.

[0068] The present application also provides an electronic device, which may be a terminal, a server, or the like. The terminal may be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a personal computer, or the like; the server may be a single server or a server cluster consisting of multiple servers, or the like.

[0069] In some embodiments, the digital certificate statistics device can also be integrated into multiple electronic devices. For example, the digital certificate statistics device can be integrated into multiple servers, and the digital certificate statistics method of the present application can be implemented by multiple servers.

[0070] In this embodiment, the electronic device of this embodiment is a server as an example for detailed description. For example, as shown in FIG4 , it shows a schematic diagram of the structure of the server involved in the embodiment of the present application. Specifically:

[0071] The server may include one or more processing core processors 401, one or more computer-readable storage media memories 402, a power supply 403, an input module 404, and a communication module 405. Those skilled in the art will appreciate that the server structure shown in FIG4 does not limit the server and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0072] Processor 401 is the server's control center, connecting various components of the server using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 402 and accessing data stored in memory 402, it performs various server functions and processes data, thereby providing overall server monitoring. In some embodiments, processor 401 may include one or more processing cores. In some embodiments, processor 401 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 401.

[0073] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the server, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0074] The server also includes a power supply 403 that supplies power to various components. In some embodiments, the power supply 403 can be logically connected to the processor 401 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 403 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0075] The server may further include an input module 404, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0076] The server may also include a communication module 405. In some embodiments, the communication module 405 may include a wireless module. The server may use the wireless module of the communication module 405 to perform short-range wireless transmission, thereby providing users with wireless broadband Internet access. For example, the communication module 405 may be used to help users send and receive emails, browse web pages, and access streaming media.

[0077] Although not shown, the server may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the server will load the executable files corresponding to one or more application processes into the memory 402 according to the following instructions, and the processor 401 will run the application stored in the memory 402, thereby realizing various functions of the digital certificate statistics device.

[0078] In some embodiments, a computer program product is also proposed, including a computer program or instructions, which implement the steps in any of the above-mentioned digital certificate statistics methods when executed by a processor.

[0079] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0080] From the above, it can be seen that the embodiment of the present application can perform data location identification on the software to be counted, download the digital signature envelope data segment of the software to be counted; and analyze the digital certificate information corresponding to the software to be counted based on the digital signature envelope data segment.

[0081] For each piece of software, regardless of its size, the present invention only downloads the data portion containing the digital certificate. This small data portion is then loaded into memory, the digital envelope format is analyzed, and the certificate information is collected. This invention can efficiently generate statistics on the usage of software code signing certificates on the internet, making it easier for CAs to adjust their certificate issuance policies based on this statistical data.

[0082] The present invention can effectively improve the efficiency of data analysis and save bandwidth resources. Downloading only the data portion of the software containing the digital certificate, rather than the entire software, can significantly reduce download time and bandwidth consumption. At the same time, loading only small-scale data portions, rather than the entire software, can also quickly analyze the digital envelope format and collect certificate information. Through the technical solution of the present invention, the usage of software code signing certificates on the Internet can be efficiently counted, providing strong support and data foundation for CA organizations to adjust policies such as certificate issuance.

[0083] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0084] To this end, embodiments of the present application provide a computer-readable storage medium storing a plurality of instructions capable of being loaded by a processor to execute the steps of any of the digital certificate statistics methods provided in embodiments of the present application. For example, the instructions may execute the following steps: first, locating and identifying data of the software to be counted, downloading the digital signature envelope data segment of the software to be counted; and then analyzing the digital certificate information corresponding to the software to be counted based on the digital signature envelope data segment.

[0085] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0086] According to one aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the digital certificate statistics provided in the above-mentioned embodiments.

[0087] Since the instructions stored in the storage medium can execute the steps in any digital certificate statistics method provided in the embodiments of the present application, the beneficial effects that can be achieved by any digital certificate statistics method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0088] The above is a detailed introduction to a digital certificate statistics method, device, server and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A digital certificate statistics method, characterized in that: include: Perform data location identification on the software to be counted, and download and obtain the digital signature envelope data segment of the software to be counted; The digital certificate information corresponding to the software to be counted is analyzed according to the digital signature envelope data segment.

2. The digital certificate statistics method according to claim 1, characterized in that: The data location identification of the software to be counted and the downloading of the digital signature envelope data segment of the software to be counted include: Determine the size of the PE file header data segment; According to the size of the PE file header data segment, a first character string is written into the http header to send a first download request, and only the PE file header data segment of the software to be counted is downloaded; Performing data analysis on the PE file header data segment, and obtaining an offset M of the digital envelope from the PE file header data segment; According to the offset M of the digital envelope, by writing a second character string in the http header to send a second download request, only the data segment containing the digital envelope of the software to be counted is downloaded to obtain the digital signature envelope data segment of the software to be counted.

3. The digital certificate statistics method according to claim 1 or 2, characterized in that: The step of analyzing the digital certificate information corresponding to the software to be counted according to the digital signature envelope data segment includes: Loading the digital envelope data segment data; Decoding and analyzing the digital envelope data segment data to obtain a digital envelope; Extracting data whose object identifier is a preset object identifier in the unverified attribute segment of the digital envelope to obtain a multi-signature digital envelope; The digital certificate information corresponding to the software to be counted is counted according to the multi-signature digital envelope.

4. The digital certificate statistics method according to claim 3, characterized in that: The digital certificate information corresponding to the software to be counted is counted according to the multi-signature digital envelope, wherein the multi-signature digital envelope includes multiple digital envelopes, including: extracting signer information from the plurality of digital envelopes; The digital certificate information is obtained according to the signer information.

5. [Corrected 28.07.2023 in accordance with Rule 91] A digital certificate counting method as claimed in claim 4, characterized in that: The signer information includes but is not limited to the organization name, digital certificate user, certificate validity period, and certificate issuer information.

6. The digital certificate statistics method according to claim 5, characterized in that: The obtaining of digital certificate information according to the signer information includes: Compare the organization name with the existing order database to obtain the organization name comparison result. The comparison process uses desensitization processing to perform SHA256 hash calculation on the organization name and then perform cross matching; The proportion of different digital certificate types is calculated by extracting the digital certificate type. The process of extracting the digital certificate type determines whether the digital certificate type is EV type by whether the digital certificate user contains a commercial type value. When the digital certificate type is EV type, whether the digital certificate type is OV type is determined by whether the certificate policy value in the certificate extension attribute contains organization information. Calculate the monthly distribution of certificate expiration time through the certificate validity period; The O field is obtained through the certificate issuer information, and the O field is used for certificate brand analysis.

7. The digital certificate statistics method according to claim 1, characterized in that: The digital certificate information includes but is not limited to certificate version, serial number, signature algorithm, issuer, validity period, subject name, public key information, extended information, and signature.

8. A digital certificate statistics device, characterized in that: include: A data identification module is used to locate and identify the data of the software to be counted, and download the digital signature envelope data segment of the software to be counted; The statistics module is used to analyze the digital certificate information corresponding to the software to be counted according to the digital signature envelope data segment.

9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads the instructions from the memory to execute the steps in the digital certificate statistics method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the digital certificate statistics method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • System And Method For Detecting A File Embedded In An Arbitrary Location And Determining The Reputation Of The File

    CN104025102A

  • Computer process control method and tool

    CN110532775A

  • Code signature verification method based on computer memory evidence obtaining technology

    CN113761595A

  • The system for detecting malicious code using the structural features of microsoft portable executable and its using method

    KR100620313B1

  • Malicious file diagnosis device and control method thereof

    KR1020150136919A