LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-07-2006, 10:23 PM   #1
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
Change server SSL certificate


I created a SSL server a while ago and I just got it to work. But when it was created it was licensed to "localhost" and i want it to have my domain name there. When I tried to create a new one and replace it at the configuration for apache I got errors:

[Fri Apr 07 18:33:55 2006] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
[Fri Apr 07 18:35:30 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Fri Apr 07 18:40:40 2006] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?

What do I have to do? Can anyone help me?
 
Old 04-08-2006, 01:03 AM   #2
gabsik
Member
 
Registered: Dec 2005
Location: This planet
Distribution: Debian,Xubuntu
Posts: 567

Rep: Reputation: 30
#Make Certification Authority
/usr/lib/ssl/misc/CA.pl -newca
#make request and sign it
/usr/lib/ssl/misc/CA.pl -newreq
/usr/lib/ssl/misc/CA.pl -sign
#extract private key
openssl rsa -in newreq.pem -out server.key

When it asks you for a common name it is important to put your Fully qualified domain name and you must have one!do you?
 
Old 04-08-2006, 11:28 AM   #3
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Original Poster
Rep: Reputation: 31
I do. It worked fine now. Thanks.
 
  


Reply


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
SSL Certificate The_JinJ Linux - General 1 03-21-2005 11:46 PM
ssl-certificate twantrd Linux - General 1 03-31-2004 08:47 AM
SSL Certificate Management Doum Mandriva 1 08-26-2003 06:18 PM
SSL certificate without..... Drogo Linux - Software 1 06-13-2003 02:13 AM
2 certificate ssl in 1 server apache simquest Linux - Software 2 07-24-2002 11:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:36 AM.

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