pkcs connections and rsa-sha1 signatures

I realise that you've accepted some changes that will conflict with the code I've written here, but I thought I'd send you a pull request anyway to make you aware of some of the things we've had to implement to use this library in our production environment.

If you can merge it in, then brilliant.

Thanks,

Ed