develooper Front page | perl.perl5.porters | Postings from December 2021

Re: OpenSSL alternative support WAS Re: Pre-RFC: support httpsout-of-the-box

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
December 3, 2021 18:39
Subject:
Re: OpenSSL alternative support WAS Re: Pre-RFC: support httpsout-of-the-box
Message ID:
20211203183942.507ae4a1@shy.leonerd.org.uk
I'm going to reïterate my question from earlier as I don't see anyone
having tackled it:

> I feel surely this isn't a problem that Perl uniquely is trying to
> solve. It feels like this should be easily solved by "doing what the
> other languages do" - i.e. could someone more familiar with some of
> the others report back on how e.g. Python or Ruby handle this kind of
> thing? If it works for them then surely we can do the same?

For example, for Python you can begin here:

  https://github.com/python/cpython/blob/main/Lib/ssl.py

which soon leads to:

  https://github.com/python/cpython/tree/main/Modules/_ssl.c

and suggests they're just using openssl:

  /* Include OpenSSL header files */
  #include "openssl/rsa.h"
  ...

There's also the "installation instructions" which point out that
libssl-dev is an (optional) build-time dependency:

  https://devguide.python.org/setup/#install-dependencies

I suspect if that works for them, we can probably do similar.


Ruby, on the other hand, appears after a 30second search not to come
with SSL baked into the core, but can be added with an add-on module
("gem") in similar style to our current Perl attempt;

  https://github.com/ruby/openssl


But theabove is all based on a mere 5 minutes of research from me - I'm
sure there'll be folks around who know more about the situation so can
chime in with extra detail. ;)

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About