mirror of
https://github.com/fsouza/fake-gcs-server.git
synced 2026-04-25 21:55:56 +03:00
[GH-ISSUE #459] Getting "certificate is valid for example.com, not localhost" #91
Labels
No labels
bug
compatibility-issue
docker
documentation
enhancement
help wanted
needs information
pull-request
question
stale
unfortunate
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/fake-gcs-server#91
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @anasanzari on GitHub (Mar 19, 2021).
Original GitHub issue: https://github.com/fsouza/fake-gcs-server/issues/459
Getting this error "certificate is valid for example.com, not localhost" with go client
compose file
go code:
@fsouza commented on GitHub (Mar 19, 2021):
That's weird 🤔 What's your go version?
@anasanzari commented on GitHub (Mar 19, 2021):
@fsouza it's 1.15
@fsouza commented on GitHub (Mar 19, 2021):
@anasanzari is
s.Storageandclientthe same? Could you provide a full reproducer? (you can use the go example as a starting point and add the necessary changes to make the ACL change)@anasanzari commented on GitHub (Mar 20, 2021):
@fsouza Here's a full test
Client fails with error: "Post "https://localhost:4443/upload/storage/v1/b/test/o?alt=json&name=a.jpeg&prettyPrint=false&projection=full&uploadType=multipart": x509: certificate is valid for example.com, not localhost"
Container logs:
@anasanzari commented on GitHub (Mar 20, 2021):
@fsouza so issue is that i was not setting
InsecureSkipVerifyYou could update the example to have that.
@fsouza commented on GitHub (Mar 20, 2021):
Oh I see. The example uses http, not https, but let me add a comment to it.