kbpgp icon indicating copy to clipboard operation
kbpgp copied to clipboard

No packets; cannot extract a key

Open ki9us opened this issue 9 years ago • 0 comments

I get this error:

No packets; cannot extract a key

when running KeyManager.import_from_armored_pgp(). What does it mean?

<script src="/kbpgp-2.0.8.min.js"></script>
<script class='pgp' type="text/javascript">
    var pub_key = "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: SKS 1.1.5\nComment: Hostname: pgp.mit.edu\nmQINBFXhKjYBEAC5UAC9WBch1ZKfwtfEWEtwtVz5j2lTAoQrLQwvwCwjPhtNvvyKaaDVydrJ\nlroP4qsAfbL/3rMCo27w4qOHvm4plrC24lPB9p1Vk+ysKTbs2/zRXGHAPxi1+8YqpPMS92kJ\nxpw ... AK/agnS0=\n=oknQ\n-----END PGP PUBLIC KEY BLOCK-----";
    kbpgp.KeyManager.import_from_armored_pgp({
        armored: pub_key
    }, function(err, keith) {
        if (err) { alert(err); } // "No packets; cannot extract a key"
    });

ki9us avatar Apr 11 '16 21:04 ki9us