Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »


For several security features that you want to use over a secure connection (such as LDAPS, Secure Active Directory, or Secure OAuth), you may configure Artifactory to allow a non-trusted self-signed certificate

Page Contents

Configuring a Self-Signed Certificate

For outbound Artifactory connections (remote repositories, external authentication servers...) intended for SSL self-signed/internal CA signed certificates URL endpoints, you may use use one of the following ways to establish trusts based on your certificates: 

  • Use the instructions described on Oracle's documentation to import a single/chain of certificates to your JVM's keystore.
  • Point Artifactory to use a custom certificate store. Follow the steps below (thanks to Marc Schoechlin for providing this information):
  1. Download/acquire the certificate(s) of the SSL secured server openssl s_client -connect <secure authentication server IP and port> -showcerts < /dev/null >


    LDAP or Active Directory:
    openssl s_client -connect -showcerts < /dev/null >

    OAuth (Use the Authorization URL). For example, with GitHub:
    openssl s_client -connect -showcerts < /dev/null > 

  2. Identify the CA certificate and keep only the ascii-text between BEGIN/END CERTIFICATE maker
  3. Identify the standard cacerts file of your Java installation
  4. Create a custom cacerts file by copying the cacerts file to the Artifactory configuration dir, e.g.
    cp /usr/lib64/jvm/java-1_6_0-ibm-1.6.0/jre/lib/security/cacerts /etc/opt/jfrog/artifactory/
  5. Import the CA certificate into the customized cacerts file
    keytool -import -alias myca -keystore /etc/opt/jfrog/artifactory/cacerts -trustcacerts -file
    => Password: changeit
    => Agree to add the certificate
  6. Change permissions for the artifactory user
    chmod 755 /etc/opt/jfrog/artifactory/cacerts
    chown artifactory:users /etc/opt/jfrog/artifactory/cacerts
  7. Modify the defaults of the Artifactory JVM to use the custom cacerts file
    echo "export JAVA_OPTIONS=\"\$JAVA_OPTIONS\"" >> /etc/opt/jfrog/artifactory/default
  8. Restart Artifactory




  • No labels