LinuxQuestions.org
Help answer threads with 0 replies.
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 02-28-2020, 01:02 AM   #1
ZH_Y
LQ Newbie
 
Registered: Feb 2020
Posts: 16

Rep: Reputation: Disabled
Help me!GPG private key import problem


My computer system :ubuntu 16.04
My arm board system :buildroot 2019.02 +busybox
1. I generate a pair of GPG keys on my computer, export the private key and copy it to the ARM board.The prompt for importing the private key is as follows: it stops at the last line.Break with CTRL +c,discovery key already exists.
Code:
# date -s "2020-03-15"
Sun Mar 15 00:00:00 UTC 2020
# gpg --import private-key.txt
gpg: key BF22FFF087CCC6AE: public key "xyz<xyz@163.com>" imported

gpg: signal Interrupt caught ... exiting

# gpg --list-keys
//.gnupg/pubring.kbx
--------------------
pub   rsa2048 2020-02-27 [SC]
      EA8457B2DF77088146FA5B19BF22FFF087CCC6AE
uid           [ unknown] xyz<xyz@163.com>
sub   rsa2048 2020-02-27 [E]
2.My ultimate goal is to burn the file system with a private key to the ARM circuit board.This private key can be imported or ready to be imported, is there a better way to operate?
 
Old 02-28-2020, 01:39 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Why are you setting a future date?

does gpg have some sort of verbose switch to give you more info?
 
Old 02-28-2020, 04:35 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by ondoho View Post
does gpg have some sort of verbose switch to give you more info?
According to the man page, it has a verbose option and even debug flags. There is also a fast-import option which leaves the building of the trust DB to a separate command.

I wonder what "importing" entails. If some cryptographic function is involved, it might take a long time on a slow CPU.

I would observe CPU usage (does Busybox include top or similar commands?). strace is probably not an option with a development board like this.

Another question: Rather than importing, what prevents you (OP) from generating the key on the board directly?
 
Old 03-03-2020, 07:57 AM   #4
ZH_Y
LQ Newbie
 
Registered: Feb 2020
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
Why are you setting a future date?

does gpg have some sort of verbose switch to give you more info?
Because my initial system date was 1970, and it was earlier than I generated the key
 
Old 03-03-2020, 08:00 AM   #5
ZH_Y
LQ Newbie
 
Registered: Feb 2020
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
According to the man page, it has a verbose option and even debug flags. There is also a fast-import option which leaves the building of the trust DB to a separate command.

I wonder what "importing" entails. If some cryptographic function is involved, it might take a long time on a slow CPU.

I would observe CPU usage (does Busybox include top or similar commands?). strace is probably not an option with a development board like this.

Another question: Rather than importing, what prevents you (OP) from generating the key on the board directly?
I can only do everything through a serial port.I want to know if there is a way to import the private key directly into the file system, rather than as a private key file, and then generate the rootfs compression file and burn it to the circuit board.
 
Old 03-03-2020, 08:22 AM   #6
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by ZH_Y View Post
I can only do everything through a serial port.I want to know if there is a way to import the private key directly into the file system, rather than as a private key file, and then generate the rootfs compression file and burn it to the circuit board.
The verbose and debug options should work over a serial port. If your OS has screen or tmux, you can create additional shell prompts and check CPU usage while the gpg command is running.
 
  


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
How do I convert a putty private key to be used as a private key on a RedHat or Ubuntu Server greavette Linux - General 2 06-26-2019 08:40 PM
gpg / gpg-agent -- Can't connect to /root/.gnupg/S.gpg-agent jrtayloriv Linux - Security 9 06-03-2019 10:06 AM
Import private key generated from gpg 2.2.10 into gpg 2.0.31 john2x Slackware 0 10-29-2018 03:44 PM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 09:37 AM
How do I import a GPG key from RPMfind.net lehumphr Linux - Newbie 3 05-07-2004 01:51 PM

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

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