foxysoft / idm-connector-bobj

SAP Identity Management connector for SAP BusinessObjects BI Platform
Apache License 2.0
5 stars 2 forks source link

mvn_import_cacert: XYZ.pem is encountered a second time #8

Closed boskamp closed 5 years ago

boskamp commented 6 years ago

./scripts/mvn_import_cacert services.gradle.org

results in the following error:

depth=2 C = GB, ST = Greater Manchester, L = Salford, O = COMODO CA Limited, CN = COMODO ECC Certification Authority
verify error:num=20:unable to get local issuer certificate
verify return:0
DONE
/etc/ssl/certs/Amazon_Root_CA_4.pem is encountered a second time at /usr/share/perl/5.18/File/Find.pm line 422.

The process ends there. No CA certificate is added to the Java keystore.

This seems to be related to a wrong option passed to File::Find in mvn_import_cacert, line 80: follow_fast => 1

When follow_fast => 1 is replaced with follow_skip => 2, the code works correctly (tested on Ubuntu 14.04).