Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Learn how to fix error: ''Unable to find valid certification path to requested target"
Next
Answered
lenorepollich
  • 10
lenorepollich
Asked: June 10, 20222022-06-10T06:43:27+00:00 2022-06-10T06:43:27+00:00In: java

Learn how to fix error: ”Unable to find valid certification path to requested target”

  • 10

. Advertisement .

..3..

. Advertisement .

..4..

When attempting to establish a trusted SSL connection via Artifactory, I get this error ”Unable to find valid certification path to requested target”.

Here is the error message I have gotten:

[ERROR] (o.a.a.r.c.BaseReplicationProducer:97) – Error occurred while performing folder replication for 'XXXX':
sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target:
sun.security.validator.ValidatorException:

Has anyone ever faced this problem? How to solve it? 

  • 1 1 Answer
  • 102 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    hdtutoria Expert
    2022-06-10T07:02:21+00:00Added an answer on June 10, 2022 at 7:02 am

    The cause: This error means Artifactory was unable to establish a secure SSL connection using SSL. If you’re using a self-signed certificate or one issued by an internal certificate authority, or if your clients (e.g., browser, Java) are outdated, you can run into this problem.

    The solution: Get your root certificate first. Then, (keeping in mind that if you’re working in a HA environment, you’ll need to apply these procedures to all of your nodes), do the following:

    1. Run openssl s_client -showcerts -connect <REMOTE_URL>:<REMOTE_PORT> to get the root and intermediate certificates for the remote site. Note: If you’re using the default JVM security setting, this might not be necessary.
      For example:

      openssl s_client -showcerts -connect google.com:443
    2. Each certificate need to be saved as a file. For instance:
    s:/C=US/ST=North Carolina/L=Raleigh/O=Red Hat, Inc./OU=Red Hat Network/CN=Entitlement Master
    CA/[email protected]
    i:/C=US/ST=North Carolina/L=Raleigh/O=Red Hat, Inc./OU=Red Hat Network/CN=Entitlement Master
    CA/[email protected]

    This shows that the issuer (i:) and the subject (s:) are the same.
    As a result, this certificate is the root certificate. Save the certificate’s hash, being sure to include:

    —–BEGIN CERTIFICATE—– and the —–END CERTIFICATE—–

    as the root.crt.

    • 15
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.