Dvc push error on Self signed certificate

Hi all,
Using dvc push on remote defined by minio (S3 compatible) I got this well known error :slight_smile:

dvc -v push -r minio --all-commits --all-tags --all-branches
ERROR: unexpected error - SSL validation failed for https://minio.dev.csai.crigen.myengie.com/dvc/04/c083370107dcaa417e33081249ad97.dir Cannot connect to host minio.dev.csai.crigen.myengie.com:443 ssl:True [SSLCertVerificationError: (1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)’)]

dvc doctor output is
DVC version: 2.38.1 (conda)

Platform: Python 3.10.8 on Windows-10-10.0.19044-SP0
dvc_data = 0.28.4
dvc_objects = 0.14.0
dvc_render = 0.0.15
dvc_task = 0.1.8
dvclive = 1.2.2
scmrepo = 0.1.4
http (aiohttp = 3.8.3, aiohttp-retry = 2.8.3),
https (aiohttp = 3.8.3, aiohttp-retry = 2.8.3),
s3 (s3fs = 2023.1.0, boto3 = 1.24.59)
Cache types: hardlink
Cache directory: NTFS on C:
Caches: local
Remotes: local, s3
Workspace directory: NTFS on C:
Repo: dvc, git

You can set ssl_verify config. See remote modify.

dvc remote modify <remote_name> ssl_verify false
dvc remote modify <remote_name> ssl_verify /path/to/sslcerts

Hi sorry for the delay
I got something like that

dvc -v push -r minio --all-commits --all-tags --all-branches
ERROR: unexpected error - Forbidden: An error occurred (403) when calling the HeadObject operation: Forbidden

Having any troubles? Hit us up at Support, we are always happy to help!

Can add
dvc remote list
remote_dir C:\Users\JB6407\Documents\Mooc-DVC\example-versioning.dvc..\data
minio s3://dvc
s3remote s3://cdh-platoonbmstest-516135/tool2output/dvcoutput


Seems like a permission issue. Check that you are using correct credentials. I would start with making sure that aws s3 CLI works with the same creds and params.

Hi @kupruser , I think I’m doing mix of s3 / minio wrong manipulation.
s3remote was OK.
when I switch to minio I’ve tried several syntax but not clear if minio will use s3 credentials or not.
see for example python - Installation DVC on MinIO storage - Stack Overflow
I’ve commented my .aws/credential file

So sounds like there is something wrong with the config. Try to make aws s3 cli work with minio and then once you get it working - dvc should also start working with the same confiruguration. It is just hard to put my finger on something specific right now.