Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error trying to connect with French bank #11

Closed
MZK91 opened this issue Apr 7, 2021 · 0 comments
Closed

Error trying to connect with French bank #11

MZK91 opened this issue Apr 7, 2021 · 0 comments

Comments

@MZK91
Copy link

MZK91 commented Apr 7, 2021

Hi everybody and thank for your work,

I'm trying to use that class to connect to a French Bank but i'm facing that issue, that i tried to figure out for days and can't find a way to solve it.

So i've followed your examples showed in the presentation, but I keep having this response :

DER was not encoded.

Here is a sample of my code:

    $x509 = new X509Generator();
    $x509->setCertificateOptions($x509->getCertificateOptions());

    $client->setX509Generator($x509);


    try {
        $client->INI();
        /* @var \AndrewSvirin\Ebics\Services\KeyRingManager $keyRingManager */
        /* @var \AndrewSvirin\Ebics\Models\KeyRing $keyRing */
        $keyRingManager->saveKeyRing($keyRing);
    } catch (EbicsResponseExceptionInterface $exception) {
        echo sprintf(
            "INI request failed. EBICS Error code : %s\nMessage : %s\nMeaning : %s",
            $exception->getResponseCode(),
            $exception->getMessage(),
            $exception->getMeaning()
        );
    }
@MZK91 MZK91 changed the title Error trying to connected with French bank Error trying to connect with French bank Apr 7, 2021
@MZK91 MZK91 closed this as completed Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant