idnits 2.17.1 draft-ietf-secsh-publickeyfile-03.txt: Checking boilerplate required by RFC 5378 and the IETF Trust (see https://trustee.ietf.org/license-info): ---------------------------------------------------------------------------- ** Looks like you're using RFC 2026 boilerplate. This must be updated to follow RFC 3978/3979, as updated by RFC 4748. Checking nits according to https://www.ietf.org/id-info/1id-guidelines.txt: ---------------------------------------------------------------------------- == No 'Intended status' indicated for this document; assuming Proposed Standard Checking nits according to https://www.ietf.org/id-info/checklist : ---------------------------------------------------------------------------- ** The document seems to lack a Security Considerations section. ** The document seems to lack an IANA Considerations section. (See Section 2.2 of https://www.ietf.org/id-info/checklist for how to handle the case when there are no actions for IANA.) ** The document seems to lack separate sections for Informative/Normative References. All references will be assumed normative when checking for downward references. ** There are 13 instances of too long lines in the document, the longest one being 2 characters in excess of 72. ** There are 25 instances of lines with control characters in the document. ** The document seems to lack a both a reference to RFC 2119 and the recommended RFC 2119 boilerplate, even if it appears to use RFC 2119 keywords. RFC 2119 keyword, line 81: '... in the file MUST NOT be longer than...' RFC 2119 keyword, line 86: '...lementations are REQUIRED to read file...' RFC 2119 keyword, line 95: '...forming key file MUST be a begin marke...' RFC 2119 keyword, line 100: '...forming key file MUST be a end marker,...' RFC 2119 keyword, line 112: '... The Header-tag MUST NOT be more than...' (9 more instances...) Miscellaneous warnings: ---------------------------------------------------------------------------- == The copyright year in the RFC 3978 Section 5.4 Copyright Line does not match the current year ** The document contains RFC2119-like boilerplate, but doesn't seem to mention RFC 2119. The boilerplate contains a reference [4], but that reference does not seem to mention RFC 2119 either. -- The document seems to lack a disclaimer for pre-RFC5378 work, but may have content which was first submitted before 10 November 2008. If you have contacted all the original authors and they are all willing to grant the BCP78 rights to the IETF Trust, then this is fine, and you can ignore this comment. If not, you may need to add the pre-RFC5378 disclaimer. (See the Legal Provisions document at https://trustee.ietf.org/license-info for more information.) -- The document date (October 16, 2002) is 7862 days in the past. Is this intentional? Checking references for intended status: Proposed Standard ---------------------------------------------------------------------------- (See RFCs 3967 and 4897 for information about using normative references to lower-maturity documents in RFCs) == Unused Reference: '3' is defined on line 213, but no explicit reference was found in the text -- Possible downref: Non-RFC (?) normative reference: ref. '1' -- Possible downref: Non-RFC (?) normative reference: ref. '2' -- Possible downref: Non-RFC (?) normative reference: ref. '3' -- Possible downref: Non-RFC (?) normative reference: ref. '4' -- Possible downref: Non-RFC (?) normative reference: ref. '5' Summary: 8 errors (**), 0 flaws (~~), 3 warnings (==), 7 comments (--). Run idnits with the --verbose option for more detailed information about the items above. -------------------------------------------------------------------------------- 2 Secure Shell Working Group J. Galbraith 3 Internet-Draft VanDyke Software 4 Expires: April 16, 2003 R. Thayer 5 The Tillerman Group 6 October 16, 2002 8 SSH Public Key File Format 9 draft-ietf-secsh-publickeyfile-03.txt 11 Status of this Memo 13 This document is an Internet-Draft and is in full conformance with 14 all provisions of Section 10 of RFC2026. 16 Internet-Drafts are working documents of the Internet Engineering 17 Task Force (IETF), its areas, and its working groups. Note that 18 other groups may also distribute working documents as Internet- 19 Drafts. 21 Internet-Drafts are draft documents valid for a maximum of six months 22 and may be updated, replaced, or obsoleted by other documents at any 23 time. It is inappropriate to use Internet-Drafts as reference 24 material or to cite them other than as "work in progress." 26 The list of current Internet-Drafts can be accessed at http:// 27 www.ietf.org/ietf/1id-abstracts.txt. 29 The list of Internet-Draft Shadow Directories can be accessed at 30 http://www.ietf.org/shadow.html. 32 This Internet-Draft will expire on April 16, 2003. 34 Copyright Notice 36 Copyright (C) The Internet Society (2002). All Rights Reserved. 38 Abstract 40 This document formally documents the existing public key file format 41 in use for exchanging public keys between different SSH 42 implementations. 44 Table of Contents 46 1. Conventions used in this document . . . . . . . . . . . . . 3 47 2. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 4 48 3. Key File Format . . . . . . . . . . . . . . . . . . . . . . 5 49 3.1 Line termination Characters . . . . . . . . . . . . . . . . 5 50 3.2 Begin and end markers . . . . . . . . . . . . . . . . . . . 5 51 3.3 Key File Header . . . . . . . . . . . . . . . . . . . . . . 5 52 3.3.1 Subject Header . . . . . . . . . . . . . . . . . . . . . . . 6 53 3.3.2 Comment Header . . . . . . . . . . . . . . . . . . . . . . . 6 54 3.4 Public Key File Body . . . . . . . . . . . . . . . . . . . . 6 55 3.5 Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 7 56 References . . . . . . . . . . . . . . . . . . . . . . . . . 8 57 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . 8 58 Full Copyright Statement . . . . . . . . . . . . . . . . . . 9 60 1. Conventions used in this document 62 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 63 "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this 64 document are to be interpreted as described in [4]. 66 2. Introduction 68 In order to use public key authentication, public keys must be 69 exchanged between client and server. This document formally 70 describes the existing public key file format, with few exceptions. 72 Where this document departs from current practice, it also suggests a 73 mechanism for backwards compatibility. 75 3. Key File Format 77 SSH implementations must share public key files between the client 78 and the server in order interoperate. 80 A key file is a text file, containing a sequence of lines. Each line 81 in the file MUST NOT be longer than 72 bytes. 83 3.1 Line termination Characters 85 In order to achieve the goal of being able to exchange public key 86 files between servers, implementations are REQUIRED to read files 87 using any of the common line termination sequence, , or 88 . 90 Implementations may generate files using which ever line termination 91 convention is most convenient 93 3.2 Begin and end markers 95 The first line of a conforming key file MUST be a begin marker, which 96 is the literal text: 98 ---- BEGIN SSH2 PUBLIC KEY ---- 100 The last line of a conforming key file MUST be a end marker, which is 101 the literal text: 103 ---- END SSH2 PUBLIC KEY ---- 105 3.3 Key File Header 107 The key file header section consists of multiple RFC822 - style 108 header fields. Each field is a line of the following format: 110 Header-tag ':' ' ' Header-value 112 The Header-tag MUST NOT be more than 64 bytes. The Header-value MUST 113 NOT be more than 1024 bytes. Each line in the header MUST NOT be 114 more than 72 bytes. 116 A line is continued if the last character in the line is a '\'. If 117 the last character of a line is a '\', then the logical contents of 118 the line is formed by removing the '\' and appending the contents of 119 the next line. 121 The Header-tag MUST be US-ASCII. The Header-value MUST be encoded in 122 UTF-8. [2] 123 A line that is not a continuation line that has no ':' in it is 124 assumed to be the first line of the base 64 encoded body (Section 8) 126 Compliant implementations MUST ignore unrecognized header fields. 127 Implementations SHOULD preserve unrecognized header fields when 128 manipulating the key file. 130 Existing implementations may not correctly handle unrecognized 131 fields. During a transition period, implementations SHOULD generate 132 key file headers that contain only a Subject field followed by a 133 Comment field. 135 3.3.1 Subject Header 137 This field currently is used to store the login-name that the key was 138 generated under. For example: 140 Subject: user 142 3.3.2 Comment Header 144 Contain a user specified comment which will be displayed when using 145 the key. 147 It is suggested that this field default to user@hostname for the user 148 and machine used to generate the key. For example: 150 Comment: user@mycompany.com 152 Currently, common practice is to quote the Header-value of the 153 Comment, and some existing implementations fail if these quotes are 154 omitted. 156 Compliant implementations MUST function correctly if the quotes are 157 omitted. 159 During an interim period implementations MAY include the quotes. If 160 the first and last characters of the Header-value are matching 161 quotes, implementations SHOULD remove them before using the value. 163 3.4 Public Key File Body 165 The body of a public key file consists of the public key blob as 166 described in the SSH transport draft [1], section 4.6, "Public Key 167 Algorithms", encoded in base 64 as specified in RFC-2045, section 168 6.8, "Base64 Content-Transfer-Encoding". [5] 170 As with all other lines, each line in the body MUST NOT be longer 171 than 72 characters. 173 3.5 Examples 175 The following are some example public key files that are compliant: 177 ---- BEGIN SSH2 PUBLIC KEY ---- 178 Comment: "1024-bit RSA, converted from OpenSSH by galb@test1" 179 AAAAB3NzaC1yc2EAAAABIwAAAIEA1on8gxCGJJWSRT4uOrR13mUaUk0hRf4RzxSZ1zRbYY 180 Fw8pfGesIFoEuVth4HKyF8k1y4mRUnYHP1XNMNMJl1JcEArC2asV8sHf6zSPVffozZ5TT4 181 SfsUu/iKy9lUcCfXzwre4WWZSXXcPff+EHtWshahu3WzBdnGxm5Xoi89zcE= 182 ---- END SSH2 PUBLIC KEY ---- 184 ---- BEGIN SSH2 PUBLIC KEY ---- 185 Comment: DSA Public Key for use with MyIsp 186 AAAAB3NzaC1kc3MAAACBAPY8ZOHY2yFSJA6XYC9HRwNHxaehvx5wOJ0rzZdzoSOXxbETW6 187 ToHv8D1UJ/z+zHo9Fiko5XybZnDIaBDHtblQ+Yp7StxyltHnXF1YLfKD1G4T6JYrdHYI14 188 Om1eg9e4NnCRleaqoZPF3UGfZia6bXrGTQf3gJq2e7Yisk/gF+1VAAAAFQDb8D5cvwHWTZ 189 DPfX0D2s9Rd7NBvQAAAIEAlN92+Bb7D4KLYk3IwRbXblwXdkPggA4pfdtW9vGfJ0/RHd+N 190 jB4eo1D+0dix6tXwYGN7PKS5R/FXPNwxHPapcj9uL1Jn2AWQ2dsknf+i/FAAvioUPkmdMc 191 0zuWoSOEsSNhVDtX3WdvVcGcBq9cetzrtOKWOocJmJ80qadxTRHtUAAACBAN7CY+KKv1gH 192 pRzFwdQm7HK9bb1LAo2KwaoXnadFgeptNBQeSXG1vO+JsvphVMBJc9HSn24VYtYtsMu74q 193 XviYjziVucWKjjKEb11juqnF0GDlB3VVmxHLmxnAz643WK42Z7dLM5sY29ouezv4Xz2PuM 194 ch5VGPP+CDqzCM4loWgV 195 ---- END SSH2 PUBLIC KEY ---- 197 ---- BEGIN SSH2 PUBLIC KEY ---- 198 Subject: galb 199 Comment: 1024-bit rsa, created by galb@shimi Mon Jan 15 08:31:24 2001 200 AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt459 201 6k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6 202 NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0= 203 ---- END SSH2 PUBLIC KEY ---- 205 References 207 [1] Rinne, T., Ylonen, T., Kivinen, T., Saarinen, M. and S. 208 Lehtinen, "SSH Protocol Transport Protocol", September 2002. 210 [2] Yergeau, F., "UTF-8, a Transformation Format of Unicode and ISO 211 10646", October 1996. 213 [3] Bradner, S., "The Internet Standards Process -- Revision 3", 214 October 1996. 216 [4] Bradner, S., "Key words for use in RFCs to Indicate Requirement 217 Levels", March 1997. 219 [5] Freed and Borenstein, "Multipurpose Internet Mail Extensions 220 (MIME) Part One: Format of Internet Message Bodies", November 221 1996. 223 Authors' Addresses 225 Joseph Galbraith 226 VanDyke Software 227 4848 Tramway Ridge Blvd 228 Suite 101 229 Albuquerque, NM 87111 230 US 232 Phone: +1 505 332 5700 233 EMail: galb-list@vandyke.com 235 Rodney Thayer 236 The Tillerman Group 237 370 Altair Way, PMB 321 238 Sunnyvale, CA 94086 240 Phone: +1 408 757 9693 241 EMail: rodney@tillerman.to 243 Full Copyright Statement 245 Copyright (C) The Internet Society (2002). All Rights Reserved. 247 This document and translations of it may be copied and furnished to 248 others, and derivative works that comment on or otherwise explain it 249 or assist in its implementation may be prepared, copied, published 250 and distributed, in whole or in part, without restriction of any 251 kind, provided that the above copyright notice and this paragraph are 252 included on all such copies and derivative works. However, this 253 document itself may not be modified in any way, such as by removing 254 the copyright notice or references to the Internet Society or other 255 Internet organizations, except as needed for the purpose of 256 developing Internet standards in which case the procedures for 257 copyrights defined in the Internet Standards process must be 258 followed, or as required to translate it into languages other than 259 English. 261 The limited permissions granted above are perpetual and will not be 262 revoked by the Internet Society or its successors or assigns. 264 This document and the information contained herein is provided on an 265 "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING 266 TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING 267 BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION 268 HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF 269 MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 271 Acknowledgement 273 Funding for the RFC Editor function is currently provided by the 274 Internet Society.