Cloud customer?
Start for Free >
Upgrade in MyJFrog >
What's New in Cloud >





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

Compare with Current View Page History

« Previous Version 16 Next »

Overview

You can set up TLS between the JFrog Platform and external services by trusting external service certificates. JFrog services will not allow a SSL/TLS connection with an external service without a validation of the trusted CA certificate.

For example, you may want to connect to remote repositories, your LDAPS, internal proxy, OAuth server, or other external services over HTTPS. To that end, you may need to trust a certificate (for example, a self signed certificate) that was not signed by a trusted Certificate Authority (CA) and is used by the external service.

Page Contents

 


Trusting a Self-Signed Certificate or a New CA

To trust a new certificate, you can do one of the following:

  • Add the certificate to the application's KeyStore. For example, to add a certificate into the JFrog Artifactory KeyStore, you can add it directly to the host's JVM's trusted KeyStore.
  • Add the certificate to the $JFROG_HOME/<product>/var/etc/security/keys/trusted directory of every service that needs to trust it. 
  • If you are trying to connect a database over SSL, place the SSL certificates in the /etc/ssl/certs/ path to load the certificates during the startup by Metadata service.
  • For JFrog Xray, you will need to place the self-signed certificates under /etc/ssl/certs/ of each Xray instance.

HA Setup

For HA setup, you need to add the certificate to every node's trusted directory or KeyStore. The Certificates are not propagated between HA nodes automatically.

Downloading a Certificate

To download/acquire the certificate(s) of the SSL secured server, use the following command:

openssl s_client -connect <secure authentication server IP and port> -showcerts < /dev/null > server.crt

Examples

RED HAT CDN
openssl s_client -connect cdn.redhat.com:443 -showcerts < /dev/null > server.crt
LDAP or Active Directory
openssl s_client -connect the.ldap.server.net:636 -showcerts < /dev/null > server.crt
OAuth (Use the Authorization URL). For example, with GitHub
openssl s_client -connect github.com:443 -showcerts < /dev/null > server.crt
  • No labels
Copyright © 2022 JFrog Ltd.