맥에서 GPG로 열쇠를 만들 때 코드가 엉망이에요.
개요
암호화를 위해 GPG를 사용하고 싶어서 가벼운 마음으로 Mac에 GPG를 설치했는데 살짝 빠져서 필기를 했습니다.
GPG 설치
brew로 gpg를 설치했습니다.brew install gpg
키 만들기
먼저 --gen-key
를 사용하여 키를 생성합니다.% gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
注意: 全機能の鍵生成には "gpg --full-generate-key" を使います。
GnuPGはあなたの鍵を識別するためにユーザIDを構成する必要があります。
本名: Kenichiro Nishioka
電子メール・アドレス: xxxxx@xxxxx
次のユーザIDを選択しました:
"Kenichiro Nishioka <xxxxx@xxxxx>"
디코드 화면 들어가기
여기서 취소할 것 같은 곳으로 탭을 옮겨서 취소하면 되는데 ctrl + C
떨어졌기 때문에 컨트롤러가 좀 틀렸어요.console의 입력과 출력이 정상적으로 진행될 수 없기 때문에 터미널을 다시 시작했습니다.
다시 gen-key를 시도하자 방금 나온 화면과 다른 메시지가 나왔다.gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
注意: 全機能の鍵生成には "gpg --full-generate-key" を使います。
GnuPGはあなたの鍵を識別するためにユーザIDを構成する必要があります。
本名: Kenichiro Nishioka
電子メール・アドレス: xxxxx@xxxxx
次のユーザIDを選択しました:
"Kenichiro Nishioka <xxxxx@xxxxx>"
名前(N)、電子メール(E)の変更、またはOK(O)か終了(Q)? O
たくさんのランダム・バイトの生成が必要です。キーボードを打つ、マウスを動か
す、ディスクにアクセスするなどの他の操作を素数生成の間に行うことで、乱数生
成器に十分なエントロピーを供給する機会を与えることができます。
여기에서 특별한 조작을 하지 못했지만 잠시 후 아래의 오류로 되돌아왔다.
비밀번호 입력으로 옮기지 않은 것 같습니다.gpg: agent_genkey failed: Timeout
鍵の生成に失敗しました: Timeout
일본어 문자 때문인 것 같아서 랑을 바꿔서 실행해 봤는데 아까처럼 실행할 수 없는 상황이 돼서 시간을 초과했습니다.LANG=C gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Note: Use "gpg --full-generate-key" for a full featured key generation dialog.
GnuPG needs to construct a user ID to identify your key.
Real name: Kenichiro Nishioka
Email address: xxxxx@xxxxx
You selected this USER-ID:
"Kenichiro Nishioka <xxxxx@xxxxx>"
Change (N)ame, (E)mail, or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: agent_genkey failed: Timeout
Key generation failed: Timeout
gpg-agent가 시작된 것 같아서 gpg-agent를 다시 시작했습니다.gpgconf --kill gpg-agent
다시 한번 젠키를 해볼게요.LANG=C gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Note: Use "gpg --full-generate-key" for a full featured key generation dialog.
GnuPG needs to construct a user ID to identify your key.
Real name: Kenichiro Nishioka
Email address: xxxxx@xxxxx
You selected this USER-ID:
"Kenichiro Nishioka <xxxxx@xxxxx>"
Change (N)ame, (E)mail, or (O)kay/(Q)uit? O
이번에는 비밀번호 입력 화면으로 무사히 날아가 열쇠를 만들었다.
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
… (略)
Reference
이 문제에 관하여(맥에서 GPG로 열쇠를 만들 때 코드가 엉망이에요.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/kenichiro_nishioka/items/990f8d80902222cf2476
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
brew로 gpg를 설치했습니다.
brew install gpg
키 만들기
먼저 --gen-key
를 사용하여 키를 생성합니다.% gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
注意: 全機能の鍵生成には "gpg --full-generate-key" を使います。
GnuPGはあなたの鍵を識別するためにユーザIDを構成する必要があります。
本名: Kenichiro Nishioka
電子メール・アドレス: xxxxx@xxxxx
次のユーザIDを選択しました:
"Kenichiro Nishioka <xxxxx@xxxxx>"
디코드 화면 들어가기
여기서 취소할 것 같은 곳으로 탭을 옮겨서 취소하면 되는데 ctrl + C
떨어졌기 때문에 컨트롤러가 좀 틀렸어요.console의 입력과 출력이 정상적으로 진행될 수 없기 때문에 터미널을 다시 시작했습니다.
다시 gen-key를 시도하자 방금 나온 화면과 다른 메시지가 나왔다.gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
注意: 全機能の鍵生成には "gpg --full-generate-key" を使います。
GnuPGはあなたの鍵を識別するためにユーザIDを構成する必要があります。
本名: Kenichiro Nishioka
電子メール・アドレス: xxxxx@xxxxx
次のユーザIDを選択しました:
"Kenichiro Nishioka <xxxxx@xxxxx>"
名前(N)、電子メール(E)の変更、またはOK(O)か終了(Q)? O
たくさんのランダム・バイトの生成が必要です。キーボードを打つ、マウスを動か
す、ディスクにアクセスするなどの他の操作を素数生成の間に行うことで、乱数生
成器に十分なエントロピーを供給する機会を与えることができます。
여기에서 특별한 조작을 하지 못했지만 잠시 후 아래의 오류로 되돌아왔다.
비밀번호 입력으로 옮기지 않은 것 같습니다.gpg: agent_genkey failed: Timeout
鍵の生成に失敗しました: Timeout
일본어 문자 때문인 것 같아서 랑을 바꿔서 실행해 봤는데 아까처럼 실행할 수 없는 상황이 돼서 시간을 초과했습니다.LANG=C gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Note: Use "gpg --full-generate-key" for a full featured key generation dialog.
GnuPG needs to construct a user ID to identify your key.
Real name: Kenichiro Nishioka
Email address: xxxxx@xxxxx
You selected this USER-ID:
"Kenichiro Nishioka <xxxxx@xxxxx>"
Change (N)ame, (E)mail, or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: agent_genkey failed: Timeout
Key generation failed: Timeout
gpg-agent가 시작된 것 같아서 gpg-agent를 다시 시작했습니다.gpgconf --kill gpg-agent
다시 한번 젠키를 해볼게요.LANG=C gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Note: Use "gpg --full-generate-key" for a full featured key generation dialog.
GnuPG needs to construct a user ID to identify your key.
Real name: Kenichiro Nishioka
Email address: xxxxx@xxxxx
You selected this USER-ID:
"Kenichiro Nishioka <xxxxx@xxxxx>"
Change (N)ame, (E)mail, or (O)kay/(Q)uit? O
이번에는 비밀번호 입력 화면으로 무사히 날아가 열쇠를 만들었다.
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
… (略)
Reference
이 문제에 관하여(맥에서 GPG로 열쇠를 만들 때 코드가 엉망이에요.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/kenichiro_nishioka/items/990f8d80902222cf2476
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
% gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
注意: 全機能の鍵生成には "gpg --full-generate-key" を使います。
GnuPGはあなたの鍵を識別するためにユーザIDを構成する必要があります。
本名: Kenichiro Nishioka
電子メール・アドレス: xxxxx@xxxxx
次のユーザIDを選択しました:
"Kenichiro Nishioka <xxxxx@xxxxx>"
gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
注意: 全機能の鍵生成には "gpg --full-generate-key" を使います。
GnuPGはあなたの鍵を識別するためにユーザIDを構成する必要があります。
本名: Kenichiro Nishioka
電子メール・アドレス: xxxxx@xxxxx
次のユーザIDを選択しました:
"Kenichiro Nishioka <xxxxx@xxxxx>"
名前(N)、電子メール(E)の変更、またはOK(O)か終了(Q)? O
たくさんのランダム・バイトの生成が必要です。キーボードを打つ、マウスを動か
す、ディスクにアクセスするなどの他の操作を素数生成の間に行うことで、乱数生
成器に十分なエントロピーを供給する機会を与えることができます。
gpg: agent_genkey failed: Timeout
鍵の生成に失敗しました: Timeout
LANG=C gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Note: Use "gpg --full-generate-key" for a full featured key generation dialog.
GnuPG needs to construct a user ID to identify your key.
Real name: Kenichiro Nishioka
Email address: xxxxx@xxxxx
You selected this USER-ID:
"Kenichiro Nishioka <xxxxx@xxxxx>"
Change (N)ame, (E)mail, or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: agent_genkey failed: Timeout
Key generation failed: Timeout
gpgconf --kill gpg-agent
LANG=C gpg --gen-key
gpg (GnuPG) 2.2.16; Copyright (C) 2019 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Note: Use "gpg --full-generate-key" for a full featured key generation dialog.
GnuPG needs to construct a user ID to identify your key.
Real name: Kenichiro Nishioka
Email address: xxxxx@xxxxx
You selected this USER-ID:
"Kenichiro Nishioka <xxxxx@xxxxx>"
Change (N)ame, (E)mail, or (O)kay/(Q)uit? O
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
… (略)
Reference
이 문제에 관하여(맥에서 GPG로 열쇠를 만들 때 코드가 엉망이에요.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/kenichiro_nishioka/items/990f8d80902222cf2476텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)