Tiny Core Base > Raspberry Pi
dbxcli cert problem
(1/1)
DrRob:
Hi,
I'm trying to use https://github.com/dropbox/dbxcli on piCore, but when I run ./dbxcli-linux-arm account to set it up and enter the auth code as instructed, it says, "Error: Post https://api.dropboxapi.com/1/oauth2/token: x509: certificate signed by unknown authority".
dbxcli is a Go application. I see here: https://golang.org/src/crypto/x509/root_unix.go that Go apps don't look for certs in /usr/local/etc/ssl so I tried copying /usr/local/etc/ssl/certs to /etc/ssl/ but that made no difference.
Any ideas?
Thanks,
Rob.
DrRob:
ps. I've tried the same dbxcli binary under Raspbian and it works fine.
DrRob:
Aha - I made it work by copying the whole of the /etc/ssl/certs/ directory from Raspbian into piCore.
What's the correct way to fix this?
DrRob:
I can also fix it by doing this:
--- Code: ---sudo mkdir /etc/pki/tls
sudo ln -s /usr/local/etc/pki/certs /etc/pki/tls
--- End code ---
Paul_123:
Yes, some programs have the cert location hardcoded to /etc/ssl. Making the link is your best option
Navigation
[0] Message Index
Go to full version