LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-20-2012, 06:59 AM   #1
grylux
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Rep: Reputation: Disabled
Openssl - 2 CAs and 1 user


Hi to all!

Using openssl, I have created 2 Certification Authorities(CAs), CA1 and CA2.Each CA has its own certificate signed by itself!
Also, i have created a user. The user has its own certificate which is signed by CA1.

I want your help/suggestions how to do this: There is need CA1 and CA2 to have mutual trust, CA1 to trust CA2 and CA2 to trust CA1. So, if the user will ask to verify its certificate from CA2 then the result must be valid, because CA2 trusts CA1.

Any suggestions???
 
Old 02-20-2012, 07:47 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
you can redo things by making CA1 and CA2 be intermediates of the same root CA. then, anyone who trusts CA also trusts anything signed by CA1 or CA2.
 
Old 02-20-2012, 11:21 AM   #3
grylux
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Berhanie View Post
you can redo things by making CA1 and CA2 be intermediates of the same root CA. then, anyone who trusts CA also trusts anything signed by CA1 or CA2.
I think that you are right! I will come back with results..
If you know any good tut about creating intermediate CAs it would be appreciated!
Otherwise the web is out there for me!

Thanks
 
Old 02-21-2012, 10:02 AM   #4
grylux
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I created a RootCA and 2 intermediate CAs: CA1 and CA2.
The certificates of CA1 and CA2 are signed from RootCA's certificate.

Also, created a user's certificate which is signed by the CA1's certificate.

When i try to verify CA1's and CA2's certificates with the RootCA's certificate the result is OK!

But when i try to verify user's cert. with the CA1's cert. the result is ERROR!!

Any help??Why does it happen, as i signed user's cert with CA1's cert.??????
 
Old 02-21-2012, 11:20 AM   #5
grylux
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
self response :P
actually this problem is solved creating a chain.pem as follows:

cat userCert.pem ca1cert.pem rootCert.pem > chain.pem
openssl verify -CAfile chain.pem -verbose userCert.pem
>Signature OK
 
  


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
LXer: Configuring CAS On Ubuntu For Two-Factor Authentication With WiKID LXer Syndicated Linux News 0 01-03-2012 03:10 PM
install of openssl-0.9.8b-8.3.el5 conflicts with file from package openssl-0.9.8b-8.3 jsaravana87 Linux - Server 1 09-26-2011 01:02 PM
CAS Latency for AMD Phenom II overclocking Linux31 Linux - Hardware 5 06-14-2010 06:28 AM
oops openssl-0.9.8e over openssl-0.9.8d bad install now 2 copies? rcorkum Slackware 4 06-29-2007 01:58 AM
What's up with CAS Latency's? colinstu General 4 06-28-2007 07:27 AM

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

All times are GMT -5. The time now is 04:25 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