Service certificate processing method and device

By obtaining and verifying the service certificate update information of the third-party server, generating and synchronously updating the certificate, the problem of dynamic update of the service certificate is solved, and the automatic update and flexibility improvement of the service certificate are realized.

CN118694583APending Publication Date: 2024-09-24ANT BLOCKCHAIN TECHNOLOGY (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410783703.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively handle the dynamic update of service certificates, resulting in service certificates being unable to flexibly adapt when services dynamically change, affecting the stability and efficiency of services.

Method used

By obtaining the update information of the service certificate deployed by the third-party server, querying the configuration items matching the updated information, collecting and verifying the configuration item information, generating the updated service certificate, and synchronizing it to the certificate verification component for verification when the certificate synchronization condition is triggered, it is realized Dynamic update of service certificates.

Benefits of technology

It realizes the automatic update of service certificates, improves the flexibility and convenience of service certificates, ensures that services maintain update consistency without restarting, and improves the success rate and security of certificate generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694583A
    Figure CN118694583A
Patent Text Reader

Abstract

The embodiment of the invention provides a service certificate processing method and device, and the method comprises the steps: querying a configuration item matched with certificate updating information in a configuration item set for certificate configuration according to the certificate updating information of a service deployed by a third-party server, the method comprises the following steps: performing information acquisition on a configuration item to obtain configuration item information of the configuration item, performing verification processing on the configuration item information of the configuration item, performing certificate generation processing by virtue of the configuration item information of the configuration item after the verification processing is passed to obtain an updated service certificate, and transmitting the updated service certificate to a third-party server, and the certificate synchronization component is used for updating the service certificate stored in the certificate access path of the service deployed by the third-party server into an updated service certificate, and synchronizing certificate information of the updated service certificate to the certificate verification component under the condition that a certificate synchronization condition is detected to be triggered, so that certificate verification in the service access process is carried out through the certificate verification component.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This document relates to the field of data processing technology, and in particular to a service certificate processing method and device. Background Art

[0002] The service license is provided by the developer or owner of the service (i.e., the licensor) to the user of the service (i.e., the licensee) to define and regulate the rights, restrictions, and responsibilities of the user in using the service. With the continuous development and promotion of the Internet, the update and iteration of services such as software products are gradually accelerating, and the demand for obtaining service use licenses through service licenses is also gradually increasing, resulting in different conditions for generating licenses for each service, which brings certain challenges and pressures to the providers of service licenses. Summary of the invention

[0003] One or more embodiments of the present specification provide a service certificate processing method, including: obtaining certificate update information of a service deployed by a third-party server, and querying a configuration item that matches the certificate update information in a set of configuration items for certificate configuration. Information collection is performed on the configuration item to obtain configuration item information of the configuration item, and verification processing is performed on the configuration item information of the configuration item. After the verification processing is passed, certificate generation processing is performed according to the configuration item information of the configuration item to obtain an updated service certificate. The updated service certificate is transmitted to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and after detecting that the certificate synchronization condition is triggered, the certificate information of the updated service certificate is synchronized to the certificate verification component for certificate verification during the service access process.

[0004] One or more embodiments of the present specification provide a service certificate processing device, including: an information acquisition module, configured to obtain certificate update information of a service deployed by a third-party server, and query a configuration item matching the certificate update information in a set of configuration items for certificate configuration. An information collection module, configured to perform information collection on the configuration item to obtain configuration item information of the configuration item, and perform verification processing on the configuration item information of the configuration item. A certificate generation module, configured to perform certificate generation processing according to the configuration item information of the configuration item after the verification processing passes, and obtain an updated service certificate. A certificate transmission module, configured to transmit the updated service certificate to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and synchronize the certificate information of the updated service certificate to the certificate verification component for certificate verification during service access after detecting that the certificate synchronization condition is triggered.

[0005] One or more embodiments of the present specification provide a service certificate processing device, including: a processor; and a memory configured to store computer executable instructions, wherein when the computer executable instructions are executed, the processor: obtains certificate update information of a service deployed by a third-party server, and queries a configuration item that matches the certificate update information in a set of configuration items for certificate configuration. Information collection is performed on the configuration item to obtain configuration item information of the configuration item, and the configuration item information of the configuration item is verified. After the verification process passes, certificate generation processing is performed according to the configuration item information of the configuration item to obtain an updated service certificate. The updated service certificate is transmitted to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and after detecting that the certificate synchronization condition is triggered, the certificate information of the updated service certificate is synchronized to the certificate verification component for certificate verification during the service access process.

[0006] One or more embodiments of the present specification provide a computer-readable storage medium for storing computer-executable instructions, which implement the following steps when executed: obtaining certificate update information of a service deployed by a third-party server, and querying a configuration item that matches the certificate update information in a set of configuration items for certificate configuration. Information collection is performed on the configuration item to obtain configuration item information of the configuration item, and the configuration item information of the configuration item is verified. After the verification process passes, certificate generation is performed according to the configuration item information of the configuration item to obtain an updated service certificate. The updated service certificate is transmitted to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and after detecting that the certificate synchronization condition is triggered, the certificate information of the updated service certificate is synchronized to the certificate verification component for certificate verification during service access. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] In order to more clearly illustrate one or more embodiments of the present specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present specification. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative labor.

[0008] Figure 1 A schematic diagram of an implementation environment of a service certificate processing method provided in one or more embodiments of this specification;

[0009] Figure 2 A processing flow chart of a service certificate processing method provided in one or more embodiments of this specification;

[0010] Figure 3 A processing flow chart of a service certificate processing method applied to a license generation scenario provided by one or more embodiments of this specification;

[0011] Figure 4 A schematic diagram of an embodiment of a service certificate processing device provided in one or more embodiments of this specification;

[0012] Figure 5 A schematic diagram of the structure of a service certificate processing device provided in one or more embodiments of this specification. DETAILED DESCRIPTION

[0013] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.

[0014] The service certificate processing method provided in one or more embodiments of this specification can be applied to the implementation environment of service certificate processing. Figure 1 , the implementation environment at least includes:

[0015] The processing server 101 performs service certificate processing. In addition, the implementation environment may also include a third-party server 102 and a certificate verification component 103.

[0016] Among them, the processing server 101 can be a server, or a server cluster composed of several servers, or one or more cloud servers in a cloud computing platform; the third-party server 102 can also be a server, or a server cluster composed of several servers, or one or more cloud servers in a cloud computing platform; a service is deployed on the third-party server 102, and the certificate verification component 103 can be integrated into the service; there may be no public network connection between the processing server 101 and the third-party server 102, and the third-party server 102 may be in a private network, and data can be transmitted between the processing server 101 and the third-party server 102 through a dedicated network channel set up in the private network.

[0017] In this implementation environment, the processing server 101 searches for configuration items matching the certificate update information in the configuration item set for certificate configuration according to the certificate update information of the service deployed by the third-party server 102, collects information for the configuration items to obtain the configuration item information of the configuration items, and performs verification processing on the configuration item information of the configuration items. The integrity of the configuration item information of the configuration items is ensured by the verification processing, thereby improving the success rate of subsequent certificate generation. After the verification processing passes, the certificate generation processing is performed with the help of the configuration item information of the configuration items to obtain the updated service certificate, and the updated service certificate is transmitted to the third-party server 102, so as to update the service certificate stored in the certificate access path of the service deployed by the third-party server 102 to the updated service certificate, and synchronize the certificate information of the updated service certificate to the certificate verification component 103 when it is detected that the certificate synchronization condition is triggered, so as to perform certificate verification in the service access process through the certificate verification component 103, and realize dynamic update of the service certificate through the certificate verification component, so that the service can achieve the effect of automatic update of the service certificate without restarting, thereby improving the flexibility of updating the service certificate.

[0018] One or more embodiments of a service certificate processing method provided in this specification are as follows:

[0019] Reference Figure 2 The service certificate processing method provided in this embodiment specifically includes steps S202 to S208.

[0020] Step S202: Acquire certificate update information of a service deployed by a third-party server, and search for a configuration item matching the certificate update information in a configuration item set for certificate configuration.

[0021] In actual applications, in privatized delivery scenarios, it is often necessary to deploy services on the customer's server based on customer needs, that is, to deploy services on the customer's private server. In this process, the management of service certificates is usually static, that is, a service certificate obtained once remains unchanged during the entire period of use and cannot flexibly adapt to the dynamic changes in service needs. In view of this, in order to improve the flexibility of using service certificates, this embodiment provides a dynamic update method for the service certificate of the service, and the service certificate can flexibly adapt to the dynamic changes of the service through the dynamic update method.

[0022] The third-party server described in this embodiment includes a third-party server, that is, the object or customer to which the service needs to be delivered in the privatized delivery scenario. The third party here can be an individual user, or an institution or an organization within the institution, such as an enterprise or an enterprise organization within the enterprise; optionally, the third-party server is in a private network; the service certificate of the service is transmitted to the third-party server through a dedicated network channel set up in the private network; the private network refers to a private network within the third party; the dedicated network channel can be a virtual private network channel, such as VPN (Virtual Private Network). In addition, the service certificate of the service can also be transmitted to the third-party server in other ways.

[0023] The service certificate in this embodiment includes a service license, which is provided by the developer or copyright owner of the service to a third party to specify the terms, conditions and restrictions for the third party to use the service. The service includes a service application, which may specifically include a server application. The service type is not specifically limited here. For example, the service may be a database service, an operation service, a payment service, etc.

[0024] The certificate update information of the service refers to the relevant update information for updating the service certificate of the service. The certificate update information of the service may be the certificate update agreement of the service, such as the agreement signed by the third party for renewal of the service, which may be the certificate update agreement; the certificate update information may include the service authority information of the third party for the service, the environment information for the service deployment of the third party, etc. For example, the service authority information may be the use time range of the service from xx / xx / xx to xx / xx / xx, and the interface call limit of xx times for the interface in the service. For example, the environment information allows the service to be deployed on a server of a third party, and does not allow copying and use.

[0025] Optionally, the configuration item includes at least one of the following: a key configuration item, a deployment environment configuration item, and a service permission configuration item; the key configuration item may be a private key configuration item, or may be a public key configuration item and a private key configuration item; the deployment environment configuration item may include an IP (Internet Protocol) segment configuration item, a MAC (Media Access Control) address configuration item and / or a CPU (Central Processing Unit) information configuration item; the service permission configuration item may include a usage time configuration item and / or an interface call count configuration item; the configuration item set for certificate configuration refers to a set composed of one or more configuration items, and the configuration items in the configuration item set may be key configuration items, deployment environment configuration items and / or service permission configuration items.

[0026] In actual applications, when a third party uses a deployed service, there may be a need to renew the service, or there may be a need to change the deployment environment of the service, that is, there is a need to change the server deployed for the service. In this case, it is necessary to dynamically update the service certificate according to the dynamically changing needs of the third party, and dynamically match the configuration items with the certificate update information by querying the configuration items that match the certificate update information in the configuration item set for certificate configuration; in an optional implementation manner provided by this embodiment, in the process of querying the configuration items that match the certificate update information in the configuration item set for certificate configuration, the following operations are performed:

[0027] Extracting update keywords from the certificate update information;

[0028] The update keyword is matched with each configuration item in the configuration item set to obtain the configuration item matched by the update keyword.

[0029] Among them, the update keyword refers to the keyword related to the certificate update extracted from the certificate update information. For example, the update keywords extracted from the certificate update information include the three update keywords of service from xx / xx / xx to xx / xx / xx, signature required and deployment of one server. The update keyword is matched with each configuration item in the configuration item set, and the configuration items matched by the update keyword are obtained as key configuration items, usage time configuration items and deployment environment configuration items. The deployment environment configuration items may include IP network segment configuration items, MAC address configuration items and / or CPU information configuration items.

[0030] Step S204: collect information about the configuration item to obtain configuration item information of the configuration item, and perform verification processing on the configuration item information of the configuration item.

[0031] After obtaining the certificate update information of the service deployed on the third-party server, the configuration item that matches the certificate update information is queried in the configuration item set for certificate configuration. In this step, the configuration item information of the configuration item is collected and verified to ensure the integrity of the configuration item information of the configuration item, determine the accuracy of the configuration item and the configuration item information, and improve the success rate of subsequent certificate generation.

[0032] The configuration item information in this embodiment refers to the corresponding information collected for the configuration item. For example, if the configuration item is a usage time configuration item, the configuration item information of the configuration item is from xx / xx / xx to xx / xx / xx.

[0033] In a specific implementation, since the information source of the configuration item information of the configuration item may be different, that is, the method of obtaining the configuration item information of the configuration item may be different, in order to improve the comprehensiveness of the configuration item information of the configuration item; on the basis that the above-mentioned configuration item includes at least one of the following: a key configuration item, a deployment environment configuration item, and a service authority configuration item, in an optional implementation manner provided by this embodiment, in the process of collecting information for the configuration item to obtain the configuration item information of the configuration item, the following operations are performed:

[0034] Generate key information for the key configuration item, extract update keywords from the certificate update information based on the service authority configuration item as service authority information of the service authority configuration item, and obtain deployment environment information of the deployment environment configuration item from the third-party server.

[0035] Among them, when the key configuration item includes a private key configuration item, the private key information of the private key configuration item can be generated; when the key configuration item includes a public key configuration item and a private key configuration item, the public key information of the public key configuration item and the private key information of the private key configuration item can be generated, and the private key information of the private key configuration item is used as the key information of the key configuration item, and the public key information of the public key configuration item is transmitted to a third-party server, and can also be transmitted to the third-party server together with the update service certificate later.

[0036] For example, the service permission configuration items include usage time configuration items, and the update keyword xx / xx / xx to xx / xx / xx is extracted from the certificate update information as the usage time information of the usage time configuration item; the deployment environment information of the deployment environment configuration item is obtained from a third-party server.

[0037] It should be added that, in the above-mentioned process of collecting information for the configuration item to obtain the configuration item information of the configuration item, any one or two of the following three methods can also be executed: generating key information for the key configuration item, extracting update keywords from the certificate update information based on the service authority configuration item as the service authority information of the service authority configuration item, and obtaining the deployment environment information of the deployment environment configuration item from the third-party server.

[0038] After collecting information for the configuration items and obtaining the configuration item information of the configuration items, the configuration item information of the configuration items is verified. Specifically, the configuration item information of the configuration items may be verified for integrity, quality and / or information format. In addition, other types of verification processing may be performed on the configuration item information of the configuration items, which may help improve the success rate of subsequent certificate generation.

[0039] Step S206: after the verification process is passed, a certificate generation process is performed according to the configuration item information of the configuration item to obtain an update service certificate.

[0040] In the above steps, information collection is performed on the configuration items to obtain the configuration item information of the configuration items, and the configuration item information of the configuration items is verified. In this step, after the verification process is passed, the certificate generation process is performed according to the configuration item information of the configuration items to obtain the update service certificate. The update service certificate described in this embodiment can be a service certificate generated at any time after the service is deployed to the third-party server.

[0041] In actual applications, since the process of generating a certificate may be relatively complicated and the process of generating a certificate has high requirements for security, in order to improve the security of certificate generation, improve the efficiency and automation of certificate generation, the certificate generation can be completed through interface calls; in an optional implementation manner provided in this embodiment, in the process of performing certificate generation processing according to the configuration item information of the configuration item and obtaining the update service certificate, the following operations are performed:

[0042] Writing the configuration item information of the configuration item into the configuration item to obtain a writing result;

[0043] Using the written result as an interface call input, calling a certificate generation interface to generate a certificate and obtain a certificate identifier;

[0044] The certificate identifier is used as an interface calling input, and a certificate downloading interface is called to download the certificate to obtain the update service certificate.

[0045] The write result refers to a configuration combination of a configuration item and its configuration item information; for example, if the configuration item is a usage time configuration item, and its configuration item information is from xx / xx / xx to xx / xx / xx / xx, then the write result after writing the configuration item information of the configuration item into the configuration item is a configuration combination of the usage time configuration item and from xx / xx / xx to xx / xx / xx / xx / xx. The certificate identifier refers to an identifier that represents the uniqueness of the generated update service certificate.

[0046] It should be noted that in actual applications, after calling the certificate generation interface to generate a certificate and obtain a certificate identifier, there may still be a need to check the update service certificate to ensure the accuracy of the update service certificate; after calling the certificate generation interface to generate a certificate and obtain a certificate identifier with the write result as the interface call input, the certificate display interface can be called to display the certificate with the certificate identifier as the interface call input to obtain a display result; or after calling the certificate generation interface to generate a certificate and obtain a certificate identifier with the write result as the interface call input, before calling the certificate download interface to download the certificate and obtain the update service certificate with the certificate identifier as the interface call input, the certificate display interface can be called to display the certificate, thereby effectively ensuring the accuracy of the downloaded update service certificate and avoiding repeated downloading.

[0047] It should be added that after the certificate is generated through the certificate generation interface mentioned above, the update service certificate can be stored in the certificate database. After obtaining the certificate identifier passed in by the interface call, the certificate manager can search for the update service certificate in the certificate database based on the certificate identifier, and return the update service certificate to the certificate download interface.

[0048] Step S208, transmitting the updated service certificate to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and synchronizing the certificate information of the updated service certificate to the certificate verification component for certificate verification during the service access process after detecting that the certificate synchronization condition is triggered.

[0049] The above-mentioned certificate generation processing is performed according to the configuration item information of the configuration item to obtain an updated service certificate. In this step, the updated service certificate is transmitted to the third-party server to update the service certificate stored in the certificate access path of the service deployed by the third-party server to the updated service certificate, and after detecting that the certificate synchronization condition is triggered, the certificate information of the updated service certificate is synchronized to the certificate verification component, so as to perform certificate verification in the service access process through the certificate verification component; by updating the service certificate stored in the certificate access path of the service to the updated service certificate, the service certificate can be dynamically updated without restarting the service, thereby improving the convenience and flexibility of service certificate update.

[0050] The certificate access path of the service in this embodiment can be a complete path, that is, the entire path sequence starting from the root directory to the service certificate; the complete path can contain all the information of the service certificate and is independent of the location of the current working directory; the service certificate can be located at any time through the complete path, so that the service certificate can be dynamically updated without restarting the service. The service certificate stored in the certificate access path can be a historical service certificate, that is, the service certificate of the service generated before the service certificate is updated.

[0051] The certificate synchronization condition refers to the condition for synchronizing the certificate information of the update service certificate. The certificate synchronization condition may be that the coding value of the update service certificate is inconsistent with the preset coding value. The certificate verification component refers to a component that performs certificate verification and other operations. The certificate verification component may be in the form of an SDK (Software Development Kit), i.e., a certificate verification SDK. Optionally, the certificate synchronization condition is triggered, and the certificate verification component detects and determines through a timing task. The timing detection task is used to detect whether the update service certificate triggers the certificate synchronization condition within the timing period. The certificate information of the update service certificate may be the specific certificate content of the update service certificate, such as the usage time and the deployment environment information.

[0052] During specific implementation, in order to ensure the isolation of the certificate generation environment and the certificate verification environment, and to ensure the isolation of the third-party server and the certificate generation environment, so that the third party cannot generate certificates on its own, the security of the service certificate is guaranteed; in the process of transmitting the updated service certificate to the third-party server, the updated service certificate can be transmitted to the third-party server through a dedicated network channel.

[0053] During the specific execution process, in order to synchronize the certificate information in a timely manner when the updated service certificate is inconsistent with the service certificate stored in the certificate access path of the service, and to avoid the subsequent certificate verification through inaccurate certificate information due to untimely synchronization of the certificate information, thereby causing errors in certificate verification, this embodiment measures whether to synchronize the certificate information by updating the encoding value of the service certificate, thereby improving the accuracy of subsequent certificate verification; in an optional implementation manner provided by this embodiment, the certificate synchronization condition is triggered, and is detected and determined in the following manner:

[0054] Calculating the encoding value of the update service certificate by the certificate verification component to obtain the encoding value of the update service certificate;

[0055] It is detected whether the code value of the update service certificate is consistent with the preset code value, and if not, it is determined that the certificate synchronization condition is triggered.

[0056] The encoding value may be a hash value, specifically an MD5 (Message-Digest Algorithm 5) value. The preset encoding value may be a preset encoding value, which may be obtained by calculating the encoding value of the service certificate stored in the certificate access path of the service, or by calculating the encoding value of the service certificate previously received by the third-party server.

[0057] Specifically, the update service certificate can be input into the hash algorithm through the certificate verification component within a timing period to calculate the hash value, so as to obtain the hash value of the update service certificate. The certificate verification component can be used to detect whether the coding value of the update service certificate is consistent with the preset coding value. If not, it is determined that the certificate synchronization condition is triggered. If so, no processing is required.

[0058] After the certificate information of the update service certificate is synchronized to the certificate verification component, the certificate verification during the service access process can be performed through the certificate verification component; optionally, the certificate information of the update service certificate is obtained after the service reads the update service certificate from the certificate access path and parses the read update service certificate; the parsing process here can be content parsing.

[0059] In actual applications, the services deployed by the third-party server can provide one or more interfaces, so that the access party can call the interface to access the service; in this case, the service has different access requirements for each interface, resulting in different requirements for certificate verification for each interface. In view of this, in order to meet the diverse requirements of service certificate verification and achieve flexibility and convenience of certificate verification, a certificate verification tag can be introduced to detect whether to perform certificate verification on the interface corresponding to the calling interface identifier carried by the service request;

[0060] In an optional implementation manner provided by this embodiment, during the process of certificate verification during service access, the following operations are performed:

[0061] Obtain the calling interface identifier carried in the service request during the service access process;

[0062] Check whether the calling interface identifier has a certificate verification mark, and if so, perform certificate verification based on the certificate information of the update service certificate.

[0063] Among them, the calling interface identifier can be the interface identifier carried by the service request for calling the interface for the service; the certificate verification mark can be a mark representing the certificate verification of the interface, and the certificate verification mark can be obtained after custom annotation through the certificate verification SDK; the certificate verification SDK can also have service extension capabilities. After the service is deployed on a third-party server, the certificate verification SDK can be adjusted through the service extension capabilities provided by the certificate verification SDK to better adapt to the deployed service.

[0064] Specifically, the calling interface identifier carried by the service request in the service access process can be obtained, and the calling interface identifier can be checked for a certificate verification mark. If so, it means that the interface corresponding to the calling interface identifier needs to undergo certificate verification. Certificate verification is performed based on the certificate information of the updated service certificate, and the service request is responded to according to the certificate verification result. That is, if the certificate verification passes, a pass message is returned to the service, and a request response to the service request is made. If the certificate verification fails, a fail message is returned to the service. If not, it means that the interface corresponding to the calling interface identifier does not need to undergo certificate verification. A request response message is returned to the service, so that the service can respond to the service request.

[0065] It should be added that, based on the certificate verification based on the certificate information of the update service certificate; optionally, the certificate information of the update service certificate is obtained after the service reads the update service certificate from the certificate access path and parses the read update service certificate.

[0066] It should also be added that, during the certificate verification process, it can be verified whether the deadline in the certificate information of the update service certificate has expired, whether the number of interface calls corresponding to the service request exceeds the preset number threshold in the certificate information of the update service certificate, and / or whether the deployment environment information of the verification service matches the deployment environment information in the certificate information; the deadline here can be the service deadline, such as the usage time information from xx / xx / xx to xx / xx / xx, that is, from the service start time to the service deadline.

[0067] In specific implementation, in a privatized deployment scenario, service access is performed after the third-party server deploys the service to ensure smooth service access; optionally, service access is performed after the service is deployed based on the deployment package received by the third-party server; in an optional implementation manner provided in this embodiment, the deployment package is obtained in the following manner:

[0068] Obtaining the certificate access path submitted by the third-party server for service deployment;

[0069] Performing configuration processing on the configuration file of the service according to the component access path of the certificate verification component and the submitted certificate access path;

[0070] The certificate verification component, the program code of the service and the configuration file of the service after configuration processing are packaged to obtain the deployment package.

[0071] The component access path of the certificate verification component may be a relative path. In this embodiment, a corresponding certificate verification component may be integrated for each service to ensure high efficiency of certificate verification.

[0072] After the deployment package is obtained, the deployment package and the service certificate of the service can be transmitted to a third-party server, where the service is deployed based on the deployment package and the service certificate of the service is placed in the submitted certificate access path.

[0073] It should be noted that, in the process of first deploying services and generating initial service certificates, if a third-party server needs to deploy multiple services, the configuration item information of each service in the multiple services is obtained, and based on the comparison parameters between the configuration item information of each service, the target configuration item information is determined in the configuration item information, and the certificate is generated based on the target configuration item information to obtain the initial service certificate, and the configuration file of the corresponding service is configured according to the certificate access path of the initial service certificate and the component access path of the certificate verification component, and the certificate verification component, the program code of the corresponding service and the configuration file of the corresponding service after configuration processing are packaged to obtain the deployment package of each service; the comparison parameter can be a comparison result of whether the configuration item information of each service is the same; in the process of determining the target configuration item information in the configuration item information based on the comparison parameters between the configuration item information of each service, and generating the certificate based on the target configuration item information to obtain the initial service certificate, the same configuration item information can be screened out in the configuration item information based on the comparison parameters, and the remaining configuration item information and any one of the same configuration item information are used as the target configuration item information;

[0074] In the process of configuring and processing the configuration files of the corresponding services according to the certificate access path of the initial service certificate and the component access path of the certificate verification component, the configuration files of the corresponding services of the remaining configuration item information can be configured and processed according to the first access path of the service certificate corresponding to the remaining configuration item information; and the configuration files of the corresponding services of the same configuration item information can be configured and processed according to the second access path of the service certificate corresponding to any configuration item information.

[0075] It should be supplemented that each optional implementation method in steps S202 to S208 provided in this embodiment can be executed independently as needed, or can be combined and referenced with each other. At the same time, each specific execution step in each optional implementation method can also be executed independently, and this embodiment does not make specific limitations.

[0076] In summary, one or more service certificate processing methods provided in this embodiment can be applied to a certificate processing platform. The certificate processing platform can be in a private network, and data transmission between the certificate processing platform and the third-party server can be carried out through a dedicated network channel set up in the private network; first, the certificate update information of the service deployed by the third-party server is obtained, and the update keyword is extracted from the certificate update information, and the update keyword is matched with each configuration item in the configuration item set to obtain the configuration item matched with the update keyword; secondly, information collection is performed on the configuration item to obtain the configuration item information of the configuration item, and the configuration item information of the configuration item is verified. After the verification process passes, the configuration item information of the configuration item is written into the configuration item to obtain the writing result, and the writing result is used as the interface call input, and the certificate generation interface is called to generate the certificate to obtain the certificate identifier, and the certificate identifier is used as the interface call input, and the certificate generation interface is called. The certificate is downloaded through the book download interface to obtain the updated service certificate; finally, the updated service certificate is transmitted to the third-party server through a dedicated network channel to achieve environmental isolation between the certificate processing platform and the third-party server, to ensure that the third-party server cannot generate certificates on its own, to improve the effectiveness of certificate generation and to ensure the security of the service certificate on the third-party server. On this basis, the service certificate stored in the certificate access path of the service is updated to the updated service certificate, and after the certificate verification component detects that the certificate synchronization condition is triggered, the certificate information of the updated service certificate is synchronized to the certificate verification component for certificate verification during the service access process. In this way, the certificate verification component is used to perform certificate verification during the service access process. The certificate verification component can realize dynamic update of the service certificate, so that the service can achieve the effect of automatic update of the service certificate without restarting, thereby improving the flexibility of updating the service certificate.

[0077] The following uses the application of a service certificate processing method provided by this embodiment in a license generation scenario as an example to further illustrate the service certificate processing method provided by this embodiment. Figure 3 , a service certificate processing method applied to a license generation scenario specifically includes the following steps.

[0078] Step S302: Acquire license update information of a service deployed by a third-party server.

[0079] Step S304: extracting an update keyword from the license update information, and matching the update keyword with each configuration item in the configuration item set for license configuration to obtain configuration items matched with the update keyword.

[0080] Step S306: collect information on the configuration item to obtain configuration item information of the configuration item.

[0081] Step S308, verifying the configuration item information of the configuration item, and writing the configuration item information of the configuration item into the configuration item to obtain a writing result after the verification process passes.

[0082] Step S310: Using the written result as an interface call input, a license generation interface is called to generate a license and obtain a license identifier.

[0083] Step S312: Using the license identifier as an interface call input, call the license download interface to download the license and obtain the update service license.

[0084] Step S314, the update service license is transmitted to the third-party server to update the service license stored in the service license access path to the update service license, and after detecting that the license synchronization condition is triggered, the license information of the update service license is synchronized to the license verification component for license verification during the service access process.

[0085] It should be noted that any one of steps S302 to S314 or any combination of multiple steps can be replaced by the corresponding technical means provided in the above steps S202 to S208 according to the needs of implementation and deployment, and will not be described one by one here.

[0086] An embodiment of a service certificate processing device provided in this specification is as follows:

[0087] In the above-mentioned embodiment, a service certificate processing method is provided, and correspondingly, a service certificate processing device is also provided, which is described below with reference to the accompanying drawings.

[0088] Reference Figure 4 , which shows a schematic diagram of an embodiment of a service certificate processing device provided in this embodiment.

[0089] Since the device embodiment corresponds to the method embodiment, the description is relatively simple, and the relevant parts can refer to the corresponding description of the method embodiment provided above. The device embodiment described below is only illustrative.

[0090] This embodiment provides a service certificate processing device, including:

[0091] The information acquisition module 402 is configured to acquire certificate update information of a service deployed by a third-party server, and search for a configuration item matching the certificate update information in a configuration item set for certificate configuration;

[0092] The information collection module 404 is configured to collect information on the configuration item to obtain configuration item information of the configuration item, and perform verification processing on the configuration item information of the configuration item;

[0093] The certificate generation module 406 is configured to perform a certificate generation process according to the configuration item information of the configuration item after the verification process passes, and obtain an update service certificate;

[0094] The certificate transmission module 408 is configured to transmit the updated service certificate to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and after detecting that the certificate synchronization condition is triggered, synchronize the certificate information of the updated service certificate to the certificate verification component for certificate verification during the service access process.

[0095] An embodiment of a service certificate processing device provided in this specification is as follows:

[0096] Corresponding to the service certificate processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a service certificate processing device, which is used to execute the service certificate processing method provided above. Figure 5 A schematic diagram of the structure of a service certificate processing device provided in one or more embodiments of this specification.

[0097] This embodiment provides a service certificate processing device, including:

[0098] like Figure 5 As shown, the service certificate processing device may have relatively large differences due to different configurations or performances, and may include one or more processors 501 and memory 502, and the memory 502 may store one or more storage applications or data. Among them, the memory 502 may be a temporary storage or a permanent storage. The application stored in the memory 502 may include one or more modules (not shown in the figure), and each module may include a series of computer executable instructions in the service certificate processing device. Furthermore, the processor 501 may be configured to communicate with the memory 502, and execute a series of computer executable instructions in the memory 502 on the service certificate processing device. The service certificate processing device may also include one or more power supplies 503, one or more wired or wireless network interfaces 504, one or more input / output interfaces 505, one or more keyboards 506, etc.

[0099] In a specific embodiment, the service certificate processing device includes a memory and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the service certificate processing device, and the one or more programs are configured to be executed by one or more processors, including computer executable instructions for performing the following:

[0100] Obtain certificate update information of a service deployed by a third-party server, and query a configuration item set for certificate configuration for a configuration item that matches the certificate update information;

[0101] Collecting information on the configuration item to obtain configuration item information of the configuration item, and verifying the configuration item information of the configuration item;

[0102] After the verification process is passed, a certificate generation process is performed according to the configuration item information of the configuration item to obtain an update service certificate;

[0103] The updated service certificate is transmitted to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and after detecting that the certificate synchronization condition is triggered, the certificate information of the updated service certificate is synchronized to the certificate verification component for certificate verification during the service access process.

[0104] An embodiment of a computer-readable storage medium provided in this specification is as follows:

[0105] Corresponding to the service certificate processing method described above, based on the same technical concept, one or more embodiments of this specification also provide a computer-readable storage medium.

[0106] The computer-readable storage medium provided in this embodiment is used to store computer-executable instructions, and the computer-executable instructions implement the following steps when executed:

[0107] Obtain certificate update information of a service deployed by a third-party server, and query a configuration item set for certificate configuration for a configuration item that matches the certificate update information;

[0108] Collecting information on the configuration item to obtain configuration item information of the configuration item, and verifying the configuration item information of the configuration item;

[0109] After the verification process is passed, a certificate generation process is performed according to the configuration item information of the configuration item to obtain an update service certificate;

[0110] The updated service certificate is transmitted to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and after detecting that the certificate synchronization condition is triggered, the certificate information of the updated service certificate is synchronized to the certificate verification component for certificate verification during the service access process.

[0111] It should be noted that the embodiment of a computer-readable storage medium in this specification and the embodiment of a service certificate processing method in this specification are based on the same inventive concept, so the specific implementation of this embodiment can refer to the implementation of the aforementioned corresponding method, and the repeated parts will not be repeated.

[0112] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referenced to each other. Each embodiment focuses on the differences from other embodiments. For example, the device embodiment, equipment embodiment and computer-readable storage medium embodiment are similar to the method embodiment, so the description is relatively simple. To read the relevant contents in the device embodiment, equipment embodiment and computer-readable storage medium embodiment, please refer to the partial description of the method embodiment.

[0113] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0114] In the 1930s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0115] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0116] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0117] For the convenience of description, the above devices are described in terms of functions and are divided into various units. Of course, when implementing the embodiments of this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0118] It should be understood by those skilled in the art that one or more embodiments of this specification may be provided as a method, system or computer program product. Therefore, one or more embodiments of this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0119] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable service certificate processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable service certificate processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0120] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable service certificate processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0121] These computer program instructions can also be loaded onto a computer or other programmable service certificate processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions executed on the computer or other programmable device for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0122] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0123] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0124] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0125] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of features includes not only those features, but also other features not explicitly listed, or also includes features inherent to such process, method, commodity or device. In the absence of further restrictions, features defined by the phrase "including a ..." do not exclude the existence of other identical features in the process, method, commodity or device including the features.

[0126] One or more embodiments of the present specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0127] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0128] The above description is only an embodiment of this document and is not intended to limit this document. For those skilled in the art, this document may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this document should be included in the scope of the claims of this document.

Claims

1. A service certificate processing method, include: Obtain certificate update information of a service deployed by a third-party server, and query a configuration item set for certificate configuration for a configuration item that matches the certificate update information; Collecting information on the configuration item to obtain configuration item information of the configuration item, and verifying the configuration item information of the configuration item; After the verification process is passed, a certificate generation process is performed according to the configuration item information of the configuration item to obtain an update service certificate; The updated service certificate is transmitted to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and after detecting that the certificate synchronization condition is triggered, the certificate information of the updated service certificate is synchronized to the certificate verification component for certificate verification during the service access process.

2. The service certificate processing method according to claim 1, wherein the configuration item set for performing certificate configuration is searched for a configuration item that matches the certificate update information, include: Extracting update keywords from the certificate update information; The update keyword is matched with each configuration item in the configuration item set to obtain the configuration item matched by the update keyword.

3. The service certificate processing method according to claim 1, wherein the certificate generation processing is performed according to the configuration item information of the configuration item to obtain an updated service certificate, include: Writing the configuration item information of the configuration item into the configuration item to obtain a writing result; Using the written result as an interface call input, calling a certificate generation interface to generate a certificate and obtain a certificate identifier; The certificate identifier is used as an interface calling input, and a certificate downloading interface is called to download the certificate to obtain the update service certificate.

4. The service certificate processing method according to claim 1, wherein the certificate synchronization condition is triggered and is detected and determined in the following manner: Calculating the encoding value of the update service certificate by the certificate verification component to obtain the encoding value of the update service certificate; It is detected whether the code value of the update service certificate is consistent with the preset code value, and if not, it is determined that the certificate synchronization condition is triggered.

5. The service certificate processing method according to claim 1, wherein the service access is performed after the service deployment of the service is performed based on the deployment package received by the third-party server; The deployment package is obtained in the following way: Obtaining the certificate access path submitted by the third-party server for service deployment; Performing configuration processing on the configuration file of the service according to the component access path of the certificate verification component and the submitted certificate access path; The certificate verification component, the program code of the service and the configuration file of the service after configuration processing are packaged to obtain the deployment package.

6. According to the service certificate processing method of claim 1, the third-party server is located in a private network; the service certificate of the service is transmitted to the third-party server through a dedicated network channel set up in the private network.

7. The service certificate processing method according to claim 1, wherein the certificate verification during the service access process is: include: Obtain the calling interface identifier carried in the service request during the service access process; Check whether the calling interface identifier has a certificate verification mark, and if so, perform certificate verification based on the certificate information of the update service certificate.

8. The service certificate processing method according to claim 7, wherein the certificate information of the update service certificate is obtained after the service reads the update service certificate from the certificate access path and parses the read update service certificate.

9. The service certificate processing method according to claim 1, wherein the configuration item comprises at least one of the following: a key configuration item, a deployment environment configuration item, and a service authority configuration item; The information collection for the configuration item is performed to obtain the configuration item information of the configuration item, include: Generate key information for the key configuration item, extract update keywords from the certificate update information based on the service authority configuration item as service authority information of the service authority configuration item, and / or obtain deployment environment information of the deployment environment configuration item from the third-party server.

10. A service certificate processing device, include: An information acquisition module is configured to acquire certificate update information of a service deployed by a third-party server, and query a configuration item matching the certificate update information in a configuration item set for certificate configuration; an information collection module, configured to collect information on the configuration item to obtain configuration item information of the configuration item, and perform verification processing on the configuration item information of the configuration item; A certificate generation module is configured to perform certificate generation processing according to the configuration item information of the configuration item after the verification processing is passed, and obtain an update service certificate; The certificate transmission module is configured to transmit the updated service certificate to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and after detecting that the certificate synchronization condition is triggered, synchronize the certificate information of the updated service certificate to the certificate verification component for certificate verification during the service access process.

11. A service certificate processing device, include: processor; and a memory configured to store computer executable instructions that, when executed, cause the processor to: Obtain certificate update information of a service deployed by a third-party server, and query a configuration item set for certificate configuration for a configuration item that matches the certificate update information; Collecting information on the configuration item to obtain configuration item information of the configuration item, and verifying the configuration item information of the configuration item; After the verification process is passed, a certificate generation process is performed according to the configuration item information of the configuration item to obtain an update service certificate; The updated service certificate is transmitted to the third-party server to update the service certificate stored in the certificate access path of the service to the updated service certificate, and after detecting that the certificate synchronization condition is triggered, the certificate information of the updated service certificate is synchronized to the certificate verification component for certificate verification during the service access process.

12. A computer-readable storage medium for storing computer-executable instructions, wherein the computer-executable instructions implement the steps of the method of claim 1 when executed.