Skip to content

Unable to access S3 buckets with custom url without valid SSL Cert #89

Closed
@pyashish

Description

@pyashish

Unable to access a s3 bucket behind an Server without valid SSL cert check.

I have a custom server hosting/supporting a s3 protocol. I'm able to access the same with aws boto 3 python client. But not powershell. The below is the error I get the below error

**Get-S3Bucket -ProfileName Cohesity -EndpointUrl "https://1.2.3.4:1337"  -Verbose
VERBOSE: Invoking Amazon S3 operation 'ListBuckets' on endpoint 'https://1.2.3.4:1337/s3-bucket'
Get-S3Bucket : The SSL connection could not be established, see inner exception.
At line:1 char:1
+ Get-S3Bucket -ProfileName Cohesity -EndpointUrl "https://1.2.3.4:1337 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Amazon.PowerShell.C\u20263.GetS3BucketCmdlet:GetS3BucketCmdlet) [Get-S3Bucket], InvalidOperationException
+ FullyQualifiedErrorId : System.Net.Http.HttpRequestException,Amazon.PowerShell.Cmdlets.S3.GetS3BucketCmdlet**

I did try disabling the server cert validation check, but no luck :

[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }

Possible Solution

Support disabling server cert check.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions