pcp
[Top] [All Lists]

Re: [pcp] Secure sockets - failure with manual client certificate instal

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] Secure sockets - failure with manual client certificate installation issue
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed, 17 Apr 2013 05:58:05 +1000
Cc: PCP Mailing List <pcp@xxxxxxxxxxx>
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <1458043309.1068979.1366105876160.JavaMail.root@xxxxxxxxxx>
References: <516D0221.1080107@xxxxxxxxxxxxxxxx> <1458043309.1068979.1366105876160.JavaMail.root@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5
On 16/04/13 19:51, Nathan Scott wrote:
...
The __pmGetPDU read of 1 byte is totally broken.


Yes, that seems to be the start of the badness.  Not clear why
its getting an invalid creds pdu back from pmcd though... this
one has me totally stumped so far (its different behaviour to
what I'm observing on nss-3.13.6).

I don't think this is anything coming back from pmcd.

The client is doing an additional sendto() of 87 bytes down the socket to pmcd that does NOT go through any of our PDU routines on the client side, and on pmcd this gets interpreted as a bad PDU (len == 1) and pmcd shuts down the socket, which causes the next PDU send from the client to return PM_ERR_IPC.

I've verified this with strace for the client with and without
PCP_SECURE_SOCKETS=enforce.

So, it appears as though the client is trying to establish a secure connection and sending some sort of credential/certificate from within the non-PCP code, but pmcd is not decoding the initial credentials correctly and not expecting this data from the client.

<Prev in Thread] Current Thread [Next in Thread>