magento / magento-cloud-docker

All Submissions you make to Magento Inc. (“Magento") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, sublicense and distribute any feedback, ideas, code, or other information (“Submission") you submit through GitHub. (2) Your Submission is an original work of authorship and you are the owner or are legally entitled to grant the license stated above. (3) You agree to the Contributor License Agreement found here: https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html
Open Software License 3.0
256 stars 192 forks source link

Magento 2 Cloud Docker SSL certificate hostname change #353

Open harendraprajapati opened 2 years ago

harendraprajapati commented 2 years ago

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 commented 2 years ago

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: