What are the Slack Archives?
It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
On MacOS, the cli container can't access a specific https address. Getting SSL handshake error. Any
On MacOS, the cli container can't access a specific https address. Getting SSL handshake error. Any idea?
Comments
-
Maybe outdated SSL cipher suite on the server?
Do you access the https endpoint via curl or via php (through file handlers for example)?
Can the https endpoint be accessed in your browser? And viadocker/sdk cli curl <endpoint>
You could also usedocker/sdk cli openssl s_client -connect <endpoint>:443 -prexit -showcerts
to see a more detailed view on why the SSL handshake is failing0 -
Turns out it's due to an invalid certificate.
I imported the certificate on my host and made it trust it. But still, the docker container doesn't want to connect. Did I miss to restart something?0 -
Importing it on your host will not help in these case.
If you are using curl in PHP (e.g.: through guzzle) you can set those two parameters to ignore the SSL validation, please make sure to keep that for your local development only:curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
0 -
(Background, docker is a linux system running on your host, on mac and windows it will not use the same certificate storage as your host system, on linux you could at least mount your certificates into docker. You could import the self signed certificate during the docker build process to make it available in your docker container. But to my knowledge there is no easy possibility to do so with the docker/sdk from Spryker)
0 -
Thx for clarification.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random