metaregistrar / php-epp-client

Object-oriented PHP EPP Client
https://www.metaregistrar.com/docs/
MIT License
214 stars 160 forks source link

register domain #34

Closed karborator closed 8 years ago

karborator commented 8 years ago

Hi I got "Command failed" on register domain .

Here is the xml request

<?xml version="1.0" encoding="UTF-8"?>
<epp>
    <command>
        <create>
            <domain:create>
                <domain:name>some-demo.fi</domain:name>
                <domain:period unit="y">1</domain:period>
                <domain:registrant>*******</domain:registrant>
                <domain:authInfo>
                    <domain:pw>************</domain:pw>

                </domain:authInfo>

            </domain:create>

        </create>
        <clTRID>********</clTRID>

    </command>
</epp>
metaregistrar commented 8 years ago

HI,

I do not know why ficora would refuse the request, it looks fine.

Maybe they need an admin-c and tech-c address also, but you best ask ficora what the problem is.

metaregistrar commented 8 years ago

Hi,

I have a new request for connection to Ficora. Can you share the modifications you have made to connect to Ficora, so others can also benefit from this?

karborator commented 8 years ago

Hello ,

I think I did not found a salutation for this issue :"Command failed" on register domain

metaregistrar commented 8 years ago

Hi,

That is good,

Can you share the changes you have made to make this connection work?

Vriendelijke groeten/kind regards,

Ewout de Graaf Metaregistrar

2016-05-17 12:58 GMT+02:00 karborator notifications@github.com:

Hello ,

I think I did not found a salutation for this issue :"Command failed" on register domain

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/metaregistrar/php-epp-client/issues/34#issuecomment-219685239

karborator commented 8 years ago
    $conn = new eppConnection(false);
    $conn->setHostname('epptest.ficora.fi');    
    $conn->setPort(700);                        
    $conn->setTimeout(200);                    
    $conn->setUsername('username'); //ask Ficora
    $conn->setPassword('password');        
    $realPathToPem = realpath(__DIR__ . '/path/to/ficora.pem'); 
    if (!$realPath) {
        throw new \Exception();
    }
    $conn->enableCertification($realPathToPem, 'password');

    if (!$conn->connect()) {
        throw new \Exception('Epp connection failed');
    }
    if (!$conn->login()) {
        throw new \Exception('Epp login failed');
    }
    return $conn;