hiddeco / laravel-transip

Laravel TransIP is a bridge for the TransIP wrapper and Laravel 5.
MIT License
9 stars 12 forks source link

Invalid private key #20

Open jeroendev-one opened 4 years ago

jeroendev-one commented 4 years ago

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 commented 4 years ago

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

petericebear commented 4 years ago

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