epp-client-base 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +5 -0
- data/Gemfile +6 -0
- data/MIT-LICENSE +19 -0
- data/README +5 -0
- data/Rakefile +37 -0
- data/epp-client-base.gemspec +54 -0
- data/lib/epp-client/base.rb +113 -0
- data/lib/epp-client/connection.rb +78 -0
- data/lib/epp-client/contact.rb +398 -0
- data/lib/epp-client/domain.rb +394 -0
- data/lib/epp-client/exceptions.rb +21 -0
- data/lib/epp-client/poll.rb +69 -0
- data/lib/epp-client/session.rb +56 -0
- data/lib/epp-client/ssl.rb +46 -0
- data/lib/epp-client/version.rb +3 -0
- data/lib/epp-client/xml.rb +150 -0
- data/vendor/ietf/contact-1.0.xsd +388 -0
- data/vendor/ietf/domain-1.0.xsd +430 -0
- data/vendor/ietf/epp-1.0.xsd +444 -0
- data/vendor/ietf/eppcom-1.0.xsd +105 -0
- data/vendor/ietf/host-1.0.xsd +240 -0
- data/vendor/ietf/rfc4310.txt +1235 -0
- data/vendor/ietf/rfc5730.txt +3755 -0
- data/vendor/ietf/rfc5731.txt +2467 -0
- data/vendor/ietf/rfc5732.txt +1627 -0
- data/vendor/ietf/rfc5733.txt +2299 -0
- data/vendor/ietf/rfc5734.txt +731 -0
- data/vendor/ietf/rfc5910.txt +2019 -0
- metadata +143 -0
@@ -0,0 +1,731 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
Network Working Group S. Hollenbeck
|
8
|
+
Request for Comments: 5734 VeriSign, Inc.
|
9
|
+
STD: 69 August 2009
|
10
|
+
Obsoletes: 4934
|
11
|
+
Category: Standards Track
|
12
|
+
|
13
|
+
|
14
|
+
Extensible Provisioning Protocol (EPP) Transport over TCP
|
15
|
+
|
16
|
+
Abstract
|
17
|
+
|
18
|
+
This document describes how an Extensible Provisioning Protocol (EPP)
|
19
|
+
session is mapped onto a single Transmission Control Protocol (TCP)
|
20
|
+
connection. This mapping requires use of the Transport Layer
|
21
|
+
Security (TLS) protocol to protect information exchanged between an
|
22
|
+
EPP client and an EPP server. This document obsoletes RFC 4934.
|
23
|
+
|
24
|
+
Status of This Memo
|
25
|
+
|
26
|
+
This document specifies an Internet standards track protocol for the
|
27
|
+
Internet community, and requests discussion and suggestions for
|
28
|
+
improvements. Please refer to the current edition of the "Internet
|
29
|
+
Official Protocol Standards" (STD 1) for the standardization state
|
30
|
+
and status of this protocol. Distribution of this memo is unlimited.
|
31
|
+
|
32
|
+
Copyright Notice
|
33
|
+
|
34
|
+
Copyright (c) 2009 IETF Trust and the persons identified as the
|
35
|
+
document authors. All rights reserved.
|
36
|
+
|
37
|
+
This document is subject to BCP 78 and the IETF Trust's Legal
|
38
|
+
Provisions Relating to IETF Documents in effect on the date of
|
39
|
+
publication of this document (http://trustee.ietf.org/license-info).
|
40
|
+
Please review these documents carefully, as they describe your rights
|
41
|
+
and restrictions with respect to this document.
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
Hollenbeck Standards Track [Page 1]
|
59
|
+
|
60
|
+
RFC 5734 EPP TCP Transport August 2009
|
61
|
+
|
62
|
+
|
63
|
+
Table of Contents
|
64
|
+
|
65
|
+
1. Introduction ....................................................2
|
66
|
+
1.1. Conventions Used in This Document ..........................2
|
67
|
+
2. Session Management ..............................................2
|
68
|
+
3. Message Exchange ................................................3
|
69
|
+
4. Data Unit Format ................................................6
|
70
|
+
5. Transport Considerations ........................................6
|
71
|
+
6. Internationalization Considerations .............................7
|
72
|
+
7. IANA Considerations .............................................7
|
73
|
+
8. Security Considerations .........................................7
|
74
|
+
9. TLS Usage Profile ...............................................8
|
75
|
+
10. Acknowledgements ..............................................11
|
76
|
+
11. References ....................................................11
|
77
|
+
11.1. Normative References .....................................11
|
78
|
+
11.2. Informative References ...................................12
|
79
|
+
Appendix A. Changes from RFC 4934 ................................13
|
80
|
+
|
81
|
+
1. Introduction
|
82
|
+
|
83
|
+
This document describes how the Extensible Provisioning Protocol
|
84
|
+
(EPP) is mapped onto a single client-server TCP connection. Security
|
85
|
+
services beyond those defined in EPP are provided by the Transport
|
86
|
+
Layer Security (TLS) Protocol [RFC2246]. EPP is described in
|
87
|
+
[RFC5730]. TCP is described in [RFC0793]. This document obsoletes
|
88
|
+
RFC 4934 [RFC4934].
|
89
|
+
|
90
|
+
1.1. Conventions Used in This Document
|
91
|
+
|
92
|
+
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
|
93
|
+
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
|
94
|
+
document are to be interpreted as described in [RFC2119].
|
95
|
+
|
96
|
+
2. Session Management
|
97
|
+
|
98
|
+
Mapping EPP session management facilities onto the TCP service is
|
99
|
+
straightforward. An EPP session first requires creation of a TCP
|
100
|
+
connection between two peers, one that initiates the connection
|
101
|
+
request and one that responds to the connection request. The
|
102
|
+
initiating peer is called the "client", and the responding peer is
|
103
|
+
called the "server". An EPP server MUST listen for TCP connection
|
104
|
+
requests on a standard TCP port assigned by IANA.
|
105
|
+
|
106
|
+
The client MUST issue an active OPEN call, specifying the TCP port
|
107
|
+
number on which the server is listening for EPP connection attempts.
|
108
|
+
The EPP server MUST return an EPP <greeting> to the client after the
|
109
|
+
TCP session has been established.
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
Hollenbeck Standards Track [Page 2]
|
115
|
+
|
116
|
+
RFC 5734 EPP TCP Transport August 2009
|
117
|
+
|
118
|
+
|
119
|
+
An EPP session is normally ended by the client issuing an EPP
|
120
|
+
<logout> command. A server receiving an EPP <logout> command MUST
|
121
|
+
end the EPP session and close the TCP connection with a CLOSE call.
|
122
|
+
A client MAY end an EPP session by issuing a CLOSE call.
|
123
|
+
|
124
|
+
A server MAY limit the life span of an established TCP connection.
|
125
|
+
EPP sessions that are inactive for more than a server-defined period
|
126
|
+
MAY be ended by a server issuing a CLOSE call. A server MAY also
|
127
|
+
close TCP connections that have been open and active for longer than
|
128
|
+
a server-defined period.
|
129
|
+
|
130
|
+
3. Message Exchange
|
131
|
+
|
132
|
+
With the exception of the EPP server greeting, EPP messages are
|
133
|
+
initiated by the EPP client in the form of EPP commands. An EPP
|
134
|
+
server MUST return an EPP response to an EPP command on the same TCP
|
135
|
+
connection that carried the command. If the TCP connection is closed
|
136
|
+
after a server receives and successfully processes a command but
|
137
|
+
before the response can be returned to the client, the server MAY
|
138
|
+
attempt to undo the effects of the command to ensure a consistent
|
139
|
+
state between the client and the server. EPP commands are
|
140
|
+
idempotent, so processing a command more than once produces the same
|
141
|
+
net effect on the repository as successfully processing the command
|
142
|
+
once.
|
143
|
+
|
144
|
+
An EPP client streams EPP commands to an EPP server on an established
|
145
|
+
TCP connection. A client MUST NOT distribute commands from a single
|
146
|
+
EPP session over multiple TCP connections. A client MAY establish
|
147
|
+
multiple TCP connections to support multiple EPP sessions with each
|
148
|
+
session mapped to a single connection. A server SHOULD limit a
|
149
|
+
client to a maximum number of TCP connections based on server
|
150
|
+
capabilities and operational load.
|
151
|
+
|
152
|
+
EPP describes client-server interaction as a command-response
|
153
|
+
exchange where the client sends one command to the server and the
|
154
|
+
server returns one response to the client. A client might be able to
|
155
|
+
realize a slight performance gain by pipelining (sending more than
|
156
|
+
one command before a response for the first command is received)
|
157
|
+
commands with TCP transport, but this feature does not change the
|
158
|
+
basic single command, single response operating mode of the core
|
159
|
+
protocol.
|
160
|
+
|
161
|
+
Each EPP data unit MUST contain a single EPP message. Commands MUST
|
162
|
+
be processed independently and in the same order as sent from the
|
163
|
+
client.
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
Hollenbeck Standards Track [Page 3]
|
171
|
+
|
172
|
+
RFC 5734 EPP TCP Transport August 2009
|
173
|
+
|
174
|
+
|
175
|
+
A server SHOULD impose a limit on the amount of time required for a
|
176
|
+
client to issue a well-formed EPP command. A server SHOULD end an
|
177
|
+
EPP session and close an open TCP connection if a well-formed command
|
178
|
+
is not received within the time limit.
|
179
|
+
|
180
|
+
A general state machine for an EPP server is described in Section 2
|
181
|
+
of [RFC5730]. General client-server message exchange using TCP
|
182
|
+
transport is illustrated in Figure 1.
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
Hollenbeck Standards Track [Page 4]
|
227
|
+
|
228
|
+
RFC 5734 EPP TCP Transport August 2009
|
229
|
+
|
230
|
+
|
231
|
+
Client Server
|
232
|
+
| |
|
233
|
+
| Connect |
|
234
|
+
| >>------------------------------->> |
|
235
|
+
| |
|
236
|
+
| Send Greeting |
|
237
|
+
| <<-------------------------------<< |
|
238
|
+
| |
|
239
|
+
| Send <login> |
|
240
|
+
| >>------------------------------->> |
|
241
|
+
| |
|
242
|
+
| Send Response |
|
243
|
+
| <<-------------------------------<< |
|
244
|
+
| |
|
245
|
+
| Send Command |
|
246
|
+
| >>------------------------------->> |
|
247
|
+
| |
|
248
|
+
| Send Response |
|
249
|
+
| <<-------------------------------<< |
|
250
|
+
| |
|
251
|
+
| Send Command X |
|
252
|
+
| >>------------------------------->> |
|
253
|
+
| |
|
254
|
+
| Send Command Y |
|
255
|
+
| >>---------------+ |
|
256
|
+
| | |
|
257
|
+
| | |
|
258
|
+
| Send Response X |
|
259
|
+
| <<---------------(---------------<< |
|
260
|
+
| | |
|
261
|
+
| | |
|
262
|
+
| +--------------->> |
|
263
|
+
| |
|
264
|
+
| Send Response Y |
|
265
|
+
| <<-------------------------------<< |
|
266
|
+
| |
|
267
|
+
| Send <logout> |
|
268
|
+
| >>------------------------------->> |
|
269
|
+
| |
|
270
|
+
| Send Response & Disconnect |
|
271
|
+
| <<-------------------------------<< |
|
272
|
+
| |
|
273
|
+
|
274
|
+
Figure 1: TCP Client-Server Message Exchange
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
Hollenbeck Standards Track [Page 5]
|
283
|
+
|
284
|
+
RFC 5734 EPP TCP Transport August 2009
|
285
|
+
|
286
|
+
|
287
|
+
4. Data Unit Format
|
288
|
+
|
289
|
+
The EPP data unit contains two fields: a 32-bit header that describes
|
290
|
+
the total length of the data unit, and the EPP XML instance. The
|
291
|
+
length of the EPP XML instance is determined by subtracting four
|
292
|
+
octets from the total length of the data unit. A receiver must
|
293
|
+
successfully read that many octets to retrieve the complete EPP XML
|
294
|
+
instance before processing the EPP message.
|
295
|
+
|
296
|
+
EPP Data Unit Format (one tick mark represents one bit position):
|
297
|
+
|
298
|
+
0 1 2 3
|
299
|
+
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
300
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
301
|
+
| Total Length |
|
302
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
303
|
+
| EPP XML Instance |
|
304
|
+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
305
|
+
|
306
|
+
Total Length (32 bits): The total length of the EPP data unit
|
307
|
+
measured in octets in network (big endian) byte order. The octets
|
308
|
+
contained in this field MUST be included in the total length
|
309
|
+
calculation.
|
310
|
+
|
311
|
+
EPP XML Instance (variable length): The EPP XML instance carried in
|
312
|
+
the data unit.
|
313
|
+
|
314
|
+
5. Transport Considerations
|
315
|
+
|
316
|
+
Section 2.1 of the EPP core protocol specification [RFC5730]
|
317
|
+
describes considerations to be addressed by protocol transport
|
318
|
+
mappings. This document addresses each of the considerations using a
|
319
|
+
combination of features described in this document and features
|
320
|
+
provided by TCP as follows:
|
321
|
+
|
322
|
+
- TCP includes features to provide reliability, flow control,
|
323
|
+
ordered delivery, and congestion control. Section 1.5 of RFC 793
|
324
|
+
[RFC0793] describes these features in detail; congestion control
|
325
|
+
principles are described further in RFC 2581 [RFC2581] and RFC
|
326
|
+
2914 [RFC2914]. TCP is a connection-oriented protocol, and
|
327
|
+
Section 2 of this document describes how EPP sessions are mapped
|
328
|
+
to TCP connections.
|
329
|
+
|
330
|
+
- Sections 2 and 3 of this document describe how the stateful nature
|
331
|
+
of EPP is preserved through managed sessions and controlled
|
332
|
+
message exchanges.
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
Hollenbeck Standards Track [Page 6]
|
339
|
+
|
340
|
+
RFC 5734 EPP TCP Transport August 2009
|
341
|
+
|
342
|
+
|
343
|
+
- Section 3 of this document notes that command pipelining is
|
344
|
+
possible with TCP, though batch-oriented processing (combining
|
345
|
+
multiple EPP commands in a single data unit) is not permitted.
|
346
|
+
|
347
|
+
- Section 4 of this document describes features to frame data units
|
348
|
+
by explicitly specifying the number of octets used to represent a
|
349
|
+
data unit.
|
350
|
+
|
351
|
+
6. Internationalization Considerations
|
352
|
+
|
353
|
+
This document does not introduce or present any internationalization
|
354
|
+
or localization issues.
|
355
|
+
|
356
|
+
7. IANA Considerations
|
357
|
+
|
358
|
+
System port number 700 has been assigned by the IANA for mapping EPP
|
359
|
+
onto TCP.
|
360
|
+
|
361
|
+
User port number 3121 (which was used for development and test
|
362
|
+
purposes) has been reclaimed by the IANA.
|
363
|
+
|
364
|
+
8. Security Considerations
|
365
|
+
|
366
|
+
EPP as-is provides only simple client authentication services using
|
367
|
+
identifiers and plain text passwords. A passive attack is sufficient
|
368
|
+
to recover client identifiers and passwords, allowing trivial command
|
369
|
+
forgery. Protection against most other common attacks MUST be
|
370
|
+
provided by other layered protocols.
|
371
|
+
|
372
|
+
When layered over TCP, the Transport Layer Security (TLS) Protocol
|
373
|
+
version 1.0 [RFC2246] or its successors (such as TLS 1.2 [RFC5246]),
|
374
|
+
using the latest version supported by both parties, MUST be used to
|
375
|
+
provide integrity, confidentiality, and mutual strong client-server
|
376
|
+
authentication. Implementations of TLS often contain a weak
|
377
|
+
cryptographic mode that SHOULD NOT be used to protect EPP. Clients
|
378
|
+
and servers desiring high security SHOULD instead use TLS with
|
379
|
+
cryptographic algorithms that are less susceptible to compromise.
|
380
|
+
|
381
|
+
Authentication using the TLS Handshake Protocol confirms the identity
|
382
|
+
of the client and server machines. EPP uses an additional client
|
383
|
+
identifier and password to identify and authenticate the client's
|
384
|
+
user identity to the server, supplementing the machine authentication
|
385
|
+
provided by TLS. The identity described in the client certificate
|
386
|
+
and the identity described in the EPP client identifier can differ,
|
387
|
+
as a server can assign multiple user identities for use from any
|
388
|
+
particular client machine. Acceptable certificate identities MUST be
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
Hollenbeck Standards Track [Page 7]
|
395
|
+
|
396
|
+
RFC 5734 EPP TCP Transport August 2009
|
397
|
+
|
398
|
+
|
399
|
+
negotiated between client operators and server operators using an
|
400
|
+
out-of-band mechanism. Presented certificate identities MUST match
|
401
|
+
negotiated identities before EPP service is granted.
|
402
|
+
|
403
|
+
There is a risk of login credential compromise if a client does not
|
404
|
+
properly identify a server before attempting to establish an EPP
|
405
|
+
session. Before sending login credentials to the server, a client
|
406
|
+
needs to confirm that the server certificate received in the TLS
|
407
|
+
handshake is an expected certificate for the server. A client also
|
408
|
+
needs to confirm that the greeting received from the server contains
|
409
|
+
expected identification information. After establishing a TLS
|
410
|
+
session and receiving an EPP greeting on a protected TCP connection,
|
411
|
+
clients MUST compare the certificate subject and/or subjectAltName to
|
412
|
+
expected server identification information and abort processing if a
|
413
|
+
mismatch is detected. If certificate validation is successful, the
|
414
|
+
client then needs to ensure that the information contained in the
|
415
|
+
received certificate and greeting is consistent and appropriate. As
|
416
|
+
described above, both checks typically require an out-of-band
|
417
|
+
exchange of information between client and server to identify
|
418
|
+
expected values before in-band connections are attempted.
|
419
|
+
|
420
|
+
EPP TCP servers are vulnerable to common TCP denial-of-service
|
421
|
+
attacks including TCP SYN flooding. Servers SHOULD take steps to
|
422
|
+
minimize the impact of a denial-of-service attack using combinations
|
423
|
+
of easily implemented solutions, such as deployment of firewall
|
424
|
+
technology and border router filters to restrict inbound server
|
425
|
+
access to known, trusted clients.
|
426
|
+
|
427
|
+
9. TLS Usage Profile
|
428
|
+
|
429
|
+
The client should initiate a connection to the server and then send
|
430
|
+
the TLS Client Hello to begin the TLS handshake. When the TLS
|
431
|
+
handshake has finished, the client can then send the first EPP
|
432
|
+
message.
|
433
|
+
|
434
|
+
TLS implementations are REQUIRED to support the mandatory cipher
|
435
|
+
suite specified in the implemented version:
|
436
|
+
|
437
|
+
o TLS 1.0 [RFC2246]: TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA
|
438
|
+
|
439
|
+
o TLS 1.1 [RFC4346]: TLS_RSA_WITH_3DES_EDE_CBC_SHA
|
440
|
+
|
441
|
+
o TLS 1.2 [RFC5246]: TLS_RSA_WITH_AES_128_CBC_SHA
|
442
|
+
|
443
|
+
This document is assumed to apply to future versions of TLS, in which
|
444
|
+
case the mandatory cipher suite for the implemented version MUST be
|
445
|
+
supported.
|
446
|
+
|
447
|
+
|
448
|
+
|
449
|
+
|
450
|
+
Hollenbeck Standards Track [Page 8]
|
451
|
+
|
452
|
+
RFC 5734 EPP TCP Transport August 2009
|
453
|
+
|
454
|
+
|
455
|
+
Mutual client and server authentication using the TLS Handshake
|
456
|
+
Protocol is REQUIRED. Signatures on the complete certification path
|
457
|
+
for both client machine and server machine MUST be validated as part
|
458
|
+
of the TLS handshake. Information included in the client and server
|
459
|
+
certificates, such as validity periods and machine names, MUST also
|
460
|
+
be validated. A complete description of the issues associated with
|
461
|
+
certification path validation can be found in RFC 5280 [RFC5280].
|
462
|
+
EPP service MUST NOT be granted until successful completion of a TLS
|
463
|
+
handshake and certificate validation, ensuring that both the client
|
464
|
+
machine and the server machine have been authenticated and
|
465
|
+
cryptographic protections are in place.
|
466
|
+
|
467
|
+
If the client has external information as to the expected identity of
|
468
|
+
the server, the server name check MAY be omitted. For instance, a
|
469
|
+
client may be connecting to a machine whose address and server name
|
470
|
+
are dynamic, but the client knows the certificate that the server
|
471
|
+
will present. In such cases, it is important to narrow the scope of
|
472
|
+
acceptable certificates as much as possible in order to prevent man-
|
473
|
+
in-the-middle attacks. In special cases, it might be appropriate for
|
474
|
+
the client to simply ignore the server's identity, but it needs to be
|
475
|
+
understood that this leaves the connection open to active attack.
|
476
|
+
|
477
|
+
During the TLS negotiation, the EPP client MUST check its
|
478
|
+
understanding of the server name / IP address against the server's
|
479
|
+
identity as presented in the server Certificate message in order to
|
480
|
+
prevent man-in-the-middle attacks. In this section, the client's
|
481
|
+
understanding of the server's identity is called the "reference
|
482
|
+
identity". Checking is performed according to the following rules in
|
483
|
+
the specified order:
|
484
|
+
|
485
|
+
o If the reference identity is a server name:
|
486
|
+
|
487
|
+
* If a subjectAltName extension of the dNSName [CCITT.X509.1988]
|
488
|
+
type is present in the server's certificate, then it SHOULD be
|
489
|
+
used as the source of the server's identity. Matching is
|
490
|
+
performed as described in Section 7.2 of [RFC5280], with the
|
491
|
+
exception that wildcard matching (see below) is allowed for
|
492
|
+
dNSName type. If the certificate contains multiple names
|
493
|
+
(e.g., more than one dNSName field), then a match with any one
|
494
|
+
of the fields is considered acceptable.
|
495
|
+
|
496
|
+
* The '*' (ASCII 42) wildcard character is allowed in
|
497
|
+
subjectAltName values of type dNSName, and then only as the
|
498
|
+
left-most (least significant) DNS label in that value. This
|
499
|
+
wildcard matches any left-most DNS label in the server name.
|
500
|
+
That is, the subject *.example.com matches the server names
|
501
|
+
a.example.com and b.example.com, but does not match example.com
|
502
|
+
or a.b.example.com.
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
Hollenbeck Standards Track [Page 9]
|
507
|
+
|
508
|
+
RFC 5734 EPP TCP Transport August 2009
|
509
|
+
|
510
|
+
|
511
|
+
* The server's identity MAY also be verified by comparing the
|
512
|
+
reference identity to the Common Name (CN) [RFC4519] value in
|
513
|
+
the leaf Relative Distinguished Name (RDN) of the subjectName
|
514
|
+
field of the server's certificate. This comparison is
|
515
|
+
performed using the rules for comparison of DNS names in bullet
|
516
|
+
1 above (including wildcard matching). Although the use of the
|
517
|
+
Common Name value is existing practice, it is deprecated, and
|
518
|
+
Certification Authorities are encouraged to provide
|
519
|
+
subjectAltName values instead. Note that the TLS
|
520
|
+
implementation may represent DNs in certificates according to
|
521
|
+
X.500 or other conventions. For example, some X.500
|
522
|
+
implementations order the RDNs in a DN using a left-to-right
|
523
|
+
(most significant to least significant) convention instead of
|
524
|
+
LDAP's right-to-left convention.
|
525
|
+
|
526
|
+
o If the reference identity is an IP address:
|
527
|
+
|
528
|
+
* The iPAddress subjectAltName SHOULD be used by the client for
|
529
|
+
comparison. In such a case, the reference identity MUST be
|
530
|
+
converted to the "network byte order" octet string
|
531
|
+
representation. For IP Version 4 (as specified in RFC 791
|
532
|
+
[RFC0791]), the octet string will contain exactly four octets.
|
533
|
+
For IP Version 6 (as specified in RFC 2460 [RFC2460]), the
|
534
|
+
octet string will contain exactly sixteen octets. This octet
|
535
|
+
string is then compared against subjectAltName values of type
|
536
|
+
iPAddress. A match occurs if the reference identity octet
|
537
|
+
string and value octet strings are identical.
|
538
|
+
|
539
|
+
If the server identity check fails, user-oriented clients SHOULD
|
540
|
+
either notify the user (clients MAY give the user the opportunity to
|
541
|
+
continue with the EPP session in this case) or close the transport
|
542
|
+
connection and indicate that the server's identity is suspect.
|
543
|
+
Automated clients SHOULD return or log an error indicating that the
|
544
|
+
server's identity is suspect and/or SHOULD close the transport
|
545
|
+
connection. Automated clients MAY provide a configuration setting
|
546
|
+
that disables this check, but MUST provide a setting which enables
|
547
|
+
it.
|
548
|
+
|
549
|
+
During the TLS negotiation, the EPP server MUST verify that the
|
550
|
+
client certificate matches the reference identity previously
|
551
|
+
negotiated out of band, as specified in Section 8. The server should
|
552
|
+
match the entire subject name or the subjectAltName as described in
|
553
|
+
RFC 5280. The server MAY enforce other restrictions on the
|
554
|
+
subjectAltName, for example if it knows that a particular client is
|
555
|
+
always connecting from a particular hostname / IP address.
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
Hollenbeck Standards Track [Page 10]
|
563
|
+
|
564
|
+
RFC 5734 EPP TCP Transport August 2009
|
565
|
+
|
566
|
+
|
567
|
+
All EPP messages MUST be sent as TLS "application data". It is
|
568
|
+
possible that multiple EPP messages are contained in one TLS record,
|
569
|
+
or that an EPP message is transferred in multiple TLS records.
|
570
|
+
|
571
|
+
When no data is received from a connection for a long time (where the
|
572
|
+
application decides what "long" means), a server MAY close the
|
573
|
+
connection. The server MUST attempt to initiate an exchange of
|
574
|
+
close_notify alerts with the client before closing the connection.
|
575
|
+
Servers that are unprepared to receive any more data MAY close the
|
576
|
+
connection after sending the close_notify alert, thus generating an
|
577
|
+
incomplete close on the client side.
|
578
|
+
|
579
|
+
10. Acknowledgements
|
580
|
+
|
581
|
+
RFC 3734 is a product of the PROVREG working group, which suggested
|
582
|
+
improvements and provided many invaluable comments. The author
|
583
|
+
wishes to acknowledge the efforts of WG chairs Edward Lewis and Jaap
|
584
|
+
Akkerhuis for their process and editorial contributions. RFC 4934
|
585
|
+
and this document are individual submissions, based on the work done
|
586
|
+
in RFC 3734.
|
587
|
+
|
588
|
+
Specific suggestions that have been incorporated into this document
|
589
|
+
were provided by Chris Bason, Randy Bush, Patrik Faltstrom, Ned
|
590
|
+
Freed, James Gould, Dan Manley, and John Immordino.
|
591
|
+
|
592
|
+
11. References
|
593
|
+
|
594
|
+
11.1. Normative References
|
595
|
+
|
596
|
+
[CCITT.X509.1988]
|
597
|
+
International Telephone and Telegraph Consultative
|
598
|
+
Committee, "Information Technology - Open Systems
|
599
|
+
Interconnection - The Directory: Authentication
|
600
|
+
Framework", CCITT Recommendation X.509, November 1988.
|
601
|
+
|
602
|
+
[RFC0791] Postel, J., "Internet Protocol", STD 5, RFC 791,
|
603
|
+
September 1981.
|
604
|
+
|
605
|
+
[RFC0793] Postel, J., "Transmission Control Protocol", STD 7,
|
606
|
+
RFC 793, September 1981.
|
607
|
+
|
608
|
+
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
|
609
|
+
Requirement Levels", BCP 14, RFC 2119, March 1997.
|
610
|
+
|
611
|
+
[RFC2246] Dierks, T. and C. Allen, "The TLS Protocol Version 1.0",
|
612
|
+
RFC 2246, January 1999.
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
|
618
|
+
Hollenbeck Standards Track [Page 11]
|
619
|
+
|
620
|
+
RFC 5734 EPP TCP Transport August 2009
|
621
|
+
|
622
|
+
|
623
|
+
[RFC2460] Deering, S. and R. Hinden, "Internet Protocol, Version 6
|
624
|
+
(IPv6) Specification", RFC 2460, December 1998.
|
625
|
+
|
626
|
+
[RFC4519] Sciberras, A., "Lightweight Directory Access Protocol
|
627
|
+
(LDAP): Schema for User Applications", RFC 4519,
|
628
|
+
June 2006.
|
629
|
+
|
630
|
+
[RFC5730] Hollenbeck, S., "Extensible Provisioning Protocol (EPP)",
|
631
|
+
STD 69, RFC 5730, August 2009.
|
632
|
+
|
633
|
+
11.2. Informative References
|
634
|
+
|
635
|
+
[RFC2581] Allman, M., Paxson, V., and W. Stevens, "TCP Congestion
|
636
|
+
Control", RFC 2581, April 1999.
|
637
|
+
|
638
|
+
[RFC2914] Floyd, S., "Congestion Control Principles", BCP 41,
|
639
|
+
RFC 2914, September 2000.
|
640
|
+
|
641
|
+
[RFC4346] Dierks, T. and E. Rescorla, "The Transport Layer Security
|
642
|
+
(TLS) Protocol Version 1.1", RFC 4346, April 2006.
|
643
|
+
|
644
|
+
[RFC4934] Hollenbeck, S., "Extensible Provisioning Protocol (EPP)
|
645
|
+
Transport Over TCP", RFC 4934, May 2007.
|
646
|
+
|
647
|
+
[RFC5246] Dierks, T. and E. Rescorla, "The Transport Layer Security
|
648
|
+
(TLS) Protocol Version 1.2", RFC 5246, August 2008.
|
649
|
+
|
650
|
+
[RFC5280] Cooper, D., Santesson, S., Farrell, S., Boeyen, S.,
|
651
|
+
Housley, R., and W. Polk, "Internet X.509 Public Key
|
652
|
+
Infrastructure Certificate and Certificate Revocation List
|
653
|
+
(CRL) Profile", RFC 5280, May 2008.
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
Hollenbeck Standards Track [Page 12]
|
675
|
+
|
676
|
+
RFC 5734 EPP TCP Transport August 2009
|
677
|
+
|
678
|
+
|
679
|
+
Appendix A. Changes from RFC 4934
|
680
|
+
|
681
|
+
1. Changed "This document obsoletes RFC 3734" to "This document
|
682
|
+
obsoletes RFC 4934".
|
683
|
+
|
684
|
+
2. Replaced references to RFC 3280 with references to 5280.
|
685
|
+
|
686
|
+
3. Replaced references to RFC 3734 with references to 4934.
|
687
|
+
|
688
|
+
4. Updated references to RFC 4346 and TLS 1.1 with references to
|
689
|
+
5246 and TLS 1.2.
|
690
|
+
|
691
|
+
5. Replaced references to RFC 4930 with references to 5730.
|
692
|
+
|
693
|
+
6. Added clarifying TLS Usage Profile section and included
|
694
|
+
references.
|
695
|
+
|
696
|
+
7. Moved the paragraph that begins with "Mutual client and server
|
697
|
+
authentication" from the Security Considerations section to the
|
698
|
+
TLS Usage Profile section.
|
699
|
+
|
700
|
+
Author's Address
|
701
|
+
|
702
|
+
Scott Hollenbeck
|
703
|
+
VeriSign, Inc.
|
704
|
+
21345 Ridgetop Circle
|
705
|
+
Dulles, VA 20166-6503
|
706
|
+
US
|
707
|
+
|
708
|
+
EMail: shollenbeck@verisign.com
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
|
726
|
+
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
Hollenbeck Standards Track [Page 13]
|
731
|
+
|