LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-06-2012, 04:22 AM   #1
vinayaka_c
LQ Newbie
 
Registered: Aug 2009
Posts: 3

Rep: Reputation: 0
digital signature


Hello,

How to digitally sign the binaries (executable files) is linux.
& how to verify them at the receiver side.

What file needs to be transferred for sender to receiver.

I tried with openssl dgst command. but not getting exact idea on how to do it.

is it that digitally signed certificates (.pem) files should be there for signing? . is it that sender signs it with his private key (.pem file) & receiver verifies it with senders public key ( .pem file) ?

how it is ? please suggest how to proceed on this on linux ?

regards,
vinay
 
Old 03-06-2012, 05:44 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
"Detached signature" (.sig) files can be generated using gpg -b <filename>

This prompts for a private key.

The .sig files are distributed with the files themselves.

Recipients can check the files using the .sig files and the public key. The command is gpg --verify <filename>.sig
 
Old 03-06-2012, 10:30 AM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by vinayaka_c
How to digitally sign the binaries (executable files) is linux.
& how to verify them at the receiver side.
There are various ways - GnuPG is one, as mentioned.

Quote:
Originally Posted by vinayaka_c
What file needs to be transferred for sender to receiver.
Normally you provide the binary itself, plus a signed digest of the binary. A crypto signature is approximately the size of the binary itself. This is impractical for large files (which is why you'd sign the digest).

Quote:
Originally Posted by vinayaka_c
I tried with openssl dgst command. but not getting exact idea on how to do it.
You're halfway there...

Quote:
Originally Posted by vinayaka_c
is it that digitally signed certificates (.pem) files should be there for signing? . is it that sender signs it with his private key (.pem file) & receiver verifies it with senders public key ( .pem file) ?

how it is ? please suggest how to proceed on this on linux ?
You sign with the private key. Recipient verifies with the corresponding public key. This is not unique to GNU/Linux, but is a standard protocol.
 
  


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
Can Diffie Hellman and Digital Signature Algorithm be simulated using NS2? CharanyaJ Linux - Newbie 2 02-14-2012 08:49 AM
Understanding digital signature and email calande General 3 11-10-2007 07:43 PM
S/MIME Digital Signature Issue. Linux Newbie. Autumnlord Linux - Security 3 09-07-2007 02:52 AM
LXer: digital signature LXer Syndicated Linux News 0 07-30-2006 08:54 AM
Digital Signature Hardware/Software for Linux? tongar Linux - Hardware 0 01-28-2006 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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