Skip to content

Invalid private key #20

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

Open
jeroendev-one opened this issue Mar 2, 2020 · 2 comments
Open

Invalid private key #20

jeroendev-one opened this issue Mar 2, 2020 · 2 comments

Comments

@jeroendev-one
Copy link

I'm getting the error: "Invalid private key"

My config/transip.php:


<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Connection Name
    |--------------------------------------------------------------------------
    |
    | Here you may specify which of the connections below you wish to use as
    | your default connection for all work. Of course, you may use many
    | connections at once using the manager class.
    |
    */

    'default' => 'main',

    /*
    |--------------------------------------------------------------------------
    | TransIP Connections
    |--------------------------------------------------------------------------
    |
    | Here are each of the connections setup for your application. Examples of
    | configuring each connection is shown below.
    |
    */

    'connections' => [

        'main' => [
            'username'      => 'transip-username',
            'private_key'   => '-----BEGIN PRIVATE KEY-----
EXAMPLEDATA
-----END PRIVATE KEY-----
',
        ],

        'alternative' => [
            'username'      => 'transip-username',
            'private_key'   => 'transip-private-key',
            'mode'          => 'readwrite', // default: readonly
            'endpoint'      => 'api.transip.eu', // default: api.transip.nl
        ],

    ],

];
@jeroendev-one
Copy link
Author

Ofcourse I've filled in the username. Can you please explain why this is happening?

@petericebear
Copy link
Collaborator

You have to generate one in the ControlPanel => Settings => API.

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

2 participants