Fwd: RE: SSL validation failures

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Fwd: RE: SSL validation failures

cdavidshaffer


-------- Original Message --------
Subject: RE: [vwnc] SSL validation failures
Date: Fri, 8 Jun 2012 12:34:14 -0700
From: Boris Popov, DeepCove Labs [hidden email]
To: C. David Shaffer [hidden email]


Ah, 7.7.1 has a nasty habit of not supporting wildcard certificates and
no way of passing a validation block to achieve it, something that is
addressed in 7.8, so try the below in 7.7.1 instead,

Parcel loadParcelByName: 'HTTPS'.
bundle := CertificateFileReader new readFrom: 'trusted-certs.crt'
asFilename contentsOfEntireFile readStream.
X509Registry trustedCertificates addAll: bundle.

Net.SSLConnection compile: 'validationBlock
	^validationBlock isNil
		ifTrue: [[:dnd | (dnd at: ''CN'') match: hostName]]
		ifFalse: [validationBlock]'.

HttpClient get: 'https://api.dropbox.com'.

-Boris


-----Original Message-----
From: C. David Shaffer [[hidden email]] 
Sent: Friday, June 08, 2012 3:27 PM
To: Boris Popov, DeepCove Labs
Subject: Re: [vwnc] SSL validation failures

On 06/08/12 14:55, Boris Popov, DeepCove Labs wrote:
> David,
>
> In clean 7.8 visual.im things seem to work as expected, make sure you 
> hadn't changed #defaultValidationBlockFactory (see its chain) somehow?
>

Thanks, that makes me feel better.  I don't see any implementers of
defaultValidationBlockFactory.  I tried a fresh 7.7.1 image and your
code block failed with the same walkback.  Maybe this was something
fixed in VW7.8?

David


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc