forked from git/git
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error writing public keyring '[keyboxd]' #5105
Comments
I cannot reproduce this issue over here: $ git version
git version 2.46.0.windows.1
$ gpg --version
gpg (GnuPG) 2.4.5-unknown
libgcrypt 1.9.4-unknown
Copyright (C) 2024 g10 Code GmbH
License GNU GPL-3.0-or-later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: /c/Users/me/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
$ gpg --full-generate-key
gpg (GnuPG) 2.4.5-unknown; Copyright (C) 2024 g10 Code GmbH
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Please select what kind of key you want:
(1) RSA and RSA
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
(9) ECC (sign and encrypt) *default*
(10) ECC (sign only)
(14) Existing key from card
Your selection? 1
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (3072) 1024
Requested keysize is 1024 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0) 40y
Key expires at Mon Aug 4 13:39:25 2064 WEDT
Is this correct? (y/N) y
GnuPG needs to construct a user ID to identify your key.
Real name: x123
Email address:
Comment:
You selected this USER-ID:
"x123"
Change (N)ame, (C)omment, (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.
gpg: directory '/c/Users/me/.gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/c/Users/me/.gnupg/openpgp-revocs.d/327A9793FC3A51457BDB9DC6A27AA3D921C8A367.rev'
public and secret key created and signed.
pub rsa1024 2024-08-14 [SC] [expires: 2064-08-04]
327A9793FC3A51457BDB9DC6A27AA3D921C8A367
uid x123
sub rsa1024 2024-08-14 [E] [expires: 2064-08-04] I assume VDI means something like a virtual machine? It is possible, of course, that there is a problem specific to generating the random bytes, but I suspect a different |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi team,
I am trying to create and configure Github GPG key on my VDI using Git Bash,
While creating new GPG key, I am getting an Error:
"error writing public keyring '[keyboxd]': SQL library used incorrectly
Key generation failed: SQL library used incorrectly"
Other Git Support Ticket: https://support.github.com/ticket/personal/0/2931732
Issue Screenshot:
please help thanks
Setup
64-bit?
Window Server 2016 - 64 Bit
defaults?
Yes Default
to the issue you're seeing?
yes
Details
Bash
Minimal, Complete, and Verifiable example
this will help us understand the issue.
execute: gpg --full-generate-key
select 1, enter
add 1024 , enter
Exipry : 40y
Expect key generate for git configuration
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: Note: database_open 134217901 waiting for lock (held by 2056) ...
gpg: Note: database_open 134217901 waiting for lock (held by 2056) ...
gpg: Note: database_open 134217901 waiting for lock (held by 2056) ...
gpg: Note: database_open 134217901 waiting for lock (held by 2056) ...
gpg: Note: database_open 134217901 waiting for lock (held by 2056) ...
gpg: keydb_search failed: Connection timed out
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: Note: database_open 134217901 waiting for lock (held by 2056) ...
gpg: Note: database_open 134217901 waiting for lock (held by 2056) ...
gpg: Note: database_open 134217901 waiting for lock (held by 2056) ...
gpg: Note: database_open 134217901 waiting for lock (held by 2056) ...
gpg: Note: database_open 134217901 waiting for lock (held by 2056) ...
gpg: keydb_search failed: Connection timed out
gpg: error writing public keyring '[keyboxd]': SQL library used incorrectly
Key generation failed: SQL library used incorrectly
URL to that repository to help us with testing?
N/A
The text was updated successfully, but these errors were encountered: