arvatoSCM / dockerize-magento2

Composer package for dockerizing Magento 2
Apache License 2.0
112 stars 56 forks source link

Generating SSL certificates failed #26

Open harrywutech opened 7 years ago

harrywutech commented 7 years ago

Hi there,

I got an error, would you please help me a little bit?

bin/console install docker.local Generating SSL certificates failed. Please place the key and certificate into the certificate-folder "/c/Users/PC000056/magento2/config/nginx/ssl": Key: /c/Users/PC000056/magento2/config/nginx/ssl/key.pem Cert: /c/Users/PC000056/magento2/config/nginx/ssl/cert.pem

How can i sovle this?

Thank you

harrywutech commented 7 years ago

I am using windows 10 pro

jking6884 commented 7 years ago

I saw this when I was setting it up using Ubuntu. On ubuntu I was able to resolve it by putting 'sudo' before the command:

sudo bin/console install docker.local

I don't code in a windows environment much so I don't know what the equivalent is, but it is probably a permissions issue.

victorw999 commented 6 years ago

@hanxiangwu Anybody found a solution yet? I'm having this issue too (My setup: Windows 10-Home, Docker Toolbox)

err

My Solution: (Generate OpenSSL Certificates for nginx on window machine) cd ~/magento2/config/nginx/ssl/ openssl req -x509 -nodes -days 36500 -newkey rsa:2048 -new -keyout key.pem -out cert.pem