Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Cannot run git nor brew: 'SSL: can't load CA certificate file ~/Documents/Certificates.pem' Post 302931364 by bakunin on Monday 12th of January 2015 04:41:18 PM
Old 01-12-2015
Quote:
Originally Posted by isaac_caswell
For instance, I don't know what the purpose of certificates are
This hasn't got anything to do with UNIX. A certificate is an authentication mechanism, like a key for a certain lock. If you are in posssession of the key you can open the lock, otherwise it stays locked.

Quote:
Originally Posted by isaac_caswell
Code:
fatal: unable to access 'https://icaswell@bitbucket.org/binarycalculus/cs-221-project.git/': SSL: can't load CA certificate file ~/Documents/Certificates.pem

This should be obvious enough: You tried to contact the given URL. The browser software tried to load a requested certificate from a file (with stored certificates) located in "~/Documents/Certificates.pem" This file is named "Certificates.pem" and located in your HOME directory (this is what "~" means), in a directory called "Documents". Alas, this files seems not to exist, the browser process has insufficient privileges to access it or something else prevents the process from poperly reading it.

Quote:
Originally Posted by isaac_caswell
Also, if I try to install brew, it claims to be installed, but [...] it complains that
Code:
brew: command not found

.
A program might be installed but to call it without a path ("command" instead of "/path/to/command") the path it resides in has to be included in the variable PATH. Do the following:

1) find out where the executable "brew" is:

Code:
find / -type f -name "brew" -print

This will take several minutes because it searches all your mounted filesystems. There are better ways to find it, but they are more complicated to explain, this is the "brute-force method" but guaranteed to work.

2) you get eventually an output of "/some/path/to/brew". This path has to be included into your PATH variable. Do an:

Code:
echo $PATH

and you will see a list of such pathes, separated by colon characters, similar to this:

Code:
# echo $PATH
/usr/bin:/usr/local/bin:/etc:/sbin:/usr/sbin:/opt/freeware/bin

Now put the path you did find at the beginning of this environment variable:

Code:
# PATH="/some/path/to:$PATH"
# echo $PATH
/some/path/to:/usr/bin:/usr/local/bin:/etc:/sbin:/usr/sbin:/opt/freeware/bin

Now you can issue the command "brew" without having to specify the whole path to it. Note that this will last for only this session because the change to the PATH variable will not be permanent. For this you will have to edit your startup files ("~/.profile" or some rc-file, depending on the shell you use).

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. Web Development

SSL certificate

Dear All Anyone know how to issue two different certification on apache virtualhost fyi i have one virtualhost eg 69.192.1.25:443 already signed with verisign how can i configure another virtualhost 69.192.1.25:443 which signing with another certificate which self signing. i search net not... (1 Reply)
Discussion started by: netxus
1 Replies

2. AIX

Installing SSL certificate on AIX

Hello, I am new in UNIX, and some one asks me to install SSL certificates to allow exchange with an external system. Can someone tell how to install certificate (ex : verisignxxx.cer) on a UNIX server? Many thanks. Tibo (4 Replies)
Discussion started by: tibo51
4 Replies

3. Cybersecurity

expiration of SSL Certificates

Does anyone know how to extract the expiration date of a Solaris 9 certificate? I have searched over the 'net and it seems this command ssl-cert-check comes up often but this does not work on my servers. Not sure how to extraxt the expiration dates of the SSL Certs so if anyone can help that would... (2 Replies)
Discussion started by: bluridge
2 Replies

4. UNIX for Dummies Questions & Answers

VSFTPD & SSL Certificates

Hello all :b: I need a little advice on securing my VSFTPD server. I currently have it setup and working using a self signed certificate by following instructions on the net and im happy with it to a certain extent. One of my clients is not... He said he cannot connect to the server unless... (1 Reply)
Discussion started by: mokachoka
1 Replies

5. AIX

Creation of SSL certificates

Can someone guide me as to how SSL certificates are created for a new AIX box? I am a novice to system administration. Thanks in advance Gayathri (1 Reply)
Discussion started by: ggayathri
1 Replies

6. Cybersecurity

SSL certificate

Hi guys. I have some questions about ssl certificates. I looked at SSL providers and saw that they are providing 2 types of certificates: per server or per domain. my server host name is: srv1.example.com I have a smtp, imap, web server on this box. but all services accessed by different... (1 Reply)
Discussion started by: majid.merkava
1 Replies

7. Web Development

export SSL certificate

we are doing TCP for our systems. I have a working SSL certificate on prodction webserver. Im planning to export it to our DR server for TCP purposes. However when I export based on the procedure below, it doesn't work. When I restart the DR webserver, it still says the certifcate is expired.Any... (1 Reply)
Discussion started by: lhareigh890
1 Replies

8. UNIX for Dummies Questions & Answers

Installing SSL certificates on Ubuntu Server 12.04

Hi everyone, I am working on a Nginx + Apache installation for learning purposes, and just got to the point of installing a self-signed certificate for securing some pages that will be used to send "sensitive" information such as login credentials. So far so good. What a I want to know is how can... (2 Replies)
Discussion started by: gacanepa
2 Replies

9. Cybersecurity

SSL Certificate Stores

Hey everyone, I'm trying to get a lay of the land for OS and Application Certificate Stores. Can someone confirm that I have this concept right? If the application you're using say Firefox has it's own trusted CA store, it uses that exclusively. So if you're running firefox in Windows, Firefox... (4 Replies)
Discussion started by: Lost in Cyberia
4 Replies

10. Web Development

CronJobs issues after SSL certificate

Hello! I had a cron job running on my website, activating a php script every friday. The Php script just activated another photo to add in the gallery. It worked fine until I got an SSL certificate for my website, then everything broke. This was the command before: lynx -source... (0 Replies)
Discussion started by: AGDesign
0 Replies
All times are GMT -4. The time now is 12:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy