We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 403296c commit df7c172Copy full SHA for df7c172
src/core/operations/PGP.js
@@ -90,13 +90,16 @@ const PGP = {
90
try {
91
const key = await promisify(kbpgp.KeyManager.import_from_armored_pgp)({
92
armored: privateKey,
93
+ opts: {
94
+ "no_check_keys": true
95
+ }
96
});
- if (key.is_pgp_locked() && passphrase) {
97
+ if (key.is_pgp_locked()) {
98
if (passphrase) {
99
await promisify(key.unlock_pgp.bind(key))({
100
passphrase
101
- } else if (!passphrase) {
102
+ } else {
103
throw "Did not provide passphrase with locked private key.";
104
}
105
@@ -118,6 +121,9 @@ const PGP = {
118
121
119
122
120
123
armored: publicKey,
124
125
126
127
128
return key;
129
} catch (err) {
0 commit comments