How to resolve “Could not run local repository replication for ‘xxxxx’: handshake alert: unrecognized_name” error?

In Artifactory’s Replication Properties, you may see the following error, when you run “Test” or run a replication:


Could not run local repository replication for ‘xxxxx’: handshake alert: unrecognized_name


This error could be shown if the web server’s certificate has Common Name or Subject Alternate Names (SAN) that does not match what is configured in your web server. For example, if your certificate has Common Name = *.yoursite.com, but you use “localhost” in your Apache’s httpd-ssl.conf file, then you may encounter this issue.


Please see your webserver’s logs to help debug the issue.


Furthermore, here is a detailed solution to trust the remote site’s certificate: https://support.jfrog.com/solution/articles/1000203899