minio / mint

Collection of tests to detect overall correctness of MinIO server.
Apache License 2.0
78 stars 50 forks source link

Error: unable to load certificate #344

Closed Edgar-P-yan closed 2 years ago

Edgar-P-yan commented 2 years ago

Hi! I was trying to test an S3 server, but this errors comes out. With other sdks and S3 clients like Cyberduck all the requests work just fine. I tried to get logs with docker cp f2c495c54a5b:/mint/log /tmp/mint-logs, but got no log files, only an empty folder /tmp/mint-logs/log

sudo docker run -e "SERVER_ENDPOINT=***"  -e "DOMAIN=***" -e "ACCESS_KEY=***" -e "SECRET_KEY=***" -e "ENABLE_HTTPS=1" minio/mint awscli
Running with
SERVER_ENDPOINT:      ***
ACCESS_KEY:           ***
SECRET_KEY:           ***REDACTED***
ENABLE_HTTPS:         1
SERVER_REGION:        us-east-1
MINT_DATA_DIR:        /mint/data
MINT_MODE:            core
ENABLE_VIRTUAL_STYLE: 0

To get logs, run 'docker cp f2c495c54a5b:/mint/log /tmp/mint-logs'

unable to load certificate
139963432628672:error:0909006C:PEM routines:get_name:no start line:../crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE
Edgar-P-yan commented 2 years ago

I found out that the error was caused by trust_s3_endpoint_tls_cert function, so i just commented out the line where this function is called and problem fixed: https://github.com/minio/mint/blob/770a77d944c073b0f97189aad967b0066faf4ef9/mint.sh#L155