LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-09-2012, 07:20 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Rep: Reputation: 83
curl - how to install a public key certificate?


Hi!

Yesterday I checked out from a svn repository using https as its transport. The problem is that it's a self signed certificate so curl complained about it and didn't let me do anything with the repo.

I was able to do the checkout with https+urllib but then the checkout branch is using https. I tried performing an update and it complained about the certificate.

Code:
bzr: ERROR: Unable to connect to target of bound branch BzrBranch7(file:///xxx/branchdir/) => https://server/branchpath: Connection error: curl connection error (server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none)
on https://server/branchpath/
I had to perform a pull specifying the repository address by hand (with https+urllib). I'm afraid that when I do the push from my local branch, it won't be reflected on the svn branch.

Is there a way to install the public key of the server so that curl won't complain or, perhaps, change the checkout branch so that it uses https+urllib?

Thanks in advance.
 
Old 03-09-2012, 07:45 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
By the way, I tried appending the pem certificate from the server (exported from ff) to the /etc/ssl/certs/ca-certificates.crt file but still curl complained about the certificate.
 
Old 03-09-2012, 09:37 AM   #3
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
I'm following instructions from http://turboflash.wordpress.com/2009...d-certificate/ and I just can't make curl to trust my certificate.

When I run the update-ca-certificates, it even names my certificate but still when I run the bzr update, I still get the curl complaining about the certificate. What do I have to do?
 
Old 03-09-2012, 09:49 AM   #4
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Colombia
Distribution: Kubuntu, Debian, Knoppix
Posts: 1,982
Blog Entries: 1

Original Poster
Rep: Reputation: 83
Is the certificate that apache uses on https the ca.crt that it uses to sign it? I guess not, right? Do I need to get the ca.crt used by apache to sign the certificate to add it to the trusted certificates?
 
  


Reply

Tags
bzr, checkout, curl, https+urllib, snv


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rfbdrake failed to extract public key from certificate randon7533 Linux - Networking 6 08-07-2012 09:27 PM
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 08:33 AM
Curl Certificate Issue Manjunath1847 Linux - General 1 07-14-2010 01:18 AM
yum, local install and public key kulmis Fedora 1 03-19-2006 07:38 AM
Curl: How to add remote site to a certificate? mikeshn Programming 0 12-15-2003 07:14 PM


All times are GMT -5. The time now is 09:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration