Skip to content

AuthorizationHeaderMalformed - the Credential is mal-formed #780

Closed
@Cranke

Description

@Cranke

When trying to connect to s3 or executing the sample.php, i get the same error.

AWS HTTP error: Client error: 400 AuthorizationHeaderMalformed (client): The authorization header is malformed; the Credential is mal-formed; expecting "<YOUR-AKID>/YYYYMMDD/REGION/SERVICE/aws4_request".

The Error is related to setting the signing type. i get the same error with java sdk, if i dont use clientConfiguration.setSignerOverride("AWSS3V4SignerType");

But specifying signature in my client does not help.

$client = S3Client::factory(array( 'region' => 'eu-central-1', 'version' => 'latest', 'signature' => 'v4', 'http' => [ 'verify' => false ] ));

SO question:
http://stackoverflow.com/questions/32821946/how-to-connect-to-amazon-aws-s3-with-aws-sdk-php

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions