Nixpkgs: RescueTime doesn't work due to SSL CA certificates

Created on 5 Sep 2016  Â·  11Comments  Â·  Source: NixOS/nixpkgs

Issue description

When rescuetime is launched, it fails to check the status. The error message is:

Problem with network, please contact RescueTime Support. (77): Problem with reading the SSL CA cert (path? access rights?).

Steps to reproduce

$ nix-env -iA rescuetime
$ rescuetime

Technical details

  • Nixpkgs version: Git revision fa3062d1ef7802fc38ecb6a5b1e2748620c8b860
stale

Most helpful comment

I ran into this same issue, and the above didn't fix it. The below did:

Found this in the strace:

[dnelson@sulaco ~]$ strace /usr/bin/rescuetime |& grep crt
open("/etc/ssl/certs/ca-certificates.crt", O_RDONLY) = -1 ENOENT (No such file or directory)

And then ran:

[dnelson@sulaco ~]$ sudo ln -s /usr/share/rescuetime/curl-ca-bundle.crt /etc/ssl/certs/ca-certificates.crt

Which solved the problem in Fedora 25.

All 11 comments

strace -f -eopen and a bunch of filtering shows:

open("/home/timbeaudet/rescuetime-dependencies/openssl/openssl.cnf", O_RDONLY) = -1 ENOENT (No such file or directory)

Which looks suspcious (I am not timbeaudet!)

Ok, that was a red herring. It seems that RescueTime works if you have /usr/share/rescuetime/curl-ca-bundle.crt, but I'm not sure how to best fix this problem.

Patch it to find certificates the same as most of other nixpkgs? IIRC it's /etc/ssl/certs/ca-certificates.crt and overridable by $SSL_CERT_FILE.

Oh, I didn't notice it's a binary package.

@ocharles did you fix this? Or just symlink the crt file?

edit I did:

mkdir -p /usr/share/rescuetime/
cd /usr/share/rescuetime
ln -s  /etc/ssl/certs/ca-bundle.crt curl-ca-bundle.crt

So far I have created the sym link from /usr that Rescue Time is expecting.

On 14 Oct 2016 4:42 a.m., "Ben Ford" [email protected] wrote:

@ocharles https://github.com/ocharles did you fix this? Of just symlink
the crt file?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/18314#issuecomment-253742649,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABRjliVbZEDnMl65BNp6c7ZdRplYp7wks5qz0BvgaJpZM4J0_PO
.

I ran into this same issue, and the above didn't fix it. The below did:

Found this in the strace:

[dnelson@sulaco ~]$ strace /usr/bin/rescuetime |& grep crt
open("/etc/ssl/certs/ca-certificates.crt", O_RDONLY) = -1 ENOENT (No such file or directory)

And then ran:

[dnelson@sulaco ~]$ sudo ln -s /usr/share/rescuetime/curl-ca-bundle.crt /etc/ssl/certs/ca-certificates.crt

Which solved the problem in Fedora 25.

Thanks @DakotaNelson. I can confirm your suggestion works in openSUSE Tumbleweed 20161014.

I've just stumbled upon this from a support ticket, and indeed have had a few issues supporting Linux securely, I have this stackoverflow question which I'm trying to get answered and maybe someone here can help out or at least up vote for more visibility.

Are there any updates to this issue, please?

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

vaibhavsagar picture vaibhavsagar  Â·  3Comments

ghost picture ghost  Â·  3Comments

retrry picture retrry  Â·  3Comments

tomberek picture tomberek  Â·  3Comments

teto picture teto  Â·  3Comments