LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-19-2012, 04:00 PM   #1
indexer
LQ Newbie
 
Registered: May 2009
Posts: 6

Rep: Reputation: 0
Default certificate


I have a problem on my server i just cannot get resolved. Everytime I try to use wget to download from an https page I get an error saying the certificate is the wrong one (i also get this using GIT).

The error I get:
Code:
ERROR: certificate common name `www.serverlicious.org' doesn't match requested host name `www.tweakers.net'.
The error I get using GIT:
Code:
error: SSL: certificate subject name (www.serverlicious.org) does not match target host name 'bitbucket.org' while accessing https://...
It's like the system is trying to use a default certificate or something. Hours of searching the web and my system have had no results. Does anyone know what my problem might be?

Last edited by indexer; 06-19-2012 at 04:04 PM.
 
Old 06-19-2012, 07:07 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Instead of promoting insecure connections with "--no-check-certificate" as about every web log and wget does in its output and manual here's an explanation how to add certificates to your store: http://wiki.openwrt.org/doc/howto/wget-ssl-certs. You can find out the issuers root CA by running 'echo | openssl s_client -connect bitbucket.org:443 -verify 5 -showcerts 2>&1| grep CA', search for "download [vendor name] root certificate" and download them here.
 
1 members found this post helpful.
Old 06-19-2012, 07:38 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Adding on to unSpawn you can add that certificate to your trust store like so...
Code:
openssl x509 -text -in DigiCertGlobalCA.crt >> /etc/ssl/certs/ca-bundle.trust.crt
Assuming that's how your server handles certificates (it does it that way on my Fedora and similarly Ubuntu machines). Though my server already has the DigiCert CA certs installed by default.

*edit*: on my Ubuntu system the path is /etc/ssl/certs/ca-certificates.crt. Also you don't need to run that openssl command to import it on Ubuntu; you can simply cat the certificate...
Code:
cat DigiCertGlobalCA.crt >> /etc/ssl/certs/ca-certificates.crt

Last edited by sag47; 06-19-2012 at 07:44 PM.
 
  


Reply



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
Verify return code: 19 (self signed certificate in certificate chain) tikit Linux - Server 1 04-10-2012 05:21 PM
Building a certificate chain from the certificate using openSSL aravinda78 Linux - Security 1 11-10-2008 01:51 AM
Can I retrieve certificate expiry date from an openssl certificate (command line) davee Linux - Security 1 07-21-2006 10:28 AM
Details about default web Browser & default Email client sudhasmyle Linux - Software 4 06-15-2006 11:45 AM
default certificate Natalie Linux - General 0 08-15-2003 02:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration