Connecting

Our EPP service speaks RFC 5730–5734 over TLS on port 700. One connection carries one session; a session carries many commands.

What you connect to

TransportTCP, TLS 1.2 or 1.3 required — there is no plaintext port
Port700
FramingRFC 5734: a 4-byte big-endian total length, then the XML
EncodingUTF-8, and the XML declaration must say so
Host, credentials, our root certificate, client certificatewe issue these with your accreditation

The host name, the credentials and the certificates are not published: we hand them over when we open your access, and change them the same way. Access is opened on an application — namespace.com.ua/admission; if you already work with us, write to support@namespace.com.ua. Nothing on this page depends on any of these values, so you can read on now.

With your access you get the host name, your registrar id and password, our certificate authority's root certificate — your client verifies our server against it — and a client certificate if your profile requires one. From you we need the addresses you will connect from: a login from an address that is not on your account is refused with 2501.

Everything in this manual is port 700. If you were given a different port, you were told what it is for; otherwise this is the one you want.

The frame

Every frame — in both directions — is a 32-bit unsigned big-endian length including the four length bytes themselves, followed by that many minus four bytes of XML.

BytesWhatExample
1–4the total length, big-endian, including these four00 00 01 2F — 303 bytes in all
5 onwardsthe XML, length − 4 bytes of it<?xml version="1.0" …</epp>

A frame larger than 1 MiB is refused and the connection closed. No ordinary command comes near that; the limit is there against a declared length nobody intends to send.

Read the length first, then read exactly that many bytes. A TCP read returns what has arrived, not what you asked for: one read() may return half a frame, or two frames at once. Treating one read() as one frame is the commonest bug in a first EPP client.

The shape of a session

  1. Connect. The server speaks first: it sends a <greeting> before you send anything.
  2. <login>. Until it succeeds, nothing else is accepted.
  3. Commands, one at a time. EPP is strictly request–response on one connection: send a frame, read the answer, then send the next. There is no pipelining and no out-of-order answer.
  4. <logout>. The server answers 1500 and closes.

You may send <hello> at any point to get a fresh <greeting> — that is also the keep-alive.

Limits that will close your connection

These are ours, and they exist so that one client cannot exhaust the service for the others.

LimitValueWhat happens
Concurrent sessions per registrar3a fourth login is refused with 2502
Idle time10 minutesthe connection is closed
Total session age24 hoursthe connection is closed
TLS handshake10 secondsa stalled handshake is dropped
Login after handshake30 secondsa connection that never authenticates is dropped
One frame, start to finish30 secondsa frame that trickles is dropped
Connections from one address32further connections are refused

A closed connection is not an error you have to report to anyone: reconnect, log in and carry on. But read Sessions and recovery first — repeating a command whose answer you never saw is the one thing you must not do.

TLS

  • TLS 1.2 is the floor. 1.3 is preferred and is what you get unless your library is old. There is no plaintext port and no downgrade.
  • Trust our root certificate, not the system store. Our certificate is signed by our own certificate authority, which is in no public trust store. We do not publish the root: we issue it with your credentials. Point your client at it — caFile, or your library's trust store. Without that the connection breaks in the handshake with unable to get local issuer certificate, before the first EPP frame, so neither the password nor the address allowlist has anything to do with it.
  • Verify our certificate. Pin the issuer, not the leaf: the leaf is replaced when the certificate is reissued, and a client that pinned the leaf stops connecting that same day.
  • A client certificate is not required on port 700. Some of the other profiles do require one; this one authenticates you by <login>. You may still be issued one and have it pinned to your account, and then it is checked — if that applies to you, you were told so when your access was opened.

What decides whether the server lets you in

Three things, and all of them must agree:

  1. your registrar ID and password, in <login>;
  2. the source address you connect from, which must be on your account's allowlist;
  3. your client certificate, when one is pinned to your account.

The refusal does not say which one failed. All three checks answer the same way — 2501, authentication error, after which the server closes the connection. That is deliberate: an answer saying "the password was right, only the address was wrong" would tell whoever stole the password what else they need. The operator can see which check said no; the response does not.

Because it is 2501, the connection goes away with the answer. Reconnect to try again, and do not retry in a tight loop: repeated failures from one address are throttled.

So if a login that used to work stops, check the address you are connecting from before you touch the password. A move to a new machine, a new NAT address or a new cloud region is the usual cause, and the fix is to have the address added to the list rather than to change the password.

A first exchange, end to end

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
  <command>
    <login>
      <clID>EXAMPLE-1</clID>
      <pw>your-password</pw>
      <options>
        <version>1.0</version>
        <lang>en</lang>
      </options>
      <svcs>
        <objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
        <objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
        <objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
      </svcs>
    </login>
    <clTRID>EXAMPLE-1-0001</clTRID>
  </command>
</epp>
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
  <response>
    <result code="1000">
      <msg>Command completed successfully</msg>
    </result>
    <trID>
      <clTRID>EXAMPLE-1-0001</clTRID>
      <svTRID>NSPC-19700101000000-A1B2C3D4E5F6</svTRID>
    </trID>
  </response>
</epp>

Next: Hello and Greeting — what the server tells you about itself when you connect.


On this page