Я использую gpg на ubuntu, и у меня есть два ключа, которые я хочу расшифровать сообщение с помощью моего второго закрытого ключа, но gpg использует первый ключ для дешифрования. Как я указываю закрытый ключ для расшифровки? Спасибо!
Вы должны иметь возможность использовать --keyring <file> и --no-default-keyring.
Из справочной страницы gpg:
--keyring file
Add file to the current list of keyrings. If file begins with a tilde and a slash, these are replaced by the $HOME directory. If the filename does not contain a slash, it is assumed to
be in the GnuPG home directory ("~/.gnupg" if --homedir or $GNUPGHOME is not used).
Note that this adds a keyring to the current list. If the intent is to use the specified keyring alone, use --keyring along with --no-default-keyring.
Кажется странным, что это было бы необходимо. Возможно, зашифрованный файл не указывает получателя правильно или вообще? Если это анонимно, вам может понадобиться также использовать --try-all-secrets.
Вы должны иметь возможность использовать --keyring <file> и --no-default-keyring.
Из справочной страницы gpg:
--keyring file
Add file to the current list of keyrings. If file begins with a tilde and a slash, these are replaced by the $HOME directory. If the filename does not contain a slash, it is assumed to
be in the GnuPG home directory ("~/.gnupg" if --homedir or $GNUPGHOME is not used).
Note that this adds a keyring to the current list. If the intent is to use the specified keyring alone, use --keyring along with --no-default-keyring.
Кажется странным, что это было бы необходимо. Возможно, зашифрованный файл не указывает получателя правильно или вообще? Если это анонимно, вам может понадобиться также использовать --try-all-secrets.
Вы должны иметь возможность использовать --keyring <file> и --no-default-keyring.
Из справочной страницы gpg:
--keyring file
Add file to the current list of keyrings. If file begins with a tilde and a slash, these are replaced by the $HOME directory. If the filename does not contain a slash, it is assumed to
be in the GnuPG home directory ("~/.gnupg" if --homedir or $GNUPGHOME is not used).
Note that this adds a keyring to the current list. If the intent is to use the specified keyring alone, use --keyring along with --no-default-keyring.
Кажется странным, что это было бы необходимо. Возможно, зашифрованный файл не указывает получателя правильно или вообще? Если это анонимно, вам может понадобиться также использовать --try-all-secrets.
Вы должны иметь возможность использовать --keyring <file> и --no-default-keyring.
Из справочной страницы gpg:
--keyring file
Add file to the current list of keyrings. If file begins with a tilde and a slash, these are replaced by the $HOME directory. If the filename does not contain a slash, it is assumed to
be in the GnuPG home directory ("~/.gnupg" if --homedir or $GNUPGHOME is not used).
Note that this adds a keyring to the current list. If the intent is to use the specified keyring alone, use --keyring along with --no-default-keyring.
Кажется странным, что это было бы необходимо. Возможно, зашифрованный файл не указывает получателя правильно или вообще? Если это анонимно, вам может понадобиться также использовать --try-all-secrets.