Tech Off Post

Single Post Permalink

View Thread: Please help: EPP client or class wanted!
  • User profile image
    dotnetjunkie

    Well, turns out you don't need to buy or download anything at all!
    .NET 2.0 has everything you need build in, and it's really simple.

    Only thing that can be a PITA is the conversion to and from byte arrays and the different encodings...

    Dim client As New Net.Sockets.TcpClient("epp.registry.com", 33123)

    Dim sslStream As New Net.Security.SslStream(client.GetStream, False, New Net.Security.RemoteCertificateValidationCallback(AddressOf ValidateServerCertificate), Nothing)

    Try

    sslStream.AuthenticateAsClient("epp.registry.com")

    Catch ex As Exception

    'Logging

    client.Close()

    End Try

    sslStream.Write(<your byte array here>)
    sslStream.Flush()

    client.Close()