[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [iaik-ssl] PrivateKey class in JCE Applet Edition



Thanks, but How do I get the String out in the following format ?


-----BEGIN ENCRYPTED PRIVATE KEY-----\n
..
chars taken out for security reasons\n
..
-----END ENCRYPTED PRIVATE KEY-----\n


Regards

Dave
-----Original Message-----
From: Andreas Sterbenz [mailto:Andreas.Sterbenz@iaik.tu-graz.ac.at]
Sent: 31 August 1999 12:45
To: Dave Streeter - IICL Email; 'iaik-jce@iaik.tu-graz.ac.at'
Subject: Re: [iaik-ssl] PrivateKey class in JCE Applet Edition


If it does not say ENCRYPTED the reason is that it is not an encrypted
key! If you want encrypt a private key use
iaik.pkcs.pkcs8.EncryptedPrivateKeyInfo.

 Andreas Sterbenz              mailto:Andreas.Sterbenz@iaik.tu-graz.ac.at


-----Ursprüngliche Nachricht-----
Von: Dave Streeter - IICL Email <dave.streeter@iicl.co.uk>
An: Andreas Sterbenz <Andreas.Sterbenz@iaik.tu-graz.ac.at>;
'iaik-jce@iaik.tu-graz.ac.at' <iaik-ssl@iaik.tu-graz.ac.at>
Gesendet: Dienstag, 31. August 1999 13:08
Betreff: RE: [iaik-ssl] PrivateKey class in JCE Applet Edition


> Util.toPemString() generates:
>
>
> -----BEGIN RSA PRIVATE KEY-----\n
> ..
> chars taken out for security reasons\n
> ..
> -----END RSA PRIVATE KEY-----\n
>
>
> I need the format to be:
>
>
> -----BEGIN ENCRYPTED PRIVATE KEY-----\n
> ..
> chars taken out for security reasons\n
> ..
> -----END ENCRYPTED PRIVATE KEY-----\n
>
>
> To allow VisiBroker/SSL to 'load' the private key....
> I have tried the obvious replacing RSA with ENCRYPTED...but (not
> surprisingly) it didn't work!
>
> Cheers
>
> Dave
> -----Original Message-----
> From: Andreas Sterbenz [mailto:Andreas.Sterbenz@iaik.tu-graz.ac.at]
> Sent: 31 August 1999 12:04
> To: Dave Streeter - IICL Email; 'iaik-jce@iaik.tu-graz.ac.at'
> Subject: Re: [iaik-ssl] PrivateKey class in JCE Applet Edition
>
>
> What is "not the same" in the String generated by Util.toPemString()?
>
>  Andreas Sterbenz
mailto:Andreas.Sterbenz@iaik.tu-graz.ac.at
>
>
> -----Ursprüngliche Nachricht-----
> Von: Dave Streeter - IICL Email <dave.streeter@iicl.co.uk>
> An: 'iaik-jce@iaik.tu-graz.ac.at' <iaik-ssl@iaik.tu-graz.ac.at>
> Gesendet: Dienstag, 31. August 1999 12:07
> Betreff: [iaik-ssl] PrivateKey class in JCE Applet Edition
>
>
> > Can anybody please let me know how to generate the following String
> from the
> > PrivateKey class:
> >
> >  "-----BEGIN ENCRYPTED PRIVATE KEY-----\n"+
> >
"MIICmDAaBgkqhkiG9w0BBQMwDQQIucbn+/VNqXsCAQUEggJ4OZ/KqwCzKriHPnBr\n"+
> >
"l0q7cWr/f+P2944vWCs/jFdYfWSX8zy+RZQY8BpaR6yUFZf1vicmGjjnwyKYEDVJ\n"+
> >
"KNjqPp/cO+wzFEyZ28l5C9frCWy/9u3hkbzrfwThkYKi1Z5X8v/G7DSs+Mexn9dg\n"+
> >
"ECZVRjmzhsKWbogYSC2sKBU6wewHWWGu5zidBU2jt+7OGUjrGlNR9AUjwLoHRlxD\n"+
> >
"WDxDNu0c+S0nGP+QqTP/u++/v5eiv94WU++xg60BnZOoHBLaDE+UCwz/L1U9iny9\n"+
> >
"OWEw7fsxavXvRfVlHIa6zPZJMY66AGqK0QKqnmAlab8mMf2fwKjBBE6bYWajKbgA\n"+
> >
"wJELiJ60G6ojQHjRnDzhljnukMi0vYVjes3ZnX72f98FoDWoxk92vMWR0rcANhDz\n"+
> >
"jBM1NzjJGGucDafy2xyU8a9uhWN+YZSp8Qq9S1EC90LeADWs/9J6GSmUxTnNvGI/\n"+
> >
"Hqa0XWRAe8brKadVBXj1246asfSwDjrm4DDUeAeKW56Tx7pF4PPsNkanxL35KDCF\n"+
> >
"cJQrs2Xrv1NOo6i7Rw70QuO/aMvIlyArqYsdwPSTiBnZTNjEbjBALovezw6He4Gm\n"+
> >
"25TjlLRxsEb67qBML0o5McsXe758bnJp9wK9PATX0Tp7BYSWrxinZuHRinhmrUFP\n"+
> >
"tYfpXd3lLoil8gILxboWvEiqQoLH824h2j1MlhfitQvh4PKaDwsD1cdMamOkpi75\n"+
> >
"GfzTYMK3HnJvRYdZsRerpjcF3Kb59lj5vuhbqNLlaHsU0mzpECvd0QDooODiWC04\n"+
> >  "t+1v8PiV7k2p3Izlzbj8IDSiyCHgorvn0ZVZg33KA3VREGok7hI3vSSbsAU=\n"+
> >  "-----END ENCRYPTED PRIVATE KEY-----\n"
> >
> > I can produce the Pem string using the Util.toPemString() method but
it
> is
> > not the same!
> >
> > Cheers.....Dave
> >
>
>
>
>
>



--
Mailinglist-archive at http://jcewww.iaik.tu-graz.ac.at/mailarchive/iaik-ssl/maillist.html

To unsubscribe send an email to listserv@iaik.tu-graz.ac.at with the folowing content: UNSUBSCRIBE iaik-ssl