Thread View: alt.privacy.anon-server
5 messages
5 total messages
Started by elvis-85503
Wed, 30 Mar 2016 23:20
pubring https downloads
Author: elvis-85503
Date: Wed, 30 Mar 2016 23:20
Date: Wed, 30 Mar 2016 23:20
23 lines
1963 bytes
1963 bytes
$ 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' $ openssl pkeyutl -certin -in www.allpingers.net.cert.pem Usage: pkeyutl [options] ... curltest@notatla:~$ curl --cacert www.tahina.priv.at.cert.pem https://www.tahina.priv.at/~cm/stats/pubring.mix curl: (60) SSL certificate problem: self signed certificate in certificate chain More details here: http://curl.haxx.se/docs/sslcerts.html I want it to use this self-signed certificate .. that's why I told it --cacert . Also: $ wget --ca-certificate=austria.cert.pem https://www.tahina.priv.at/~cm/stats/pubring.mix --2016-03-31 00:18:31-- https://www.tahina.priv.at/~cm/stats/pubring.mix Resolving www.tahina.priv.at (www.tahina.priv.at)... 213.235.249.34, 2001:858:104:1001::80 Connecting to www.tahina.priv.at (www.tahina.priv.at)|213.235.249.34|:443... connected. ERROR: The certificate of ‘www.tahina.priv.at’ is not trusted. ERROR: The certificate of ‘www.tahina.priv.at’ hasn't got a known issuer. Am I doing something wrong?
Re: pubring https downloads
Author: Anonymous
Date: Thu, 31 Mar 2016 02:00
Date: Thu, 31 Mar 2016 02:00
27 lines
2015 bytes
2015 bytes
> $ 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' > > $ openssl pkeyutl -certin -in www.allpingers.net.cert.pem > ... > > > curltest@notatla:~$ curl --cacert www.tahina.priv.at.cert.pem https://www.tahina.priv.at/~cm/stats/pubring.mix > curl: (60) SSL certificate problem: self signed certificate in certificate chain > More details here: http://curl.haxx.se/docs/sslcerts.html > > I want it to use this self-signed certificate .. that's why I told it --cacert . > > Also: > $ wget --ca-certificate=austria.cert.pem https://www.tahina.priv.at/~cm/stats/pubring.mix > --2016-03-31 00:18:31-- https://www.tahina.priv.at/~cm/stats/pubring.mix > Resolving www.tahina.priv.at (www.tahina.priv.at)... 213.235.249.34, 2001:858:104:1001::80 > Connecting to www.tahina.priv.at (www.tahina.priv.at)|213.235.249.34|:443... connected. > ERROR: The certificate of ‘www.tahina.priv.at’ is not trusted. > ERROR: The certificate of ‘www.tahina.priv.at’ hasn't got a known issuer. > > Am I doing something wrong? I don't know if you are doing something wrong, but I am pretty sure that I am not doing something right. Let me look into it. admin@allpingers.net
Re: pubring https downloads
Author: Jack Ryan
Date: Thu, 31 Mar 2016 03:12
Date: Thu, 31 Mar 2016 03:12
7 lines
1069 bytes
1069 bytes
> $ 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' > > $ openssl pkeyutl -certin -in www.allpingers.net.cert.pem > ... 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?).
Re: pubring https downloads
Author: elvis-85503
Date: Thu, 31 Mar 2016 06:49
Date: Thu, 31 Mar 2016 06:49
50 lines
3146 bytes
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
Re: pubring https downloads
Author: Anonymous
Date: Thu, 31 Mar 2016 12:45
Date: Thu, 31 Mar 2016 12:45
16 lines
1602 bytes
1602 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 didn't put that rude 'None Of Your Business' subject name in there. That must be from openssl. The problem with the cert was that I didn't know that the 'common name' field for the certificate had to match the host name. >>> >> 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?). I am glad you caught this. A definite learning experience. -clip- allpingers.net
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads