🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #281555

Re: pubring https downloads

#281555
From: elvis-85503
Date: Thu, 31 Mar 2016 06:49
50 lines
3146 bytes
On 2016-03-31, Jack Ryan <mixmaster@remailer.cpunk.us> wrote:
>> $ curl --cacert www.allpingers.net.cert.pem https://www.allpingers.net/echolot/pubring.mix
>> curl: (51) SSL: certificate subject name 'NOYB' does not match target host name 'www.allpingers.net'
>> 
>   I generated new crt and key, so try again.  I am not too sure as to how this works.
>   Let me know if I need to send you something (crt?).

This is curl 7.38.0 on Debian 8.3.

$ openssl s_client -connect www.allpingers.net:443 -showcerts | tee allpingers_try2.pem
Certificate chain
 0 s:/C=US/ST=TX/L=West Texas/O=allpingers.net/OU=echolot/CN=allpingers.net/emailAddress=admin@allpingers.net
   i:/C=US/ST=TX/L=West Texas/O=allpingers.net/OU=echolot/CN=allpingers.net/emailAddress=admin@allpingers.net
...

$ openssl x509 -pubkey -noout -in allpingers_try2.pem > allpingers_pubkey_try2.pem

That's better.  The s_client fetches the cert like a browser would and I can get the public key from it.

 --cacert has this snag
    If  curl  is  built  against  the NSS SSL library, the NSS PEM PKCS#11 module
    (libnsspem.so) needs to be available for this option to work properly.
 and there are people online saying it doesn't work right.

  --capath mysteriously does not seem to have the same problem

view with
  openssl asn1parse < CADIR/www.allpingers.net.cert.pem
download fails
  curltest@notatla:~$ curl --capath CADIR https://www.allpingers.net/echolot/pubring.mix
  curl: (51) SSL: certificate subject name 'allpingers.net' does not match target host name 'www.allpingers.net'
but
  $ curl --capath CADIR https://allpingers.net/echolot/pubring.mix
and it works - so unless you change the cert the URL provided should drop "www.".

good:
  https://anemone.mooo.com/stats/pubring.mix

But austria has:
  https://www.tahina.priv.at/~cm/stats/pubring.mix
  bad signature algo: PKCS #1 MD5 With RSA Encryption
  expires soon: Mon 11 Apr 2016 23:19:42 GMT

Then
  https://www.mixmin.net/echolot/pubring.mix
should drop "www." but may have other problems too as it worked
in Firefox but not curl.  Let's Encrypt certs are also short-term.

I've added to the docs the working certs and a model ~/.curlrc file.
https://github.com/merkinmuffley/mixmaster4096/commit/07e2b45a09af2774898e2f44e71be4663fb0eea5
Technical Details
Message-ID: <slrnnfpi45.e37.elvis-85503@notatla.org.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <slrnnfonq9.7re.elvis-85503@notatla.org.uk> <a0afe34dc1d04315e2fb7de5130e8dba@remailer.cpunk.us>

Show Full Headers
Complete Article Headers
Message-ID: <slrnnfpi45.e37.elvis-85503@notatla.org.uk>
Subject: Re: pubring https downloads
Date: Thu, 31 Mar 2016 06:49:41 GMT
From: elvis-85503@notatla.org.uk
References: <slrnnfonq9.7re.elvis-85503@notatla.org.uk> <a0afe34dc1d04315e2fb7de5130e8dba@remailer.cpunk.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
X-noarchive: yes
X-no-archive: yes
User-Agent: slrn/1.0.1 (Linux)
Lines: 50
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Thu, 31 Mar 2016 06:49:41 UTC
Organization: blocknews - www.blocknews.net
X-Received-Bytes: 2938
X-Received-Body-CRC: 1264375439