Getting error while Sign the certificate signing request with the root CA - client-certificates

Can't open ca.crt for reading, No such file or directory
140637034583360:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:69:fopen('ca.crt','r')
140637034583360:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:76:
unable to load certificate

Related

error:02001002:system library:fopen:No such file or directory: fopen('certificate.pem','r')

I made a Go application. I'm using cobra library for run in terminal with just executable file.
I have a certificate.pem file under the root folder because I publish event to kafka.
In my IDE (goland) it worked. But when I move executable file to /usr/local/bin/ I'm getting error as followings:
error:02001002:system library:fopen:No such file or directory: fopen('certificate.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file Failed to create producer: ssl.ca.location failed: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib panic: runtime error: invalid memory address or nil pointer dereference panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0xa8 pc=0x412c179]
I changed path to '../certificate.pem' and '/certificate.pem' but it does not work

Unable to mysql2 gem on windows 11 due to SSL issues - all other gems work

I'm trying to install the mysql2 gem using RoR 8.16.0, and I keep on getting SSL errors.
I've made sure all my certs are installed correctly. I have no issues with any other gems, and I can't seem to find the problem. Pretty frustrating, as I can't get any work done without my DB.
I ran:
gem install mysql2
here is the result:
Temporarily enhancing PATH for MSYS/MINGW...
Installing required msys2 packages: mingw-w64-ucrt-x86_64-libmariadbclient
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirror.msys2.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirror.msys2.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirror.msys2.org : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirror.msys2.org, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirror.msys2.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirror.msys2.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from repo.msys2.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from repo.msys2.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from repo.msys2.org : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from repo.msys2.org, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from download.nus.edu.sg : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from download.nus.edu.sg : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from ftp.acc.umu.se : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from ftp.acc.umu.se : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from ftp.acc.umu.se : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from ftp.acc.umu.se, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from ftp.acc.umu.se : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from ftp.acc.umu.se : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from ftp.nluug.nl : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from ftp.nluug.nl : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from ftp.nluug.nl : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from ftp.nluug.nl, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from ftp.nluug.nl : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from ftp.nluug.nl : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from ftp.osuosl.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from ftp.osuosl.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from ftp.osuosl.org : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from ftp.osuosl.org, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from ftp.osuosl.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from ftp.osuosl.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirror.internet.asn.au : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirror.internet.asn.au : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirror.internet.asn.au : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirror.internet.asn.au, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirror.internet.asn.au : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirror.internet.asn.au : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirror.selfnet.de : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirror.selfnet.de : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirror.selfnet.de : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirror.selfnet.de, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirror.selfnet.de : SSL certificate problem: unable to get local issuer certificate
from mirrors.dotsrc.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirrors.dotsrc.org : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirrors.dotsrc.org, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirrors.dotsrc.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirrors.dotsrc.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirrors.bfsu.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirrors.bfsu.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirrors.bfsu.edu.cn : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirrors.bfsu.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirrors.bfsu.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirrors.bfsu.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirrors.tuna.tsinghua.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirrors.tuna.tsinghua.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirrors.tuna.tsinghua.edu.cn : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirrors.tuna.tsinghua.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirrors.tuna.tsinghua.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirrors.tuna.tsinghua.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirrors.ustc.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirrors.ustc.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirrors.ustc.edu.cn : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirrors.ustc.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirrors.ustc.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirrors.ustc.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirror.nju.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirror.nju.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirror.nju.edu.cn : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirror.nju.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirror.nju.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirror.nju.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from repo.extreme-ix.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from repo.extreme-ix.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from repo.extreme-ix.org : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from repo.extreme-ix.org, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from repo.extreme-ix.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from repo.extreme-ix.org : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirrors.hit.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirrors.hit.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirrors.hit.edu.cn : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirrors.hit.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirrors.hit.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirrors.hit.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirror.clarkson.edu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirror.clarkson.edu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirror.clarkson.edu : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirror.clarkson.edu, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirror.clarkson.edu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirror.clarkson.edu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from fastmirror.pp.ua : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from fastmirror.pp.ua : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from fastmirror.pp.ua : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from fastmirror.pp.ua, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from fastmirror.pp.ua : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from fastmirror.pp.ua : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from ftp.cc.uoc.gr : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from ftp.cc.uoc.gr : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from ftp.cc.uoc.gr : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from ftp.cc.uoc.gr, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from ftp.cc.uoc.gr : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from ftp.cc.uoc.gr : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirror.jmu.edu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirror.jmu.edu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirror.jmu.edu : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirror.jmu.edu, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirror.jmu.edu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirror.jmu.edu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirrors.piconets.webwerks.in : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirrors.piconets.webwerks.in : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirrors.piconets.webwerks.in : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirrors.piconets.webwerks.in, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirrors.piconets.webwerks.in : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirrors.piconets.webwerks.in : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from quantum-mirror.hu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from quantum-mirror.hu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from quantum-mirror.hu : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from quantum-mirror.hu, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from quantum-mirror.hu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from quantum-mirror.hu : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from www2.futureware.at : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from www2.futureware.at : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from www2.futureware.at : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from www2.futureware.at, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from www2.futureware.at : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from www2.futureware.at : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirrors.sjtug.sjtu.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirrors.sjtug.sjtu.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirrors.sjtug.sjtu.edu.cn : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirrors.sjtug.sjtu.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirrors.sjtug.sjtu.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirrors.sjtug.sjtu.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirrors.bit.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirrors.bit.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirrors.bit.edu.cn : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirrors.bit.edu.cn, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirrors.bit.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirrors.bit.edu.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from repo.casualgamer.ca : SSL certificate problem: self signed certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from repo.casualgamer.ca : SSL certificate problem: self signed certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirrors.aliyun.com : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any.pkg.tar.zst' from mirror.iscas.ac.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any.pkg.tar.zst' from mirror.iscas.ac.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-curl-7.82.0-1-any.pkg.tar.zst' from mirror.iscas.ac.cn : SSL certificate problem: unable to get local issuer certificate
warning: too many errors from mirror.iscas.ac.cn, skipping for the remainder of this transaction
error: failed retrieving file 'mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any.pkg.tar.zst' from mirror.iscas.ac.cn : SSL certificate problem: unable to get local issuer certificate
error: failed retrieving file 'mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any.pkg.tar.zst' from mirror.iscas.ac.cn : SSL certificate problem: unable to get local issuer certificate
warning: failed to retrieve some files
error: failed to commit transaction (download library error)
pacman failed with the following output:
resolving dependencies...
looking for conflicting packages...
Packages (18) mingw-w64-ucrt-x86_64-brotli-1.0.9-4 mingw-w64-ucrt-x86_64-c-ares-1.18.1-1 mingw-w64-ucrt-x86_64-ca-certificates-20210119-1 mingw-w64-ucrt-x86_64-curl-7.82.0-1 mingw-w64-ucrt-x86_64-jansson-2.14-2 mingw-w64-ucrt-x86_64-jemalloc-5.2.1-2 mingw-w64-ucrt-x86_64-libffi-3.3-4 mingw-w64-ucrt-x86_64-libidn2-2.3.2-1 mingw-w64-ucrt-x86_64-libpsl-0.21.1-4 mingw-w64-ucrt-x86_64-libssh2-1.10.0-1 mingw-w64-ucrt-x86_64-libtasn1-4.18.0-1 mingw-w64-ucrt-x86_64-libunistring-0.9.10-4 mingw-w64-ucrt-x86_64-libxml2-2.9.13-1 mingw-w64-ucrt-x86_64-nghttp2-1.47.0-1 mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1 mingw-w64-ucrt-x86_64-p11-kit-0.24.1-2 mingw-w64-ucrt-x86_64-xz-5.2.5-2 mingw-w64-ucrt-x86_64-libmariadbclient-3.1.13-1
Total Download Size: 11.23 MiB
Total Installed Size: 105.74 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
mingw-w64-ucrt-x86_64-openssl-1.1.1.n-1-any downloading...
mingw-w64-ucrt-x86_64-libxml2-2.9.13-1-any downloading...
mingw-w64-ucrt-x86_64-curl-7.82.0-1-any downloading...
mingw-w64-ucrt-x86_64-libunistring-0.9.10-4-any downloading...
mingw-w64-ucrt-x86_64-brotli-1.0.9-4-any downloading...
Errors occurred, no packages were upgraded.
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
current directory: C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mysql2-0.5.4/ext/mysql2
C:/Ruby31-x64/bin/ruby.exe -I C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0 extconf.rb
checking for rb_absint_size()... yes
checking for rb_absint_singlebit_p()... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enc_interned_str() in ruby.h... yes
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby31-x64/bin/$(RUBY_BASE_NAME)
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysql-config
--without-mysql-config
--with-mysqlclient-dir
--without-mysqlclient-dir
--with-mysqlclient-include
--without-mysqlclient-include=${mysqlclient-dir}/include
--with-mysqlclient-lib
--without-mysqlclient-lib=${mysqlclient-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
C:/Ruby31-x64/lib/ruby/3.1.0/mkmf.rb:1086:in `block in find_library': undefined method `split' for nil:NilClass (NoMethodError)
paths = paths.flat_map {|path| path.split(File::PATH_SEPARATOR)}
^^^^^^
from C:/Ruby31-x64/lib/ruby/3.1.0/mkmf.rb:1086:in `each'
from C:/Ruby31-x64/lib/ruby/3.1.0/mkmf.rb:1086:in `flat_map'
from C:/Ruby31-x64/lib/ruby/3.1.0/mkmf.rb:1086:in `find_library'
from extconf.rb:103:in `<main>'
To see why this extension failed to compile, please check the mkmf.log which can be found here:
C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/mysql2-0.5.4/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/mysql2-0.5.4 for inspection.
Results logged to C:/Ruby31-x64/lib/ruby/gems/3.1.0/extensions/x64-mingw-ucrt/3.1.0/mysql2-0.5.4/gem_make.out
I would really appreciate some help!
Thanks in Advance!
I finally figured it out. There were 2 issues:
I'm using a company certificate that I originally installed in ruby & rubygems dir. Apparently, that was enough for all the other gems I installed. As per this post, I also needed to install the cert in the mingw cert dir, by copying the cert to C:\Ruby-x64\msys64\usr\ssl\certs\ca-bundle.crt. For some reason, this affected the mysql2 gem.
As per the mysql2 gem, according to this answer, (the part that discusses mysql2 gem specifically), running gem install mysql2 was not enough. I had to run
gem install mysql2 -- '--with-mysql-lib="c:\Program Files\MySQL\MySQL
Server 8.0\lib" --with-mysql-include="c:\Program Files\MySQL\MySQL Server
8.0\include"'
Whew!

Integration between Kiwi TCMS and GitLab

I've got a problem with my certificate for GitLab Integration with Kiwi TCMS. I mount my own certificate file under /Kiwi/ssl/localhost.crt
I am trying to Report bug in my TestRun and I get this message:
Internal error: HTTPSConnectionPool(host='gitlab.rosatom.local', port=443): Max retries exceeded with url: /api/v4/projects/platforms%2Fdocgen%2Fdocgenmanager2.0-frontend.git (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)')))

SSL: CERTIFICATE_VERIFY_FAILED 1091

I am trying to read in excel files to Pandas from the following URLs:
url = 'https://www.anac.gob.ar/anac/web/uploads/estadisticas/series-hist-ricas-anac.xlsx'
pd.read_excel(url)
I get the error:
#URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1091)>
How can I do it?

Installing cosmos db emulator SSL certificate in docker redhat/kafka-connect container

I did the setup of the Cosmos DB emulator on the local machine, and started with the following parameters:
/port=443 /AllowNetworkAccess /Key=<CosmosPrimaryKey>
And currently, it is accessible via https://<LocalMachineIP>/
When I tried to make a curl request from the docker Redhat container (using docker image: confluentinc/cp-kafka-connect) it throws the below error:
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
And when trying to crate cosmos DB source connector it throws the below error:
[20 10:37:45,018] ERROR Client initialization failed. Check if the endpoint is reachable and if your auth token is valid. More info: https://aka.ms/cosmosdb-tsg-service-unavailable-java (com.azure.cosmos.implementation.RxDocumentClientImpl)
[2022-05-20 10:37:45,079] ERROR unexpected failure in initializing client. (com.azure.cosmos.implementation.RxDocumentClientImpl)
java.lang.RuntimeException: Client initialization failed. Check if the endpoint is reachable and if your auth token is valid. More info: https://aka.ms/cosmosdb-tsg-service-unavailable-java
at com.azure.cosmos.implementation.RxDocumentClientImpl.initializeGatewayConfigurationReader(RxDocumentClientImpl.java:401)
.......
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
[2022-05-20 10:37:45,095] WARN [8e2a220b, L:/172.25.0.6:57076 ! R:/192.168.154.131:443] The connection observed an error (reactor.netty.http.client.HttpClientConnect)
shaded.io.netty.handler.codec.DecoderException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:477)
..........
at shaded.io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986)
at shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131)
.........
at shaded.io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1283)
at shaded.io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:507)
at shaded.io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:446)
... 17 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:439)
.....................
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1335)
... 31 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297)
at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434)
... 37 more
I have exported the cosmos emulator .cer file using this article.
How to install it in the Docker container "kafka-connect"?
Can you post your curl request?
You need to use the -k flag to denote that it’s insecure.
curl -k https://{emulatoripaddr}:8081/_explorer/emulator.pem > emulatorcert.crt
It needs to be .crt
Then copy it to
/usr/local/share/ca-certificates/
Then install it
update-ca-certificates
Additionally you can mount a volume to the cosmos folder and save the .pem manually… /tmp/cosmos/appdata

Resources