AnyEvent::TLS

Marc Lehmann schmorp at schmorp.de
Tue Dec 10 20:40:25 CET 2013


On Wed, Nov 20, 2013 at 12:19:48PM +0100, Maxime Soulé <btik-cpan at scoubidou.com> wrote:
> It seems that the AnyEvent::TLS option:
> 
>    verify_peername => [ 2, 0, 0 ]
> 
> does not work, at least for a certification that only define
> commonName and no subjectAltNames.

Hi, sorry for only looking at this now.

It seems the documentation is wrong, it should be:

   [$cn_wildcards, $alt_wildcards, $check_cn]

So the above code should actually be:

    verify_peername => [ 0, 0, 2 ]

Does that solve the problem for you?

The next release will have documentation fixed, of course.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list