
내 웹사이트에 tar.gz 및 zip 파일이 있습니다. 이 웹사이트는 aws(ubuntu 18)에서 호스팅됩니다. 하지만 사용자는 wget을 사용하여 다운로드할 수 없습니다. 실행하는 동안 이 오류가 발생합니다.
wget https://example.com/downloads/abc.tar.gz
개인정보 보호를 위해 웹사이트 이름 example.com을 유지했습니다.
Resolving abc.com (example.com)...
Connecting to example.com (example.com):443... connected.
ERROR: cannot verify example.com's certificate, issued by ‘CN=Sectigo RSA Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB’: Unable to locally verify the issuer's authority.
To connect to example.com insecurely, use `--no-check-certificate'.
컬도 작동하지 않습니다
curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented
in the bundle, the certificate verification probably failed due to a
problem with the certificate
(it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
답변1
해결되었습니다!
문제는 Apache 구성에 있었습니다. example.com에 대해 정의된 conf가 없습니다.
conf를 수정하자마자. 작동하기 시작했습니다.