Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Magento 2 Cloud Docker SSL certificate hostname change #353

Open
harendraprajapati opened this issue Sep 4, 2022 · 1 comment
Open

Magento 2 Cloud Docker SSL certificate hostname change #353

harendraprajapati opened this issue Sep 4, 2022 · 1 comment

Comments

@harendraprajapati
Copy link

I am using setup my local Cloud Docker https://devdocs.magento.com/cloud/docker/docker-development.html

local hostname set - test.test

To configure the custom host and port, add the host and port options to the build:compose command.

./vendor/bin/ece-docker build:compose --host=test.test --port=80

Still SSL certificate showing default magento2.docker on browser. How to change SSL certificate name as host. needed to DNS- test.test

Please let me know how change certificate name in magento2 docker cloud deploying into localhost.

@birdman002
Copy link

Something to try, seen it on slack havent tried it myself yet as we bought a cheap ssl cert

Install mkcert https://github.com/FiloSottile/mkcert
Run initial mkcert commands to get CA installed
Generate your ssl for whatever you want it to be
After generating the key pair I had to add it to the tls container:
tls:
volumes:
- './.docker/magento2.docker-key.pem:/etc/nginx/ssl/magento.key'
-'./.docker/magento2.docker.pem:/etc/nginx/ssl/magento.crt'

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

No branches or pull requests

2 participants