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

SSL issue on OSX when creating new project (m2c init) #49

Closed
nverhoye opened this issue Sep 15, 2020 · 6 comments
Closed

SSL issue on OSX when creating new project (m2c init) #49

nverhoye opened this issue Sep 15, 2020 · 6 comments

Comments

@nverhoye
Copy link

nverhoye commented Sep 15, 2020

Hello,

I'm trying to setup et new project magento.
But there is an issue when i'm using m2c init command.

m2c version : v0.10.5
OSX version : Catalina 0.15.6
OpenSSL version : 1.1.1g 21 Apr 2020

See details :
[Installing SSL certificate]
Generating private key for SSL certificate................................... ✔
Creating signing request for SSL certificate................................. ✔
Signing SSL certificate...................................................... ✘
Signature ok
subject=O = Mage2click, OU = IT, CN = m2c.demo.test
Getting CA Private Key
unable to load CA Private Key
4575055296:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:crypto/evp/evp_enc.c:583:
4575055296:error:0906A065:PEM routines:PEM_do_header:bad decrypt:crypto/pem/pem_lib.c:461:

And when i open m2c.demo.test there is a 404 page (yes i added 127.0.0.1 m2c.demo.test to /etc/hosts file)

Can you help me please ?

@nverhoye nverhoye changed the title Certificate issue on OSX when creating new project (m2c init) SSL issue on OSX when creating new project (m2c init) Sep 15, 2020
@shkoliar
Copy link
Member

Hello @nverhoye,

There was a change in signing password length due to new macOS requirements for signing certificates. Try to remove ~/.m2c/ssl directory and run curl -sL get.m2c.run | bash to reinstall m2c. After this, you will need to re-sign all your local m2c projects domains by using m2c sign command.

@nverhoye
Copy link
Author

Hello @shkoliar

Thanks for your answer,

I removed ~/.m2c/ssl
I ran curl -sL get.m2c.run | bash to reinstall m2c
I created a new folder m2c.demo
I ran m2c sign command.
I rand m2c init command.

No error occurred, thanks !

But now, when i go to https://m2c.demo.test
I have "404 page not found"

I suppose it's an issue about nginx.
There is a file nginx.conf in my container.
I ran m2c restart nginx command
But 404 page not found still there.

Can you help me ?

Thanks a lot.

@nverhoye
Copy link
Author

nverhoye commented Sep 17, 2020

Some infos :

nverhoye@MacBook-Pro-de-Nicolas m2c.demo % m2c start

[Starting docker containers]

Db........................................................................... ✔
Xdebug....................................................................... ✔
PHP.......................................................................... ✔
Nginx........................................................................ ✔
Redis........................................................................ ✔

[Mutagen sync]

Creating sync sessions....................................................... ✔

nverhoye@MacBook-Pro-de-Nicolas m2c.demo % m2c status

Project: https://m2c.demo.test
Path: /Users/nverhoye/Projets/m2c.demo

CONTAINER ID  NAMES   IMAGE               STATUS
(empty)

But :

nverhoye@MacBook-Pro-de-Nicolas m2c.demo % docker ps
CONTAINER ID        IMAGE                               COMMAND                  CREATED             STATUS              PORTS                                          NAMES
f8cec0620375        mage2click/m2c:nginx-1.17-alpine    "/bin/sh -c /nginx"      21 minutes ago      Up 12 minutes       80/tcp                                         m2c.demo.test__nginx
73d6efc393ea        mage2click/m2c:php-fpm-7.3          "/bin/sh -c /php-fpm"    21 minutes ago      Up 21 minutes       9000/tcp                                       m2c.demo.test__php
2e1c3289f58a        mage2click/m2c:php-fpm-7.3-xdebug   "/bin/sh -c /php-fpm"    21 minutes ago      Up 21 minutes       9000/tcp                                       m2c.demo.test__xdebug
3012e51e23d3        mariadb:10.3                        "docker-entrypoint.s…"   21 minutes ago      Up 21 minutes       3306/tcp                                       m2c.demo.test__db
a80b66a2e53f        redis:5.0-alpine                    "docker-entrypoint.s…"   21 minutes ago      Up 21 minutes       6379/tcp                                       m2c.demo.test__redis
d92f6bd47adb        mailhog/mailhog:v1.0.0              "MailHog"                24 minutes ago      Up 24 minutes       1025/tcp, 8025/tcp                             m2c.test__mailhog
dfc00726dae0        traefik:2.2                         "/entrypoint.sh --ap…"   24 minutes ago      Up 15 minutes       127.0.0.1:80->80/tcp, 127.0.0.1:443->443/tcp   m2c.test__traefik
e4afd51af320        mage2click/m2c:home                 "/bin/sh -c /nginx"      24 minutes ago      Up 24 minutes       80/tcp, 127.0.0.1:33060->22/tcp                m2c.test__mage2click
d9b3f8f92abb        mage2click/m2c:dnsmasq              "webproc --config /e…"   24 minutes ago      Up 24 minutes       127.0.0.1:53->53/udp                           m2c.test__dnsmasq
3fc5af23b6fa        portainer/portainer:1.22.2          "/portainer"             24 minutes ago      Up 4 minutes        9000/tcp                                       m2c.test__portainer
nverhoye@MacBook-Pro-de-Nicolas m2c.demo % docker-compose logs nginx
Attaching to m2c.demo.test__nginx
m2c.demo.test__nginx | 2020/09/17 10:15:22 [notice] 11#11: using the "epoll" event method
m2c.demo.test__nginx | 2020/09/17 10:15:22 [notice] 11#11: nginx/1.17.6
m2c.demo.test__nginx | 2020/09/17 10:15:22 [notice] 11#11: built by gcc 8.3.0 (Alpine 8.3.0)
m2c.demo.test__nginx | 2020/09/17 10:15:22 [notice] 11#11: OS: Linux 4.19.76-linuxkit
m2c.demo.test__nginx | 2020/09/17 10:15:22 [notice] 11#11: getrlimit(RLIMIT_NOFILE): 1048576:1048576
m2c.demo.test__nginx | 2020/09/17 10:15:22 [notice] 11#11: start worker processes
m2c.demo.test__nginx | 2020/09/17 10:15:22 [notice] 11#11: start worker process 12
m2c.demo.test__nginx | 2020/09/17 10:15:22 [notice] 11#11: start worker process 13
m2c.demo.test__nginx | 2020/09/17 10:15:22 [notice] 11#11: start worker process 14
m2c.demo.test__nginx | 2020/09/17 10:15:22 [notice] 11#11: start worker process 15
m2c.demo.test__nginx | 2020/09/17 10:19:19 [notice] 9#9: using the "epoll" event method
m2c.demo.test__nginx | 2020/09/17 10:19:19 [notice] 9#9: nginx/1.17.6
m2c.demo.test__nginx | 2020/09/17 10:19:19 [notice] 9#9: built by gcc 8.3.0 (Alpine 8.3.0)
m2c.demo.test__nginx | 2020/09/17 10:19:19 [notice] 9#9: OS: Linux 4.19.76-linuxkit
m2c.demo.test__nginx | 2020/09/17 10:19:19 [notice] 9#9: getrlimit(RLIMIT_NOFILE): 1048576:1048576
m2c.demo.test__nginx | 2020/09/17 10:19:19 [notice] 9#9: start worker processes
m2c.demo.test__nginx | 2020/09/17 10:19:19 [notice] 9#9: start worker process 10
m2c.demo.test__nginx | 2020/09/17 10:19:19 [notice] 9#9: start worker process 11
m2c.demo.test__nginx | 2020/09/17 10:19:19 [notice] 9#9: start worker process 12
m2c.demo.test__nginx | 2020/09/17 10:19:19 [notice] 9#9: start worker process 13
m2c.demo.test__nginx | 2020/09/17 10:24:10 [notice] 9#9: using the "epoll" event method
m2c.demo.test__nginx | 2020/09/17 10:24:10 [notice] 9#9: nginx/1.17.6
m2c.demo.test__nginx | 2020/09/17 10:24:10 [notice] 9#9: built by gcc 8.3.0 (Alpine 8.3.0)
m2c.demo.test__nginx | 2020/09/17 10:24:10 [notice] 9#9: OS: Linux 4.19.76-linuxkit
m2c.demo.test__nginx | 2020/09/17 10:24:10 [notice] 9#9: getrlimit(RLIMIT_NOFILE): 1048576:1048576
m2c.demo.test__nginx | 2020/09/17 10:24:10 [notice] 9#9: start worker processes
m2c.demo.test__nginx | 2020/09/17 10:24:10 [notice] 9#9: start worker process 10
m2c.demo.test__nginx | 2020/09/17 10:24:10 [notice] 9#9: start worker process 11
m2c.demo.test__nginx | 2020/09/17 10:24:10 [notice] 9#9: start worker process 12
m2c.demo.test__nginx | 2020/09/17 10:24:10 [notice] 9#9: start worker process 13

Command m2c bash works.

It's weird, I don't have this issue with https://github.com/mage2click/docker-magento-mutagen

@shkoliar
Copy link
Member

Try to remove 127.0.0.1 m2c.demo.test from the /etc/hosts file, as it is not needed. Also, check if https://m2c.test and https://traefik.m2c.test are accessible.

@nverhoye
Copy link
Author

There is no 127.0.0.1 m2c.demo.test from the /etc/hosts file.
https://m2c.test and https://traefik.m2c.test are accessible.

@nverhoye
Copy link
Author

I completely uninstall and reinstall and it solve the problem

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

No branches or pull requests

2 participants