The SSL CA cert (path? access rights) on Ubuntu 16?

2

1

Problem with the SSL CA cert (path? access rights?). I got a SSL cert from Commodo and it installed ok. Everything seems to be working correctly and I have restarted my server and Apache2.

Service apache2 status shows no errors.

This was used:

sudo apt-get update && sudo apt-get upgrade -fy && sudo apt-get dist-upgrade -fy

The issues I see online either deal with Amazons Linux (using yum) or CentOS. They said to restart the server. I am using Ubuntu 16.04 and not sure what to do next?

This affects packages being downloaded such as this example:

I tried to do a command such as:

I made a composer.json file

{
  "require": {
      "aws/aws-sdk-php": "3.*"
  }
}

composer install

[RuntimeException]
  Failed to clone https://github.com/jmespath/jmespath.php.git via https, ssh
   protocols, aborting.
  - https://github.com/jmespath/jmespath.php.git
    Cloning into '/var/www/ssl/s3/test/vendor/mtdowling/jmespath.php'...
    fatal: unable to access 'https://github.com/jmespath/jmespath.php.git/':
  Problem with the SSL CA cert (path? access rights?)
  - git@github.com:jmespath/jmespath.php.git
    Cloning into '/var/www/ssl/s3/test/vendor/mtdowling/jmespath.php'...
    Permission denied (publickey).
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.

DDJ

Posted 2017-02-16T15:51:11.573

Reputation: 165

Answers

3

In my opinion SSH key is not authorized in this scenario and you need to create public SSH key and ask the admin of Git repository to add SSH public key. You can refer below URL for more information:

https://stackoverflow.com/questions/7430311/saving-ssh-key-fails/8600087#8600087

Gunjan Tripathi

Posted 2017-02-16T15:51:11.573

Reputation: 417

3

I encountered the git clone error on a small Debian distro (Voyage Linux), and it was because the standard root CAs weren't installed, meaning that git (and even simple things like curl https://google.com) couldn't verify the SSL certificates of HTTPS sites.

The solution at lxadm, which worked for me, was just to install ca-certificates:

sudo apt install ca-certificates

mwfearnley

Posted 2017-02-16T15:51:11.573

Reputation: 5 885

This was installed for me (18.04) and still got error but doing a sudo apt install --reinstall ca-certificates fixed it. Not sure why this was downvoted but I upvoted back to zero as it solved my issue. (imho downvote without comment or upvoting existing comment shouldn't be allowed) – DKebler – 2018-12-06T19:55:47.413

-1

This worked for me. Installing a root/CA Certificate. Given a CA certificate file foo.crt, follow these steps to install it on Ubuntu:

Create a directory for extra CA certificates in /usr/share/ca-certificates:

sudo mkdir /usr/share/ca-certificates/extra

Copy the CA .crt file to this directory:

sudo cp foo.crt /usr/share/ca-certificates/extra/foo.crt

Let Ubuntu add the .crt file's path relative to /usr/share/ca-certificates to /etc/ca-certificates.conf:

sudo dpkg-reconfigure ca-certificates

Sol

Posted 2017-02-16T15:51:11.573

Reputation: 113