Subject: | SSL-related failures on debian/buster |
On a debian/buster (debian testing) system I see SSL-related failures:
...
failed to create SSL context: Failed to load certificate from file (no PEM, DER or PKCS12) error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error at /root/.cpan/build/Net-SIP-0.816-0/blib/lib/Net/SIP/SocketPool.pm line 108.
# Failed test 'UAS created
# '
# at t/02_listen_and_invite.t line 73.
# Failed test 'died'
# at t/02_listen_and_invite.t line 56.
... (more of the same) ...
Originally I saw this failures on a VM, but it also can be reproduced in a docker image (so maybe you can do it, too). Below a Dockerfile:
# docker build -t perl-test . && docker run perl-test
FROM debian:buster
RUN echo "cache invalidation #20181107"
RUN apt-get -y update
RUN apt-get -y install perl-modules-5.26
RUN apt-get -y install make
RUN apt-get -y install libio-socket-ssl-perl
RUN apt-get -y install openssl
CMD cpan -t SULLR/Net-SIP-0.816.tar.gz