Git Product home page Git Product logo

epp's Introduction

epp's People

Contributors

case avatar case-fastly avatar cee-dub avatar codelingobot avatar dependabot[bot] avatar philpennock avatar wbond avatar ydnar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

epp's Issues

Fail when sending command

We successfully connected EPP server but fail when sending manual command (domain registration). We tried several variants using the underlying TLS connection and even modifying the library. We are stuck with the same error every time

Example code:

func euStart() {
	dialer := &net.Dialer{
		LocalAddr: &net.TCPAddr{
			IP:   net.ParseIP("xx.xx.xx.xxx"), 
			Port: 0}}

	eppConn, err := tls.DialWithDialer(dialer, "tcp", "xxx:700", nil)
	if err != nil {
		fmt.Println("EPP dial error: ", err)
		os.Exit(3)
	}

	eppClient, err := epp.NewConn(eppConn)
	if err != nil {
		fmt.Println("EPP init error: ", err)
		os.Exit(3)
	}

	err = eppClient.Login("xxx", "xxx", "")
	if err != nil {
		fmt.Println("EPP login error: ", err)
		os.Exit(3)
	}

	domain := "test6890.eu"
	xml := "<?xml version=\"1.0\" encoding=\"UTF-8\"?><epp xmlns=\"urn:ietf:params:xml:ns:epp-1.0\"><command><create><domain:create xmlns:domain=\"urn:ietf:params:xml:ns:domain-1.0\"><domain:name>" + domain + "</domain:name><domain:registrant>xxx</domain:registrant><domain:contact type=\"billing\">xxx</domain:contact><domain:contact type=\"tech\">xxx</domain:contact><domain:authInfo><domain:pw> </domain:pw></domain:authInfo></domain:create></create></command></epp>"
	eppClient.Conn.Write([]byte(xml + "\n"))
}

We get a runtime error at time of writing to connection (last line):

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x61b62b]

goroutine 1 [running]:
main.euReg(0x7ffc6eaef84d, 0xb)
        /home/debian/xxx.go:186 +0xdb
main.xxx(0x7ffc6eaef84d, 0xb)
        /home/debian/xxx.go:57 +0x3ae
main.main()
        /home/debian/xxx.go:31 +0xd2

Any ideas? Thanks

Tidy up the Verisign extensions in check.go

From @wbond:

I think the remaining thing to do here is to default uppercase TLD, and use the switch for the dotTLD form ones. Otherwise we'll have to hardcode every Verisign TLD into the code

Alternatively we make it more extensible and pass the subProduct ID in via the extension data parameter and use separate code to determine which should be prefixed with dot. That way domainr/epp is able to handle other registries that may use the namestore extension.

Why error remote error: tls: handshake failure?

When I run cmd/epp.go to connect remote epp server ,show me the error
Loading CA certificate from cacert.pem
Loading certificate cert.pem and key key.pem
Connecting to epp.registrysystem.net:700
Establishing TLS connection
remote error: tls: handshake failure
EXITING
exit status 1

// Set up TLS
cfg := &tls.Config{
PreferServerCipherSuites:true,
CipherSuites: []uint16{
tls.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,
tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
},
MinVersion: tls.VersionTLS11,
MaxVersion: tls.VersionTLS11,
InsecureSkipVerify:true,
ServerName: host,
}

go version go1.10.3 linux/amd64

Thanks a lot!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.