Build failed due to SSL Certificate Verification Error

I am trying to build Couchbase Server on CentOS 7.6, but I’m facing this SSL certificate verification error:

-- Creating Miniconda3 4.5.4 venv 
-- Downloading and caching miniconda3-4.5.4 
CMake Error at tlm/cmake/ModulPreformatted textes/CBDownloadDeps.cmake:359 (MESSAGE): 
  Failed installing cbdep miniconda3 4.5.4: Safe version is 4.5.4 
 
  Starting install for package miniconda3 
 
  Identified platform Linux 
 
  [100576] Failed to execute script cbdep 
 
  Traceback (most recent call last): 
 
    File "urllib3/connectionpool.py", line 600, in urlopen 
    File "urllib3/connectionpool.py", line 343, in _make_request 
    File "urllib3/connectionpool.py", line 839, in _validate_conn 
    File "urllib3/connection.py", line 344, in connect 
    File "urllib3/util/ssl_.py", line 344, in ssl_wrap_socket 
    File "ssl.py", line 407, in wrap_socket 
    File "ssl.py", line 814, in __init__ 
    File "ssl.py", line 1068, in do_handshake 
    File "ssl.py", line 689, in do_handshake 
 
  ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed 
  (_ssl.c:841)`Preformatted text`

I have already installed the correct CA certificate on my system and have verified that I am able to download other packages.

I believe I have to install the certificate again in some virtual environment to resolve this error. I’m also ok with turning off verification altogether. How do I do either of these things?