Digital signature and verification when the keys are in text files
up vote
0
down vote
favorite
I generated a key-pair using ssh-keygen. They are in two text files, say "abc.txt" and "abc.txt.pub".
Now, I want to use the private key to sign a document.
I did not find a way to do it with ssh, so I tried to use gpg:
gpg --sign --default-key=abc.txt features-devsite.txt
but got the following message:
gpg: no default secret key: secret key not available
gpg: signing failed: secret key not available
In this question: How to sign files with Ubuntu command-line tools and my own keys? there is a guide on generating keys with GPG, but I do not see how to sign when the key is in an existing text file.
ssh signature
add a comment |Â
up vote
0
down vote
favorite
I generated a key-pair using ssh-keygen. They are in two text files, say "abc.txt" and "abc.txt.pub".
Now, I want to use the private key to sign a document.
I did not find a way to do it with ssh, so I tried to use gpg:
gpg --sign --default-key=abc.txt features-devsite.txt
but got the following message:
gpg: no default secret key: secret key not available
gpg: signing failed: secret key not available
In this question: How to sign files with Ubuntu command-line tools and my own keys? there is a guide on generating keys with GPG, but I do not see how to sign when the key is in an existing text file.
ssh signature
I'm not sure that GPG keys and SSH keys are directly compatible - see for example GPG & SSH Keys
â steeldriver
Jun 1 at 13:21
Okay, so regardless of gpg, how can I sign my document with an ssh key?
â Erel Segal-Halevi
Jun 1 at 13:24
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I generated a key-pair using ssh-keygen. They are in two text files, say "abc.txt" and "abc.txt.pub".
Now, I want to use the private key to sign a document.
I did not find a way to do it with ssh, so I tried to use gpg:
gpg --sign --default-key=abc.txt features-devsite.txt
but got the following message:
gpg: no default secret key: secret key not available
gpg: signing failed: secret key not available
In this question: How to sign files with Ubuntu command-line tools and my own keys? there is a guide on generating keys with GPG, but I do not see how to sign when the key is in an existing text file.
ssh signature
I generated a key-pair using ssh-keygen. They are in two text files, say "abc.txt" and "abc.txt.pub".
Now, I want to use the private key to sign a document.
I did not find a way to do it with ssh, so I tried to use gpg:
gpg --sign --default-key=abc.txt features-devsite.txt
but got the following message:
gpg: no default secret key: secret key not available
gpg: signing failed: secret key not available
In this question: How to sign files with Ubuntu command-line tools and my own keys? there is a guide on generating keys with GPG, but I do not see how to sign when the key is in an existing text file.
ssh signature
asked Jun 1 at 13:15
Erel Segal-Halevi
84931732
84931732
I'm not sure that GPG keys and SSH keys are directly compatible - see for example GPG & SSH Keys
â steeldriver
Jun 1 at 13:21
Okay, so regardless of gpg, how can I sign my document with an ssh key?
â Erel Segal-Halevi
Jun 1 at 13:24
add a comment |Â
I'm not sure that GPG keys and SSH keys are directly compatible - see for example GPG & SSH Keys
â steeldriver
Jun 1 at 13:21
Okay, so regardless of gpg, how can I sign my document with an ssh key?
â Erel Segal-Halevi
Jun 1 at 13:24
I'm not sure that GPG keys and SSH keys are directly compatible - see for example GPG & SSH Keys
â steeldriver
Jun 1 at 13:21
I'm not sure that GPG keys and SSH keys are directly compatible - see for example GPG & SSH Keys
â steeldriver
Jun 1 at 13:21
Okay, so regardless of gpg, how can I sign my document with an ssh key?
â Erel Segal-Halevi
Jun 1 at 13:24
Okay, so regardless of gpg, how can I sign my document with an ssh key?
â Erel Segal-Halevi
Jun 1 at 13:24
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1042627%2fdigital-signature-and-verification-when-the-keys-are-in-text-files%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
I'm not sure that GPG keys and SSH keys are directly compatible - see for example GPG & SSH Keys
â steeldriver
Jun 1 at 13:21
Okay, so regardless of gpg, how can I sign my document with an ssh key?
â Erel Segal-Halevi
Jun 1 at 13:24