title: Certificate validation with ansible's maven_artifact
body: <p>I'm trying to pull a jar from a Nexus that is using a self signed certificate.</p>
  
  <pre><code>ansible -m maven_artifact -a "repository_url=https://&lt;nexus_host&gt;/repository/maven-snampshots group_id=&lt;group_id&gt; artifact_id=&lt;artifact_id&gt; dest=/tmp/jars validate_certs=yes username=admin password=admin123" -i inventory.ini env_dev
  </code></pre>
  
  <p>I'm getting the following error :</p>
  
  <blockquote>
    <p>"msg": "Failed to validate the SSL certificate for XXXXXX. Make sure
    your managed systems have a valid CA certificate installed. If the
    website serving the url uses SNI you need python >= 2.7.9 on your
    managed machine  (the python executable used (/usr/bin/python) is
    version: 2.6 (r26:66714, May  6 2011, 15:10:21) [GCC 4.3.4
    [gcc-4_3-branch revision 152973]]) or you can install the <code>urllib3</code>,
    <code>pyOpenSSL</code>, <code>ndg-httpsclient</code>, and <code>pyasn1</code> python modules to perform
    SNI verification in python >= 2.6. You can use validate_certs=False if
    you do not need to confirm the servers identity but this is unsafe and
    not recommended. Paths checked for this platform: /etc/ssl/certs,
    /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs,
    /usr/share/ca-certificates/cacert.org, /etc/ansible. The exception msg
    was: [Errno 1] _ssl.c:482: error:14090086:SSL
    routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed."</p>
  </blockquote>
  
  <p>Chrome let me download the certificate (.cer) from the Nexus server. But I don't know where do I need to install it. And How.</p>
  
  <pre><code>Nexus : OSS 3.14.0-04
  Server Ansible : CentOS Linux release 7.6.1810
  Client Ansible : SUSE Linux Enterprise Server 11 (x86_64)
  </code></pre>