draft-ietf-secsh-x509-00.txt   draft-ietf-secsh-x509-01.txt 
Secure Shell Working Group J. Galbraith Secure Shell Working Group J. Galbraith
Internet-Draft VanDyke Software Internet-Draft VanDyke Software
Expires: September 23, 2005 O. Saarenmaa Expires: October 21, 2005 O. Saarenmaa
F-Secure F-Secure Corporation
March 22, 2005 April 19, 2005
X.509 authentication in SSH2 X.509 authentication in SSH2
draft-ietf-secsh-x509-00.txt draft-ietf-secsh-x509-01.txt
Status of this Memo Status of this Memo
This document is an Internet-Draft and is subject to all provisions By submitting this Internet-Draft, each author represents that any
of Section 3 of RFC 3667. By submitting this Internet-Draft, each applicable patent or other IPR claims of which he or she is aware
author represents that any applicable patent or other IPR claims of have been or will be disclosed, and any of which he or she becomes
which he or she is aware have been or will be disclosed, and any of aware will be disclosed, in accordance with Section 6 of BCP 79.
which he or she become aware will be disclosed, in accordance with
RFC 3668.
Internet-Drafts are working documents of the Internet Engineering Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF), its areas, and its working groups. Note that Task Force (IETF), its areas, and its working groups. Note that
other groups may also distribute working documents as other groups may also distribute working documents as Internet-
Internet-Drafts. Drafts.
Internet-Drafts are draft documents valid for a maximum of six months Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress." material or to cite them other than as "work in progress."
The list of current Internet-Drafts can be accessed at The list of current Internet-Drafts can be accessed at
http://www.ietf.org/ietf/1id-abstracts.txt. http://www.ietf.org/ietf/1id-abstracts.txt.
The list of Internet-Draft Shadow Directories can be accessed at The list of Internet-Draft Shadow Directories can be accessed at
http://www.ietf.org/shadow.html. http://www.ietf.org/shadow.html.
This Internet-Draft will expire on September 23, 2005. This Internet-Draft will expire on October 21, 2005.
Copyright Notice Copyright Notice
Copyright (C) The Internet Society (2005). Copyright (C) The Internet Society (2005).
Abstract Abstract
The X.509 extension specifies how X.509 keys and signatures are used The X.509 extension specifies how X.509 keys and signatures are used
within the SSH2 protocol. within the SSH2 protocol.
Table of Contents Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3
2. x509v3 keys . . . . . . . . . . . . . . . . . . . . . . . . . 4 2. Certificate validation . . . . . . . . . . . . . . . . . . . . 3
2.1 x509v3-sign-rsa2 . . . . . . . . . . . . . . . . . . . . . 4 2.1 Host Authentication . . . . . . . . . . . . . . . . . . . 3
2.2 x509v3-sign-dss2 . . . . . . . . . . . . . . . . . . . . . 4 2.2 User Authentication . . . . . . . . . . . . . . . . . . . 3
2.3 x509v3-sign . . . . . . . . . . . . . . . . . . . . . . . 5 3. Use in SSH2 Protocol . . . . . . . . . . . . . . . . . . . . . 3
3. Implementation Considerations . . . . . . . . . . . . . . . . 6 3.1 x509v3-sign-rsa-sha1 . . . . . . . . . . . . . . . . . . . 4
4. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 7 3.2 x509v3-sign-dss-sha1 . . . . . . . . . . . . . . . . . . . 4
5. Security Considerations . . . . . . . . . . . . . . . . . . . 8 3.3 x509v3-sign . . . . . . . . . . . . . . . . . . . . . . . 4
6. References . . . . . . . . . . . . . . . . . . . . . . . . . . 9 4. Implementation Considerations . . . . . . . . . . . . . . . . 5
6.1 Normative References . . . . . . . . . . . . . . . . . . . 9 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 5
6.2 Informative References . . . . . . . . . . . . . . . . . . 9 6. Security Considerations . . . . . . . . . . . . . . . . . . . 5
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . 10 7. References . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Intellectual Property and Copyright Statements . . . . . . . . 11 7.1 Normative References . . . . . . . . . . . . . . . . . . . 6
7.2 Informative References . . . . . . . . . . . . . . . . . . 6
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . 7
Intellectual Property and Copyright Statements . . . . . . . . 8
1. Introduction 1. Introduction
The SSH protocol can use public keys for both host and user The SSH protocol can use public keys for both host and user
authentication. However, particularly for host authentication, plain authentication. However, particularly for host authentication, plain
public keys lack a good method of verifying that the the key provided public keys lack a good method of verifying that the the key provided
really does belong to the host asserting ownership. X.509v3 really does belong to the host asserting ownership. X.509v3
certificates can address this problem in environments where a PKI certificates can address this problem in environments where a PKI
infrastructure is available. infrastructure is available.
2. x509v3 keys 2. Certificate validation
Implementations are expected to follow the basic certificate and
certificate path validation guidelines described in [RFC3280]. No
SSH specific X.509 certificate extensions are defined in this
document.
2.1 Host Authentication
The client MAY verify that the serverAuth option, as specified in
[RFC3280], is present in the host certificate's extendedKeyUsage
field.
Implementations SHOULD validate the host certificates by matching the
host's fully qualified domain name [RFC1034] against the host
certificate's subjectAltName extensions's dNSName entries. If the
certificate does not contain dNSName subjectAltName extensions, the
(most specific) Common Name field in the certificate Subject is to be
used. This is similiar to host validation in [RFC2818].
2.2 User Authentication
The server MAY verify that the clientAuth option, as specified in
[RFC3280], is present in the user certificate's extendedKeyUsage
field.
No constraints are placed on the presence of user accounts in the
certificates used for user authentication. Their validation is left
as an implementation and configuration detail for the implementors
and deployers.
3. Use in SSH2 Protocol
Key type names are of the form "x509v3-sign*". Keys are encoded as Key type names are of the form "x509v3-sign*". Keys are encoded as
follows: follows:
string key-type-name string key-type-name
string DER encoded x.509v3 certificate data string DER encoded x.509v3 certificate data
2.1 x509v3-sign-rsa2 3.1 x509v3-sign-rsa-sha1
Certificates that use the RSA public key algorithm SHOULD use the Certificates that use the RSA public key algorithm SHOULD use the
"x509v3-sign-rsa2" key-type-name. "x509v3-sign-rsa-sha1" key-type-name.
Signing and verifying using this key format, uses the certificate's Signing and verifying using this key format, uses the certificate's
private key, in exactly the same manner specified for "ssh-rsa" private key, in exactly the same manner specified for "ssh-rsa"
public keys in [I-D.ietf-secsh-transport]. That is to say, signing public keys in [I-D.ietf-secsh-transport]. That is to say, signing
and verifying using this key format is performed according to the and verifying using this key format is performed according to the
RSASSA-PKCS1-v1_5 scheme in [RFC3447] using the SHA-1 hash. RSASSA-PKCS1-v1_5 scheme in [RFC3447] using the SHA-1 hash.
The signature format for x509v3-sign-rsa2 certificates is the The signature format for x509v3-sign-rsa-sha1 certificates is the
"ssh-rsa" signing format specified in [I-D.ietf-secsh-transport]. "ssh-rsa" signing format specified in [I-D.ietf-secsh-transport].
This format is as follows: This format is as follows:
string "ssh-rsa" string "ssh-rsa"
string rsa_signature_blob string rsa_signature_blob
The value for 'rsa_signature_blob' is encoded as a string containing The value for 'rsa_signature_blob' is encoded as a string containing
s (which is an integer, without lengths or padding, unsigned and in s (which is an integer, without lengths or padding, unsigned and in
network byte order). network byte order).
2.2 x509v3-sign-dss2 3.2 x509v3-sign-dss-sha1
Certificates that use the DSA public key algorithm SHOULD use the Certificates that use the DSA public key algorithm SHOULD use the
"x509v3-sign-dss2" key-type-name. "x509v3-sign-dss-sha1" key-type-name.
Signing and verifying using this key format, uses the certificate's Signing and verifying using this key format, uses the certificate's
private key, in exactly the same manner specified for "ssh-dss" private key, in exactly the same manner specified for "ssh-dss"
public keys in [I-D.ietf-secsh-transport]. That is to say, signing public keys in [I-D.ietf-secsh-transport]. That is to say, signing
and verifying using this key format is done according to the Digital and verifying using this key format is done according to the Digital
Signature Standard [FIPS-186-2] using the SHA-1 hash [FIPS-180-2]. Signature Standard [FIPS-186-2] using the SHA-1 hash [FIPS-180-2].
The signature format for x509v3-sign-rsa2 certificates is the The signature format for x509v3-sign-dss-sha1 certificates is the
"ssh-dss" signing format specified in [I-D.ietf-secsh-transport]. "ssh-dss" signing format specified in [I-D.ietf-secsh-transport].
This format is as follows: This format is as follows:
string "ssh-dss" string "ssh-dss"
string dss_signature_blob string dss_signature_blob
The value for 'dss_signature_blob' is encoded as a string containing The value for 'dss_signature_blob' is encoded as a string containing
r followed by s (which are 160-bit integers, without lengths or r followed by s (which are 160-bit integers, without lengths or
padding, unsigned and in network byte order). padding, unsigned and in network byte order).
2.3 x509v3-sign 3.3 x509v3-sign
Certificates that use another algorithm other than the two specified Certificates that use another algorithm other than the two specified
above, MUST use the "x509v3-sign" key-type-name. above, MUST use the "x509v3-sign" key-type-name.
Signing and verifying is done according to the specification Signing and verifying is done according to the specification
associated with the public-key algorithm oid encoded in the associated with the public-key algorithm oid encoded in the
certificate. certificate.
The signature, and description of the signature algorithms is encoded The signature, and description of the signature algorithms is encoded
as specificied in pkcs7 [PKCS.7.1993]. The signature MUST be as specificied in [PKCS.7.1993]. The signature MUST be detached (the
detached (the signed data MUST NOT be includeded in the pkcs7 data. signed data MUST NOT be includeded in the pkcs7 data).
The pkcs7 data is encoded in the SSH protocol as follows: The pkcs7 data is encoded in the SSH protocol as follows:
string "pkcs7" string "pkcs7"
string DER encoded PKCS7 data string DER encoded PKCS7 data
3. Implementation Considerations 4. Implementation Considerations
Implemenations SHOULD be careful when using x.509v3 certificates as Implemenations should be careful when using x.509v3 certificates as
hostkeys. If the peer does not implement the required algorithms to hostkeys. If the peer does not implement the required algorithms to
validate both the x.509v3 certificate and all certificates in the validate both the x.509v3 certificate and all certificates in the
chain, it MUST disconnect. There is no way to renegotiate the key chain, it MUST disconnect. There is no way to renegotiate the key
during key exchange. during key exchange.
This is especially true when using the "x509v3-sign" key type, since This is especially true when using the "x509v3-sign" key type, since
in this case the peer has no knowledge whatsoever of required in this case the peer has no knowledge whatsoever of required
algorithms. algorithms.
4. IANA Considerations 5. IANA Considerations
This document reserves all key types beginning with "x509v3-sign" in This document reserves all key types beginning with "x509v3-sign" in
the SSH publickey type registery. the SSH publickey type registery.
This document specifically adds "x509v3-sign-rsa2", This document specifically adds "x509v3-sign-rsa-sha1", "x509v3-sign-
"x509v3-sign-dss2", and "x509v3-sign" to the SSH publickey type dss-sha1", and "x509v3-sign" to the SSH publickey type registry.
registry.
This document adds "x509v3-sign-rsa" and "x509v3-sign-dss" to the SSH This document adds "x509v3-sign-rsa" and "x509v3-sign-dss" to the SSH
publickey type registry as "poisoned" by historical use. publickey type registry as "poisoned" by historical use.
5. Security Considerations 6. Security Considerations
PKI is an extremely complex topic, and care MUST be taken by both PKI is an extremely complex topic, and care must be taken by both
implementors and deployers to understand the complex interactions implementors and deployers to understand the complex interactions
involved. involved.
Implementations SHOULD carefully validate the certificate, including, Implementations should carefully validate the certificate, including,
but not limitted to, certificate expiration, certificate signature, but not limitted to, certificate expiration, certificate signature,
certificate revokation lists, etc. certificate revokation lists, etc.
For more information, implementors should refer to [ITU.X509.2000] For more information, implementors should refer to [ITU.X509.2000]
and [RFC3820]. and [RFC3280].
6. References
6.1 Normative References 7. References
[I-D.ietf-secsh-transport] 7.1 Normative References
Lonvick, C., "SSH Transport Layer Protocol",
Internet-Draft draft-ietf-secsh-transport-24, March 2005.
[PKCS.7.1993] [RFC3280] Housley, R., Polk, W., Ford, W., and D. Solo, "Internet
RSA Laboratories, "Cryptographic Message Syntax Standard. X.509 Public Key Infrastructure Certificate and
Version 1.5", PKCS 7, November 1993. Certificate Revocation List (CRL) Profile", RFC 3280,
April 2002.
[RFC3447] Jonsson, J. and B. Kaliski, "Public-Key Cryptography [RFC3447] Jonsson, J. and B. Kaliski, "Public-Key Cryptography
Standards (PKCS) #1: RSA Cryptography Specifications Standards (PKCS) #1: RSA Cryptography Specifications
Version 2.1", RFC 3447, February 2003. Version 2.1", RFC 3447, February 2003.
[RFC3820] Tuecke, S., Welch, V., Engert, D., Pearlman, L. and M. [I-D.ietf-secsh-transport]
Thompson, "Internet X.509 Public Key Infrastructure (PKI) Lonvick, C., "SSH Transport Layer Protocol",
Proxy Certificate Profile", RFC 3820, June 2004. draft-ietf-secsh-transport-24 (work in progress),
March 2005.
[ITU.X509.2000] [PKCS.7.1993]
International Telecommunications Union, "Information RSA Laboratories, "Cryptographic Message Syntax Standard.
technology - Open Systems Interconnection - The Directory: Version 1.5", PKCS 7, November 1993.
Public-key and attribute certificate frameworks",
ITU-T Recommendation X.509, ISO Standard 9594-8, March
2000.
[FIPS-180-2] [FIPS-180-2]
National Institute of Standards and Technology, "Secure National Institute of Standards and Technology, "Secure
Hash Standard (SHS)", Federal Information Processing Hash Standard (SHS)", Federal Information Processing
Standards Publication 180-2, August 2002. Standards Publication 180-2, August 2002.
[FIPS-186-2] [FIPS-186-2]
National Institute of Standards and Technology, "Digital National Institute of Standards and Technology, "Digital
Signature Standard (DSS)", Federal Information Processing Signature Standard (DSS)", Federal Information Processing
Standards Publication 186-2, January 2000. Standards Publication 186-2, January 2000.
6.2 Informative References [ITU.X509.2000]
International Telecommunications Union, "Information
technology - Open Systems Interconnection - The Directory:
Public-key and attribute certificate frameworks", ITU-
T Recommendation X.509, ISO Standard 9594-8, March 2000.
7.2 Informative References
[RFC1034] Mockapetris, P., "Domain names - concepts and facilities",
STD 13, RFC 1034, November 1987.
[RFC2818] Rescorla, E., "HTTP Over TLS", RFC 2818, May 2000.
Authors' Addresses Authors' Addresses
Joseph Galbraith Joseph Galbraith
VanDyke Software VanDyke Software
4848 Tramway Ridge Blvd 4848 Tramway Ridge Blvd
Suite 101 Suite 101
Albuquerque, NM 87111 Albuquerque, NM 87111
US US
Phone: +1 505 332 5700 Phone: +1 505 332 5700
Email: galb-list@vandyke.com Email: galb-list@vandyke.com
Oskari Saarenmaa Oskari Saarenmaa
F-Secure F-Secure Corporation
A Street Address Tammasaarenkatu 7
A City, State or Region A Postal Code Helsinki 00180
FI FI
Email: oskari.saarenmaa@f-secure.com Email: oskari.saarenmaa@f-secure.com
Trademark notice
"ssh" is a registered trademark in the United States and/or other
countries.
Intellectual Property Statement Intellectual Property Statement
The IETF takes no position regarding the validity or scope of any The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be on the procedures with respect to rights in RFC documents can be
 End of changes. 

This html diff was produced by rfcdiff 1.23, available from http://www.levkowetz.com/ietf/tools/rfcdiff/