News for hackers. Stuff that matters.
Re:Encrypt a file so that only a SSL site's private key can ... by Confusion on Sunday April 03, 2011 @05:04AM (#2402226)
A script without context or explanation of what it is useful for. Why did you submit this?
Re:Encrypt a file so that only a SSL site's private key can ... by patio11 on Sunday April 03, 2011 @05:41AM (#2402274)
That's a neat hack. I once had call to send banking details to a client. It was very annoying - eventually settled on encrypting an emailed zip file and sending password out of band.

This, on the other hand, turns any web developer's SSL cert into their PGP key without their advance cooperation. (They don't have to have one, understand why they need one, or create one and publish the public key. They just have to have an https site, like all my clients already do.) Limited utility, since decrypting is impossible for regular people and larger corps would have that private key locked down like crazy, but a very neat hack. I could actually see myself using it, too, for secure geek-2-geek transmissions.

Re:Encrypt a file so that only a SSL site's private key can ... by k00k on Sunday April 03, 2011 @08:01AM (#2402498)
Friends of mine have created http://lockify.com/ exactly for the purpose you outline with the banking details.
Re:Encrypt a file so that only a SSL site's private key can ... by inaequitas on Sunday April 03, 2011 @06:02AM (#2402302)
Zed Shaw wrote this (https://twitter.com/#!/zedshaw/status/54434747652390912) and then him and Dan Kaminski had a good talk on Twitter about it.
Re:Encrypt a file so that only a SSL site's private key can ... by zwp on Sunday April 03, 2011 @07:23AM (#2402439)
Great I think that got most of it (validation!) but revocation checking worries me and a skim of the OpenSSL (0.9.8o) sources doesn't leave me with the warm'n'fuzzies.

s_client.c calls SSL_CTX_set_verify() (the default verifier). Results from that can be obtained from SSL_get_verify_result() and are documented in verify(1).

All of the CRL/revocation-related return codes there are marked "unused". There is no mention of OCSP.

I found found a "crl_check/crl_check_all" option for verify(1). Command line help mentions an "ocsphelper". OpenSSL does have a separate OCSP client. But I don't think any of this machinery is activated by default.

Re:Encrypt a file so that only a SSL site's private key can ... by bigiain on Sunday April 03, 2011 @06:44AM (#2402364)
I thought it was a fabulous (tho limited utility) hack around the key distribution problem.