|
|
2008-03-03
, 02:19
|
|
Posts: 289 |
Thanked: 83 times |
Joined on Jul 2006
|
#2
|
Has anyone else experienced problems with curl on the N810 looking for certificates, or could anyone help me workaround this problem?
|
|
2008-03-03
, 17:07
|
|
Posts: 60 |
Thanked: 17 times |
Joined on Feb 2008
|
#3
|
|
|
2008-03-03
, 21:13
|
|
Posts: 60 |
Thanked: 17 times |
Joined on Feb 2008
|
#4
|
|
|
2008-03-03
, 22:20
|
|
Posts: 289 |
Thanked: 83 times |
Joined on Jul 2006
|
#5
|
So I keep getting failures on the N810 in trying to use aws to access s3 storage at amazonaws because aws is calling curl, but curl doesn't appear to be using the cert-file that it needs to go through the verification at amazonaws.
|
|
2008-03-03
, 23:30
|
|
Posts: 60 |
Thanked: 17 times |
Joined on Feb 2008
|
#6
|
I am not sure the OpenSLL in the NIT is configured to use the certs-bundle file... instead, it is looking for certs in /usr/lib/ssl/certs -- this directory is supposed to contain both Cert files, in PEM format, and their hash links. You could do this for the single cert that you need for Amazon. It's all explained in my web page, which I pointed you earlier.
-- Denis
|
|
2008-03-04
, 03:00
|
|
Posts: 289 |
Thanked: 83 times |
Joined on Jul 2006
|
#7
|
Also, curl lets you set an environment variable for the certs-bundle like this
CURL_CA_BUNDLE=/etc/ssl/certs/curl-ca-bundle.crt
Are you saying that curl on the NIT will not work that way if I set and export that environment variable?
|
|
2008-03-04
, 03:51
|
|
Posts: 60 |
Thanked: 17 times |
Joined on Feb 2008
|
#8
|
|
|
2008-03-04
, 06:19
|
|
Posts: 289 |
Thanked: 83 times |
Joined on Jul 2006
|
#9
|
Denis,
As far as I can tell, it works to set an environment variable as follows
CURL_CA_BUNDLE=/usr/lib/ssl/certs/curl-ca-bundle.crt
export CURL_CA_BUNDLE
One other thing - as far as I can tell, the export above does not produce a persisting environment variable. When I try to echo that variable after a reboot, it's not there???
Another very important piece of information. I had to use rdate to set the time on my Nokia - otherwise it would not authenticate. The time was off and ssl failed.
The only problem as far as I can tell is that I have to do this time sync after every boot - that is pretty lame
|
|
2008-03-04
, 16:01
|
|
Posts: 60 |
Thanked: 17 times |
Joined on Feb 2008
|
#10
|
http://timkay.com/aws/
I would love to be able to upload files from my N810 to this storage. I did the following successfully on the N810:
1. installed curl (become root then apt-get install curl)
2. installed openssl
3. installed aws as shown on the above web site.
Now I can connect to amazonaws but as soon as I connect, I get a certificate problem like this:
* About to connect() to s3.amazonaws.com port 443
* Trying 207.171.191.241... connected
* Connected to s3.amazonaws.com (207.171.191.241) port 443
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS alert, Server hello (2):
SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:lib(20):func(144):reason(134)
* Closing connection #0
So it fails possibly because the program is using curl to access the web site, and curl looks for a certificate. The problem is that s3 doesn't use certificates for authentication. It uses an ID and Signature file which the program finds in a ~/.awssecret file.
Has anyone else experienced problems with curl on the N810 looking for certificates, or could anyone help me workaround this problem?