In message <[EMAIL PROTECTED]> on Wed, 28 Jul 2004 11:34:08 +0200, Gerd Schering <[EMAIL PROTECTED]> said:
Schering> Then I extracted the public key, Schering> 1. with openssl: Schering> Schering> -----BEGIN PUBLIC KEY----- Schering> MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQC/mID2ohE8oahTW2/v0uXOKe/9 Schering> 8Lxywo8p0D56prYHlMIUoTMkouoY+DfbF65a1gNQaLCp2izqSPQZvHk9RqESpGkT Schering> df8voe9uONz902xZ9f5fJVgi2ASQvKpEzlZOWVuPPXWqTe1eqQLQ39wAaX/TqA6h Schering> raEdYAWxZUUn3iTv1wIBIw== Schering> -----END PUBLIC KEY----- Schering> Schering> 2. with ssh-keygen: Schering> Schering> ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAv5iA9qIRPKGoU1tv79Llzinv/fC8csKPKdA+e \ Schering> qa2B5TCFKEzJKLqGPg32xeuWtYDUGiwqdos6kj0Gbx5PUahEqRpE3X/L6Hvbjjc/dNsWfX+Xy \ Schering> VYItgEkLyqRM5WTllbjz11qk3tXqkC0N/cAGl/06gOoa2hHWAFsWVFJ94k79c= Schering> (there are no newlines) Schering> Schering> Schering> They look different and the ssh key is not in PEM format. Schering> But besides that by which means is this difference produced? Schering> Or s it only the lack of header-, footer-, newlines and the Schering> "ssh-rsa" which produces a different base64 encoding? The difference is in structure. In the PEM form, there are some codes around the RSA numbers that indicate what they are (ASN.1 structure, DER encoding, if that says anything). In the SSH form, the BASE64 stuff includes a repeat of "ssh-rsa", followed by the RSA numbers e and n, with no extra structure information. Schering> B.t.w In PEM format, are the newlines part of the Schering> base64-encoded data, or get the data encoded first? The data is encoded first, the newlines are added on and are basically part of the PEM format. BASE64 can be all in one line if you want. ----- Please consider sponsoring my work on free software. See http://www.free.lp.se/sponsoring.html for details. -- Richard Levitte \ Tunnlandsvägen 52 \ [EMAIL PROTECTED] [EMAIL PROTECTED] \ S-168 36 BROMMA \ T: +46-708-26 53 44 \ SWEDEN \ Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED] Member of the OpenSSL development team: http://www.openssl.org/ ----------------------------------------------------------------- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]