Skip to content

RIG 0.7.1 cannot find or does not use certificates #295

@mcanouil

Description

@mcanouil

I'm behind a proxy, using WSL and had to add a certificate:

sudo cp /path/to/company.cer /usr/local/share/ca-certificates/company.crt
sudo update-ca-certificates

Unfortunately, this did not solve the issue with rig:

rig resolve release
[ERROR] Failed to resolve R version: Cannot download JSON: error sending request for url (https://api.r-hub.io/rversions/resolve/release/linux-ubuntu-24.04/x86_64): error trying to connect: invalid peer certificate: UnknownIssuer

Note that curl works properly when checking the URL:

curl -v https://api.r-hub.io/rversions/resolve/4.4/linux-ubuntu-24.04/x86_64

To ensure rig was able to read the certificates, I had to do:

export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
rig resolve release

Is there a way this (or similar) can be done automatically by rig?
(Unfortunately, I don't have a small reproducible example to allow you to reproduce)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions