SSL certificates problem

Hi,

Every time I am using wget on a https server, I am getting a certificate error.

This is what I am getting

Resolving github.com (github.com)... 207.97.227.239
Connecting to github.com (github.com)|207.97.227.239|:443... connected.
ERROR: cannot verify github.com's certificate, issued by `/C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert High Assurance EV CA-1':
  Unable to locally verify the issuer's authority.
To connect to github.com insecurely, use `--no-check-certificate'.

I suppose I would have to install the SSL certificates but I can’t find how?
Any pointers? Thanks!

The system wide certificate store is “/etc/ssl/certs”.

If you are using KDE, there is a desktop configuration option for managing certificates. It has the ability to add certificates. However, I do not know whether they are added to the system wide store, or to a local (per-user) store. I suspect that “wget” only looks at the system wide store, unless you give command line options to look elsewhere.

I do not know whether there is a standard facility for adding to the system wide store. On the other hand, it is only a matter of adding the file yourself, then hashing with the script in “/usr/share/ssl/misc”.

On 2012-10-01 02:46, nrickert wrote:
>
> The system wide certificate store is “/etc/ssl/certs”.

SDB:Share certificates between applications or whole system


Cheers / Saludos,

Carlos E. R.
(from 12.1 x86_64 “Asparagus” at Telcontar)

I followed the procedure outlined there and I am still getting the error with wget

Do you have the package “ca-certificates-cacert” installed?

I guess the real problem probably is why you’re using wget.

git clone is the proper command used to copy a repo to your local drive.

eg
If you want to store a copy of the repo in a subdirectory of a “git” directory. Note that the process of cloning will create its own directory for that repo automatically


# mdkir git
# cd git
# git clone *git_repo_uri which starts with https*

IIRC you don’t need to configure an SSL cert for uploading/downloading, you only need to install a cert for SSH access (which is entirely optional and not necessary). There is a simple tutorial in the github FAQ how to do that.

You might also be interested in slidedeck from the 30 min presentation I created how to create a free website using Github pages, it also includes the fundamentals of what you’re trying to do.
https://sites.google.com/site/4techsecrets/slide-presentations-30min

HTH,
TSU