docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

Generating ssl cert fails on Arch Linux

Open btantlinger opened this issue 2 years ago • 8 comments

Description

On an Arch based Linux, generating the ssl cert during domain setup fails due to incorrect paths in bin/setup-ssl-ca.

On line 68 of bin/setup-ssl-ca, for arch linux, this should be:

  sudo mv rootCA.pem /etc/ca-certificates/trust-source/anchors/rootCA.crt
  sudo update-ca-trust

Additionally, an error is thrown about dpkg-query (line 41) as that is not available on arch.

btantlinger avatar Oct 31 '22 21:10 btantlinger

Can anyone else confirm this issue or has a fix for this? (I don't run Linux so can't test/diagnose this).

markshust avatar Nov 20 '22 15:11 markshust

I can confirm this, I’m running Arch under WSL2.

llgdd avatar Nov 28 '22 09:11 llgdd

Thanks for confirming. Very willing to take in a PR that fixes this!

markshust avatar Nov 28 '22 21:11 markshust

Possibly related https://github.com/markshust/docker-magento/issues/784

markshust avatar Nov 28 '22 21:11 markshust

Hm, seems like the issue isn't just about Arch—it's about Linux in general, I get the same dpkg and cert messages on RPM distros...

llgdd avatar Nov 29 '22 13:11 llgdd

As far as I understand, under RHEL/CentOS you should do:

sudo mv rootCA.pem /etc/pki/ca-trust/source/anchors/rootCA.crt
sudo update-ca-trust

llgdd avatar Nov 29 '22 14:11 llgdd

Description

On an Arch based Linux, generating the ssl cert during domain setup fails due to incorrect paths in bin/setup-ssl-ca.

On line 68 of bin/setup-ssl-ca, for arch linux, this should be:

  sudo mv rootCA.pem /etc/ca-certificates/trust-source/anchors/rootCA.crt
  sudo update-ca-trust

Additionally, an error is thrown about dpkg-query (line 41) as that is not available on arch.

Hi @btantlinger, I'm using ubuntu22.04 and Docker on VPS, installed magento 2.4.6, when I add ssl (bin/setup-ssl and bin/setup-SSL-ca) to the website, and I can't find the trust-source/anchors/ folder in my system. How can I solve this problem. Screenshot_2 Screenshot_3 Screenshot_4 Screenshot_5

AngeloZou avatar Jun 12 '23 10:06 AngeloZou

@AngeloZou I get the same problem on my Ubuntu. Please, can you share the way to fix this?

kondzerau-ivan avatar Aug 02 '24 09:08 kondzerau-ivan