Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Problems with HTTPS: certificate verify failed #1

Open
dschuessler opened this issue Jul 14, 2020 · 0 comments
Open

Problems with HTTPS: certificate verify failed #1

dschuessler opened this issue Jul 14, 2020 · 0 comments

Comments

@dschuessler
Copy link

Thank you for your blog post and your repository! Unfortunately I don't get it to work.

When I start the setup with mocks turned on (docker-compose -f docker-compose.yml -f docker-compose.mocks.yml up) and navigate to http://localhost:8888/?service=1 I get this message in my browser:

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed in /var/www/html/public/index.php on line 6

Warning: file_get_contents(): Failed to enable crypto in /var/www/html/public/index.php on line 6

Warning: file_get_contents(https://service1.paddle.com/test): failed to open stream: operation failed in /var/www/html/public/index.php on line 6

Creating a new certificate with openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout paddle_cert.key -out paddle_cert.crt -subj "/C=GB/L=London/O=Paddle/OU=Engineering/CN=service1.paddle.com" as described in docker/mountebank/ssl/README and copying key and certificate into docker/mountebank/resources/imposters/imposters.ejs yields the same effect.

I'd appreciate any help.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant