# Patent

## Title
System and method for interapplication communications

## Abstract

A first executable program on a computer system is enabled to exchange communications with a second executable program on the computer system by determining that the first executable program requests to exchange information with the second executable program, using the second executable program to challenge the first executable program for a digital certificate, and using the second executable program to exchange information with the first executable program when the digital certificate is verified.

## Background
TECHNICAL FIELD
This document relates to executable programs.
BACKGROUND
A user may rely on multiple programs in accessing the Internet. For example, a user may access an electronic mail application to send electronic mail, a web browser to access Internet content, and an Instant Messaging application to exchange real-time communications.



DESCRIPTION OF DRAWINGS
FIG. 1 is a block diagram of a computer system with two executable programs that exchange digital certificates to certify interapplication communications.
FIG. 2 is an exemplary graphical user interface showing two executable programs that may exchange digital certificates to certify interapplication communications.
FIG. 3 is a flow chart of an exemplary process by which two executable programs may exchange digital certificates to certify interapplication communications.
FIG. 4 is a flow chart of an exemplary process by which two executable programs may exchange digital certificates using a request.



SUMMARY
In one general sense, a first executable program on a computer system is enabled to exchange communications with a second executable program on the computer system by determining that the first executable program requests to exchange information with the second executable program. The second executable program is used to challenge the first executable program for a digital certificate and exchange information with the first executable program when the digital certificate is verified.
Implementations may include one or more of the following features. For example, using the second executable program to exchange communications may include exchanging the communications in response to a user independently launching both the first and second executable programs in separate launch operations. Using the second executable programs to exchange communications may include using a subprogram within the first executable program to exchange information with the second executable program or a second executable program subprogram.
Determining that the first executable programs requests to exchange information may include using an Interprocess Communications Call (IPC) call in the first executable program that references the second executable program or a subprogram within the second executable program. Using the IPC call may include using one or more parameters in the IPC call to exchange a digital certificate.
In another general sense, communications between a first executable program and a second executable program may be certified by initiating a connection between the first executable program and the second executable program, identifying the first executable program to the second executable program by sending a digital certificate for the first executable program to the second executable program, using the second executable program to verify that the digital certificate is valid, using the second executable program to generate and transmit a challenge value to the first executable program, using the first executable program to sign the challenge value, sing the second executable program to verify the challenge value, and when the second executable program verifies the challenge value, establishing the connection so that the second executable program may respond to requests received through the connection.
Implementations may include the following and other features. For example, sending the digital certificate for the first executable program may include transmitting that digital certificate that relates to a name and a copyright notice.
In another general sense, communications between a first executable program and a second executable program may be certified by using a first executable program to generate a request to a second executable program, using the first executable program to operate on data associated with the request, using the first executable program to transmit the signed data to the second executable program, using the second executable program to receive the signed data, using the second executable program to verify the signed data, using the second executable program access a key for the first executable program, using the key to verify the signed data, and when the request is verified, using the second executable program to support the request.
Implementations may include the following and other features. For example, using the first executable program to operate on data associated with the request may include using the first executable program to sign and encrypt a message digest of a license agreement provided by the second executable program.
DETAILED DESCRIPTION
Application developers may invest a great deal of energy, time, and resources in developing applications. An application developer may elect to retain some degree of control over how the applications may be used to preclude others from improperly using the application.
For example, an application developer may develop a messaging executable program (e.g., electronic mail messaging, instant messaging, and/or a directory services with an address book). The application developer may attempt to preclude other application providers from interfacing with the messaging executable program by using digital certificates to certify interoperable communications. For instance, an unauthorized developer may develop an instant messaging program that interfaces with an address book program in violation of a licensing agreement for the address book program.
To reduce the likelihood of an executable program being used in an unauthorized manner, the application developer may use digital certificates in interapplication, intradevice communications. When a first executable program running on a first computer system attempts to exchange information with a second executable program running on the first computer system, the second executable program may challenge the first executable program for a digital certificate. Unless a valid digital certificate is exchanged, the first computer system may preclude the first executable program from exchanging information with the second executable program.
The digital certificate may be copyrighted so that in addition to violating a licensing agreement, the digital certificate may be violating the intellectual property rights of the copyright owner.
The digital certificates may be enrolled in a digital certificate management system. In one implementation, use of the digital certificates is reported to the digital certificate management program (residing on the same or different computer system than the first and second executable programs). A report may be generated indicating which executable programs are using or have used a digital certificate. More particularly, the report may indicate the identity of which certificate has been used by which executable program. In another implementation, the digital certificates are periodically changed to reduce the likelihood of the digital certificates being wrongfully appropriated.
FIG. 1 is a block diagram of a computer system 100 with two executable programs (not shown) that may exchange digital certificates to certify interapplication communications.
The computer system 100 typically includes a computer system running multiple executable programs and may enable a user to exchange information over a computer network. The computer system 100 may include one or more devices capable of accessing content residing on a host. The computer system 100 may include a controller (not shown) that processes instructions received from or generated by a software application, a program, a piece of code, a device, a computer, a computer system, or a combination thereof, which independently or collectively direct operations of the computer system 100. The instructions may be embodied permanently or temporarily in any type of machine, component, equipment, storage medium, or propagated signal that is capable of being delivered to the computer system 100 or that may reside with the controller at computer system 100. Computer system 100 may include a general-purpose computer (e.g., a personal computer (PC)) capable of responding to and executing instructions in a defined manner, a workstation, a notebook computer, a PDA (“Personal Digital Assistant”), a wireless phone, a component, other equipment, or some combination of these items that is capable of responding to and executing instructions.
In one implementation, the computer system 100 includes one or more information retrieval software applications (e.g., a browser, a mail executable program, an instant messaging computer system, an Internet service provider computer system, or an AOL TV or other integrated computer system) capable of receiving one or more data units. The information retrieval applications may run on a general-purpose operating system and a hardware platform that includes a general-purpose processor and specialized hardware for graphics, communications and/or other capabilities. In another implementation, computer system 100 may include a wireless telephone running a micro-browser application on a reduced operating system with general purpose and specialized hardware capable of operating in mobile environments.
The computer system 100 may include one or more media applications. For example, the computer system 100 may include an executable program that enables the computer system 100 to receive and display an audio or video data stream. The media applications may include controls that enable a user to configure the user's media environment. For example, if the media application is receiving an Internet radio station, the media application may include controls that enable the user to select an Internet radio station, for example, through the use of “preset” icons indicating the station genre (e.g., country) or a favorite.
The computer system 100 may enable interapplication communications using digital certificates. For example, the computer system 100 may include an address book executable program that interfaces with an electronic mail messaging executable program and/or instant messaging executable program by presenting digital certificates.
The executable programs on the computer system 100 may include a security code segment configured to perform one or more cryptographic operations. The security code segment may be configured to perform symmetric and asymmetric cryptographic operations. In one implementation, a first executable program uses a security code segment in conjunction with a library of keys (e.g., a public key) in a communications session with another other executable program.
The security code segment may be configured to determine a digital signature (e.g., use a key to encrypt a block of data and perform a cryptographic hash on the encrypted block of data), generate a digital certificate, and/or verify a digital certificate. The security code segment may establish encrypted communications with another executable program.
In one implementation, the security code segment is embedded within the first executable program. In another implementation, the security code segment is configured as a separate executable program that is referenced or invoked to perform a cryptographic operation by a user executable program such as an electronic mail messaging executable program.
An executable program within the computer system 100 may be configured to exchange or verify a digital certificate with another executable program. For example, a digital certificate may be presented so that a first executable program may use interprocess communication (IPC) to exchange data with a second executable program. The digital certificate may be embedded within a first executable program, generated dynamically, or invoked by accessing a third party code segment. In one implementation, a digital certificate is accessed through a certificate authority (CA) administered by an operating system.
The security code segment may update key and/or certificate information. For example, the computer system may periodically update a digital certificate from a network-based host configured to provide certificate updates.
The security code segment may participate in a reporting system indicating which executable programs are using which keys and/or certificate. For example, the computer 100 may track which executable programs are using which keys and/or certificates. The computer then may report certificate usage by the executable programs to a network-based reporting authority. The reporting authority then may analyze the certificate used to identify which executable programs are using which digital certificates. The digital certificates may be copyrighted, so analyzing the certificate usage may assist in identifying copyright violators.
The location for the digital certificates in memory may be monitored so that the computer may identify one or more programs attempting to access the digital certificate, which may include a malicious user attempting to circumvent a digital certificate system. The monitoring code segment may identify which executable programs are accessing the digital certificate in memory, and report the digital certificate usage.
The digital certificates may be protected by an access control or ‘armored’ operating system or controller regulating how different executable programs may access other executable programs. For example, an armored controller may regulate how digital certificates within a suite of programs may be used, or which executable programs may exchange content with other executable programs.
FIG. 2 is an exemplary graphical user interface (GUI) 200 showing two executable programs that may exchange digital certificates to certify interapplication communications. For convenience, particular components and messaging formats described earlier are referenced as performing the process. However, similar methodologies may be applied in other implementations where different components are used to define the structure of the system, or where the functionality is distributed differently among the components shown.
GUI 200 shows a first executable program 210 and a second executable program 220 that appear in a task bar for a WindowsTM desktop. In the GUI 200 shown, the first executable program 210 includes an electronic mail messaging executable program, and the second executable program 220 is an address book executable program 220. GUI 200 also shows a task manager that indicates a first application task 230 and a second application task 240, where the application task relates to the first and second executable programs that are running. Note that while portions of the GUI 200 relate to a Windows operating system, the systems, techniques and operations described in this document may be used on other devices (e.g., a wireless phone, a Personal Digital Assistant, a server, and/or a set top system) and in other environments (e.g., Linux, OS X, Apple's operating system (e.g., OS X)).
Generally, the first executable program 210 and the second executable program 220 relate to two different executable programs that a user may invoke or run. For example, the first and second executable programs may end in a .exe extension indicating that the program may operate as an executable code segment. Note that while the first executable program 210 and the second executable program 220 may exchange information using digital certificates, each of the executable programs is capable of running independently without requiring the other executable program to execute, or be invoked.
In one implementation, the first and second executable programs are each invoked independently. For instance, a user may select a short cut residing in a desktop that launches the executable program. Alternatively, a user may select a graphical representation appearing in a menu such as the “Start” menu.
In a second implementation, the first executable program 210 may invoke a second executable program 220, where a user has not expressly invoked the second executable program. For example, a user may elect to launch an electronic mail messaging executable program (e.g., by pressing on a shortcut that launches a program named mail.exe). The electronic mail messaging executable program then may invoke an address book executable program (e.g., by generating a command that launches address_book.exe). The first and second executable programs then may exchange information using digital certificates to certify the exchange of information. For instance, a mail program may retrieve address information from an address book program. Alternatively, an electronic mail message may be generated from an address book program by invoking the electronic mail messaging program from the address book.
In one implementation, the first and second executable programs are executable programs launched or invoked by a user. For instance, the first and second executable programs may include programs operating in a WindowsTM environment with .EXE extensions. The executable programs may be represented, accessed, or launched through a shortcut appearing on a desktop, or an icon appearing in a START menu. The first and second executable programs may be launched when a user selects a control to launch the executable program. In another implementation, the executable programs may be launched by a third executable program or a batch file that launches the first and/or second executable program(s) so that the third executable program may exchange information with the first and/or second executable program.
FIG. 3 is a flow chart 300 of an exemplary process by which two executable programs may exchange digital certificates to certify interapplication communications. For convenience, particular components and messaging formats described earlier are referenced as performing the process. However, similar methodologies may be applied in other implementations where different components are used to define the structure of the system, or where the functionality is distributed differently among the components shown.
The first executable program 301 initiates a connection between the first executable program 301 and the second executable program 302 (310), which in turn responds to the first initiating program (320). For example, a user accessing an electronic mail messaging program may access an address book executable program to insert recipients into the address portion of an electronic mail message.
The first executable program 301 identifies the first executable program 301 to the second executable program 302 by sending a digital certificate for the first executable program to the second executable program (330). Sending a digital certificate may include sending a name, process identifier, copyright notice, or other information that is presented and used to certify interapplication communications. The information in the certificate then may be encrypted, with a value determined by a cryptographic hash determined. The second executable program 302 verifies that the digital certificate is valid (340), and generates a challenge value to the first executable program 301 (350).
The first executable program 301 signs the challenge value (360), which the second executable program 302 then verifies (370). When the second executable program verifies the challenge value, the first executable program establishes a connection so that the second executable program may respond to requests received through the connection (380).
FIG. 4 is a flow chart 400 of an exemplary process by which two executable programs may exchange digital certificates on a per request basis. For convenience, particular components and messaging formats described earlier are referenced as performing the process. However, similar methodologies may be applied in other implementations where different components are used to define the structure of the system, or where the functionality is distributed differently among the components shown.
The first executable program 401 generates a request for services from a second executable program 402 and transmits the request to the second executable program 402 (410). For example, the first executable program 401 may use an IPC (Inter Process Communications) Call to retrieve information from the second executable program 402. In one implementation, the first executable program 401 represents a messaging application attempting to call an address book application. The second executable program 402 receives the request and responds with a challenge to operate on data (420). For example, the second executable program 402 may instruct the first executable program to perform identity verification operations on the data. In one configuration, the second executable program 402 instructs the first executable program to perform cryptographic operations on a license agreement with copyright provisions. Exemplary cryptographic operations may include instructing the first executable program to sign a message digest of the license agreement with a private key for the first executable program.
The first executable program 401 responds to the challenge by performing the requested operations on the data to generate a challenge response (430). The first executable program 401 transmits the challenge response to the second executable program (440). For example, the first executable program may transmit an encrypted message digest of a license agreement to the second executable program 402 to prevent (or reduce the likelihood of) the first executable program (or an author of the first executable program 401) from repudiating knowledge of a licensing agreement.
The second executable program 402 receives the challenge response (450). The second executable program 402 then retrieves information from a certificate authority related to the first executable program (460). In one implementation, referencing the information includes accessing a certificate authority that resides on a certificate server external to the computer system hosting the first executable program 401 and the second executable program 402. In another implementation, referencing the information includes accessing a certificate authority within the computer system hosting the first executable program 401 and the second executable program 402. For example, the computer system may operate a certificate authority for executable programs on the computer system to access. In yet another implementation, referencing the information includes accessing a certificate authority within the first executable program 401.
The second executable program 402 verifies the challenge response by comparing the challenge response with the information retrieved from the certificate authority (470). In one implementation, the second executable program 402 retrieves a certificate for the first executable program from the certificate authority, and extracts a public key from the digital certificate for the first executable program. The second executable program 402 then accesses the message digest of a license agreement. The message digest then is compared to the message digest provided by the first executable program 401 as a result of challenge response, for example, by using the public key provided by the certificate authority to decrypt the challenge response. If the message digests are identical, then confidence in the identity of the first executable program can be established. As a result, when the challenge response is verified, the request is supported (480). For example, an address book application may enable a message application to retrieve address information.
Other implementations are within the scope of the following claims. For example, although the operations described a first executable program exchanging a digital certificate with a second executable program, a subprogram within the first executable program may exchange a digital certificate with the second executable program or a subprogram within the second executable program.
While the two executable programs are illustrated as running in a desktop environment, running a first second executable program on a computer system may include initially only running a first executable program. The first executable program then may determine that information should be exchanged with a second executable program. The computer system then may launch the second executable program so that the first executable program then may exchange information with the second executable program. The second executable program may be configured to completely ‘activate’ or launch in response to receiving a launch instruction from the first executable program so that the second executable program may receive an IPC call and support the IPC call when the appropriate digital certificate is presented.
Alternatively, the first executable program may launch a compact instance or gateway portion of the second executable program where the compact instance/gateway portion of the second executable program challenges the first executable program to present the appropriate certificate. The compact instance/gateway portion may feature a reduced footprint (e.g., consume less memory and/or processing resources than the full second executable program) to reduce the likelihood that the second executable program is not be improperly exploited. Although many of the operations were described with respect to a certificate authority, other implementations may include executable programs with pre-populated keys that do not require the use of a certificate authority.

## Claims

1. A computer-implemented method, comprising:
determining a validity of a digital certificate associated with a first executable program;
obtaining a portion of a license agreement associated with a second executable program;
when the digital certificate is valid, generating an instruction to provide a challenge to the first executable program, the challenge instructing the first executable program to encrypt the obtained portion of the license agreement provided by the second executable program;
receiving a response to the challenge from the first executable program, the response comprising the encrypted portion of the license agreement and a digital signature applied to the encrypted portion of the license agreement;
decrypting, using at least one processor, the received response using a public key associated with the digital certificate to generate a decrypted portion of the license agreement; and
determining, using the at least one processor, whether that the obtained portion of the license agreement corresponds to the decrypted portion of the license agreement; and
when the decrypted portion of the license agreement corresponds to the obtained portion of the license agreement, enabling communications with the first executable program in a manner consistent with the license agreement, and enabling the first executable program to access one or more functions of the second executable program in accordance with the license agreement.

2. The method of claim 1, wherein the digital signature comprises an acknowledgement of the license agreement by the first executable program.

3. The method of claim 1, further comprising:
using the digital signature to show knowledge of the license agreement.

4. The method of claim 1, further comprising:
using the digital signature to show acceptance of the license agreement.

5. The method of claim 1, wherein the portion of the license agreement comprises a message digest of the license agreement.

6. The method of claim 1, wherein the digital certificate comprises the public key.

7. The method of claim 1, wherein decrypting the response to the challenge further comprises decrypting the digital signature using the public key.

8. The method of claim 1, wherein the first and second executable programs are independently launched in separate launch operations.

9. The method of claim 1, wherein the digital certificate is enrolled in a digital certificate management system.

10. The method of claim 9, further comprising reporting use of the digital certificate by the first executable program to the digital certificate management system.

11. The method of claim 8, wherein the digital certificate management system is administered by an operating system in which a location for digital certificates in memory is monitored to identify programs that attempt to access certificates.

12. A computer system, comprising:
a processing system comprising one or more processors; and
a memory comprising one or more tangible computer-readable media,
wherein the memory includes instructions that, when executed by the processing system, cause the processing system to perform operations comprising:
determining a validity of a digital certificate associated with a first executable program;
obtaining a portion of a license agreement associated with a second executable program;
when the digital certificate is valid, generating an instruction to provide a challenge to the first executable program, the challenge instructing the first executable program to encrypt the obtained portion of the license agreement provided by the second executable program;
receiving a response to the challenge from the first executable program, the response comprising the encrypted portion of the license agreement and a digital signature applied to the encrypted portion of the license agreement;
decrypting the received response using a public key associated with the digital certificate to generate a decrypted portion of the license agreement; and
determining whether the obtained portion of the license agreement corresponds to the decrypted portion of the license agreement; and

when the decrypted portion of the license agreement corresponds to the obtained portion of the license agreement, enabling communications with the first executable program in a manner consistent with the license agreement, and enabling the first executable program to access one or more functions of the second executable program in accordance with the license agreement.

13. The system of claim 12, wherein the portion of the license agreement comprises a message digest of the license agreement.

14. The system of claim 12, wherein the digital certificate comprises the public key.

15. The method system of claim 14, wherein decrypting the response to the challenge further comprises decrypting the digital signature using the public key.

16. The system of claim 12, wherein the first and second executable programs are independently launched in separate launch operations.

17. The system of claim 12, wherein the digital certificate is enrolled in a digital certificate management system.

18. The system of claim 17, further comprising reporting use of the digital certificate by the first executable program to the digital certificate management system.

19. The system of claim 17, wherein the digital certificate management system is administered by an operating system in which a location for digital certificates in memory is monitored to identify programs that attempt to access certificates.

20. A tangible, non-transitory computer-readable medium storing instructions that, when executed by at least one processor, cause the at least one processor to perform a method, comprising:
determining a validity of a digital certificate associated with a first executable program;
obtaining a portion of a license agreement associated with a second executable program;
when the digital certificate is valid, generating an instruction to provide a challenge to the first executable program, the challenge instructing the first executable program to encrypt the obtained portion of the license agreement provided by the second executable program;
receiving a response to the challenge from the first executable program, the response comprising the encrypted portion of the license agreement and a digital signature applied to the encrypted portion of the license agreement;
decrypting the received response using a public key associated with the digital certificate to generate a decrypted portion of the license agreement; and
determining whether the obtained portion of the license agreement corresponds to the decrypted portion of the license agreement; and
when the obtained portion of the license agreement corresponds to the decrypted portion of the license agreement, enabling communications with the first executable program in a manner consistent with the license agreement, and enabling the first executable program to access one or more functions of the second executable program in accordance with the license agreement.

21. The method of claim 1, further comprising:
receiving a request to establish the communications with the first application program.

22. The system of claim 12, wherein the operations further comprise:
receiving a request to establish the communications with the first application program.

23. The system of claim 22, wherein the digital signature comprises an acknowledgement of the license agreement by the first executable program.

24. The system of claim 22, further comprising:
using the digital signature to show knowledge of the license agreement.

25. The system of claim 22, further comprising:
using the digital signature to show acceptance of the license agreement.