3.2.5.4.3 PUBLIC_KEY Message

The syntax of this message is specified in section 2.2.2.3.

The RunspacePool MUST be in an Opened state (section 3.2.1.2.2) while processing this message.

When this message is received, the server extracts the public key from the message and stores it in the RunspacePool's public key (section 3.2.1.2.8).

The server generates a session key (section 3.2.1.2.7), if one is not already generated, and sends the session key as part of an ENCRYPTED_SESSION_KEY message (section 3.2.5.4.4) to the client using a wxf:ReceiveResponse message (section 3.2.5.3.8) targeted to the RunspacePool.