LinuxQuestions.org
Review your favorite Linux distribution.
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 05-29-2020, 01:37 AM   #1
newic
LQ Newbie
 
Registered: Dec 2019
Posts: 14

Rep: Reputation: Disabled
sending pgpkey doesn't give an identical result


Good morning,

I use OpenpgpJS to create gpgkeys (RSA 2048bits). I forged public and private keys :
I use SKS keyserver and when I send my key, It's resulting that keys doesn't corresponding.

Is someone have an idea why the final public key is different of what i have send ?

Keys here : https://pastebin.com/raw/0mfArygL 1. is the public key giving by OpenpgpJS 2. is the private 3. is the key resulting by SKS.

I observed that key start always by the same digits corresponding to the type of keys but i really don't know how key are Armored technically.

Last edited by newic; 05-29-2020 at 03:59 AM.
 
Old 06-18-2020, 03:34 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Those two public keys are the same, it is just that SKS has re-encoded the packets to the new-ctb (new cipher type byte) format, and the content of each packet is identical.

You can use gpg2 to show the packet format
gpg2 --list-packets -v file.asc

You will also find that if a public key has signatures added, then the file will change (though this is not the case here). What really matters is that the keys are the same (and so the fingerprint is identical).

[I'm assuming these keys are just an example, since you've posted the private key too.]

Last edited by neonsignal; 06-18-2020 at 04:06 AM.
 
Old 04-26-2021, 02:04 AM   #3
newic
LQ Newbie
 
Registered: Dec 2019
Posts: 14

Original Poster
Rep: Reputation: Disabled
Thanks you Neonsignal, that's solved my problems. (They keys given was for the example)
 
  


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
Sending identical data to 2 USB ports at once cave_dweller Linux - General 6 02-03-2015 08:08 PM
autofs local map files identical but not identical to automount jwaldram Linux - Server 2 10-26-2012 10:35 AM
am not getting any result when am using 'if', without getting result for below script alavala53 Linux - General 3 10-25-2012 06:00 PM
[SOLVED] Grep for the result of a command within the result of another command jasonws Programming 6 11-18-2010 02:39 PM
Identical disks that are not identical staphanes Linux - Hardware 8 03-11-2006 11:50 AM

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

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