Re: [Javamail-crypto-devel] error using OpenPGP
Status: Beta
Brought to you by:
akp
From: allen p. <al...@su...> - 2007-03-01 04:38:15
|
Hi. You need to run against the keyring file, not the exported key. Try=20 pubring.gpg and secring.gpg. -allen On Wed, Feb 28, 2007, 05:22, x x <cc...@wp...> wrote >Hello. >I have this error while trying to run encrypt message example. > >java.security.cert.CertificateException: Error while reading keyring -=20 cryptix.pki.KeyBundleException: cryptix.openpgp.PGPFatalDataFormatException= :=20 Invalid packet type. >=09at=20 cryptix.openpgp.provider.PGPKeyRingKeyStore.engineLoad(PGPKeyRingKeyStore.j= a va:398) >=09at java.security.KeyStore.load(Unknown Source) >=09at=20 net.suberic.crypto.cryptix.CryptixKeyManager.loadPublicKeystore(CryptixKeyM= a nager.java:63) >=09at=20 net.suberic.crypto.examples.EncryptMessage.main(EncryptMessage.java:52) > >the line 52 is: > >pgpKeyMgr.loadPublicKeystore(new FileInputStream(new=20 File("c:/majkers.pkr")), null); > >and it is content of majkers.pkr file: > >-----BEGIN PGP PUBLIC KEY BLOCK----- >Version: 2.6 > >mQCPA0XgVZgBigEEAJ8HFZbIvX88powtzr/KAnNw9xjYksRMrYbprrZ+FOK31oUV >KbRPo1n6pUz1JR0AyMENuPWnKYznj74XYinsBZowC/fFu9eHJ38tUGPkBhMD1mZA >B7ByLuV0EdGKtxHLI1UH/mRFy0akIAYU0ytpfwYfZObXzZ1vK9n1GKoDv41DABEB >AAG0F21hamtlcnMgPG1hamtlcnNAbzIucGw+iQCVAwUQReBVmNn1GKoDv41DAQHb >RwP9Eois+XUap4fiV+7juCNz0MVzv+F96suh9swsn2n+EUzdtU5xhHH+lnY+CRvz >aXman8ib3Jm9ZPq1e4NmmI8SEPNvBR42GadXVVfGFU9os720sYrYYqoOARlD5ZFa >JmQyZHiJz+JfL/U/wOH69TrO7hrjAwHrL52SUoxoGnyV2vQ=3D >=3D+xtk >-----END PGP PUBLIC KEY BLOCK----- > > >so what is wrong??? please help :/ > >---------------------------------------------------- >Zobaczcie, jak jedno marzenie mo?e zmieni? wszystko.=20 >Zdobywca trzech Z?otych Glob=F3w i o?miu nominacji do Oscara=20 >- musical "Dreamgirls" w kinach ju? od 2 marca. >http://klik.wp.pl/?adr=3Dhttp%3A%2F%2Fadv.reklama.wp.pl%2Fas%2Fcos111.html= &si d=3D1040 > > > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share=20 your >opinions on IT & business topics through brief surveys-and earn cash >http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DD= EVDEV >_______________________________________________ >Javamail-crypto-devel mailing list >Jav...@li... >https://lists.sourceforge.net/lists/listinfo/javamail-crypto-devel > > |