You can supply whole dnf.conf via "config_opts['dnf.conf']" or
(better) just supply your CA via "config_opts['ssl_extra_certs']" or
whola CA bundle "config_opts['ssl_ca_bundle_path']", see docs at
https://github.com/rpm-software-management/mock/blob/main/mock/docs/site-defaults.cfg#L664-L681

On Wed, Apr 30, 2025 at 8:34 PM lejeczek via buildsys
<buildsys@lists.fedoraproject.org> wrote:
>
> Hi guys.
>
> Is it possible - if yes then how - to tell mock not to worry about invalid 
> certificate?
> ...
> http://ctrl.mine.priv/repo/el10/x86_64/                                       
>                  0.0  B/s |   0  B     00:00
> Errors during downloading metadata for repository 
> 'ctrlminepriv_repo_el10_x86_64_':
>   - Curl error (60): SSL peer certificate or SSH remote key was not OK for 
> https://ctrl.mine.priv/repo/el10/x86_64/repodata/repomd.xml [SSL certificate 
> problem: unable to get local issuer certificate]
> Error: Failed to download metadata for repo 'ctrlminepriv_repo_el10_x86_64_': 
> Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors 
> were tried
> ...
>
> thanks, L.
>
> --
> _______________________________________________
> buildsys mailing list -- buildsys@lists.fedoraproject.org
> To unsubscribe send an email to buildsys-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/buildsys@lists.fedoraproject.org
> Do not reply to spam, report it: 
> https://pagure.io/fedora-infrastructure/new_issue



-- 

            Tomas Kopecek <tkope...@redhat.com>
            RHEL Build Development, RedHat

-- 
_______________________________________________
buildsys mailing list -- buildsys@lists.fedoraproject.org
To unsubscribe send an email to buildsys-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/buildsys@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to