Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Security > :: Cryptography on Linux ::

Forgot Password?
 Linux Security   Discussion about keeping your machines secure, and the crackers out.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-20-2009   #1 (permalink)
Just Joined!
 
Join Date: May 2009
Posts: 1
Post :: Cryptography on Linux ::

I need to develop a system which interacts with a web service by sending encrypted information to it on linux. Kindly help me with my queries:

a) Linux does not provide CSP (Cryptographic Service Provider) as in Windows , so who is responsible for handling keys.

b) If everything in linux is a file, so the private keys used in PKI will also be saved as a file.. Is it the only approach we have or any other secure way?

c) We want our system to be used by any user (admin/non-admin/root) so how to go about achieving it, if we go and restrict our access to private keys?

d) We need to use OpenPGP or OpenSSL libraries for encryption/decryption correct?

e) What is the best way to go about solving this issue of key management on linux.

Thanks in Advance.

Last edited by manas4u; 05-20-2009 at 06:50 PM.. Reason: More questions added
manas4u is offline  


Reply With Quote
Old 05-22-2009   #2 (permalink)
Linux User
 
Join Date: May 2009
Location: Kamloops, B.C., Canada
Posts: 325
__________________
Registered Linux User #420832
Hal343 is offline   Reply With Quote
Old 05-22-2009   #3 (permalink)
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,366
Quote:
Originally Posted by manas4u View Post
a) Linux does not provide CSP (Cryptographic Service Provider) as in Windows , so who is responsible for handling keys.
You are. CSP, itself (or CAPI to be more specific) is not responsible for key management. It's simply a programming interface into some of the more popular cryptography algorithms.
Quote:
b) If everything in linux is a file, so the private keys used in PKI will also be saved as a file.. Is it the only approach we have or any other secure way?
Put it this way: any key management approach you can think of for Windows can be implemented in Linux. Key management is a platform-independent problem so if you're not comfortable with keeping the private key in a secure directory with limited permissions, maybe you can try something more elaborate like saving the key to a USB token and giving the owner of that token the possession of it.
Quote:
c) We want our system to be used by any user (admin/non-admin/root) so how to go about achieving it, if we go and restrict our access to private keys?
Why should the keypair(s) be shared between users? Why not give each user their own? If you give multiple users access to the same private key, you sacrifice one of the key features of public key cryptography: non-repudiation. Any user can send off a message signed with that private key and blame it on one of the other users who also has access to it. This may or may not be a concern of yours but the correct way of doing things would be to give each user who should have access to this system their own keypair.
Quote:
d) We need to use OpenPGP or OpenSSL libraries for encryption/decryption correct?
You don't have to but those are two libraries that have been thoroughly reviewed by the cryptography community and are considered viable.
Quote:
e) What is the best way to go about solving this issue of key management on linux.
There really is no "best" way. There's only the way that best suits your system. From your post, I don't know if we have enough information to determine the best approach.
Thrillhouse is offline   Reply With Quote
Old 06-04-2009   #4 (permalink)
Linux Newbie
 
Join Date: May 2007
Posts: 104
Have you rule out GNU Privacy Guard for some reason? It is very useful for this type of task.
__________________
http://jasonnixon.net
charlie205 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:11 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2