![]() |
N900 ssl connection problem qt and wget no match hostname
I am writing a qt application which should download a file over ssl connection. Sadly it is not working with the following error message*. The protocol is fixed to TLSv1. I am using cssu-testing with openssl 0.9.8zh-1+maemo1+0m5+0cssu0 and maemosec. version 0.2.10.
* Quote:
Quote:
Code:
wget https://navigator.er.usgs.gov/tiles/aerial_Imagery.cgi/ Code:
wget https://basemap.nationalmap.gov/ArcGIS/rest/services/US Maybe it has something to do with redirection. I have also installed needed certificates with the certificate manager and created /etc/osso-af-init/ssl.defs file which get loaded during boot time. I guess this was not needed. When I check with: Code:
openssl s_client -connect navigator.er.usgs.gov:443 -tls1 -CApath /etc/certs/common-ca Code:
openssl s_client -connect basemap.nationalmap.gov:443 -tls1 -CApath /etc/certs/common-ca Maybe someone has a clue about this or has maybe some hint. Could it be possible to make a certificate with a different hostname? Please help me I am happy to hear any suggestions. |
Re: N900 ssl connection problem qt and wget no match hostname
Maybe it is silly suggestion as I'm not an expert, but what is the result when you add "--no-check-certificate" flag to the wget command...?
|
Re: N900 ssl connection problem qt and wget no match hostname
Quote:
|
Re: N900 ssl connection problem qt and wget no match hostname
Quote:
But: I typed that command on my chrooted kali linux and the error was the following: "Resolving basemap.nationalmap.gov (basemap.nationalmap.gov)... failed: Name or service not known. wget: unable to resolve host address `basemap.nationalmap.gov'" so it did not produce the error from above... On the internet I found that it could be even wget that causing the issue. On Maemo5 I have 1.10, on kali 1.13. |
Re: N900 ssl connection problem qt and wget no match hostname
Quote:
Code:
wget https://navigator.er.usgs.gov/tiles/aerial_Imagery.cgi/ As far as I know to many things (also closed ones) depending on the old openssl, so we need to wait for maemo leste. So atm the only way is to ignore the ssl error which is unsecure due to possible man in the middle attack. Openssl api changes from 0.9.8 to 1.x.x. There is another map server from which it is impossible to download because I guess the server does not support all TSLv1 crypting methods. With Ubuntu it works. Code:
wget https://4umaps.com/12/2201/1344.png --secure-protocol=TLSv1 |
Re: N900 ssl connection problem qt and wget no match hostname
I did compile OpenSSL 1.0.1g for n900 some time ago.
I used without issues, so you could try it out http://talk.maemo.org/showthread.php?t=91787 |
Re: N900 ssl connection problem qt and wget no match hostname
Quote:
Hmm but maybe I am wrong I found something similar to your package: https://github.com/agamez/maemo-openssl-1.0.2 I will try both. But another thing, for qt4-x11 there is only a build dependencie with libssl-dev but no dependencie to libssl for installing. So I could rebuild qt4-x11 with other openssl and don't need to replace the maemo one?:confused: |
Re: N900 ssl connection problem qt and wget no match hostname
Oh I missed this interesting tmo thread about openssl 1.0.2.
|
Re: N900 ssl connection problem qt and wget no match hostname
Quote:
I am sure you could make valuable contributions. |
Re: N900 ssl connection problem qt and wget no match hostname
Quote:
I hope I will be able to make some contributions. Regarding my ssl problem:
@nieldk do you remember which configure parameters did you use for openssl 1.0.1. |
Re: N900 ssl connection problem qt and wget no match hostname
As I recall it was pretty much straight forward.
But had to patch perlpath diff -up openssl-1.0.1c/util/perlpath.pl.perlfind openssl-1.0.1c/util/perlpath.pl --- openssl-1.0.1c/util/perlpath.pl.perlfind 2012-07-11 22:57:33.000000000 +0200 +++ openssl-1.0.1c/util/perlpath.pl 2012-07-12 00:31:12.102156275 +0200 @@ -4,10 +4,10 @@ # line in all scripts that rely on perl. # -require "find.pl"; +use File::Find; $#ARGV == 0 || print STDERR "usage: perlpath newpath (eg /usr/bin)\n"; -&find("."); +find(\&wanted, "."); sub wanted { |
Re: N900 ssl connection problem qt and wget no match hostname
Compiling a newer wget 1.16 is fixing the problem for wget.
For qt using the new version in cssu-devel with sni patch from jonwil is also fixing the problem. |
Re: N900 ssl connection problem qt and wget no match hostname
Here my wget version and libssl1.0.2 for use with older openssl versions < 1.1.0h
libssl1.0.2_1.0.2l-2maemo1_armel.deb wget_1.16-1maemo1_armel.deb It could be that you need to set environment variables for the ca certificates. Look here. When you use openssl >=1.1.0h you should use the version from openrepos. |
All times are GMT. The time now is 03:28. |
vBulletin® Version 3.8.8