Support Questions
Find answers, ask questions, and share your expertise

Access https via cert file from oozie workflow

New Contributor

We are connecting to https web-services, which is via cacerts on remote host.

How do we pass crt file from the workflow, or is the crt file path to be added to oozie config

2 REPLIES 2

Re: Access https via cert file from oozie workflow

@Sanjeev Tripurari

Are you trying to connect to https webservice? is it 2 way SSL enabled? if it is one way SSL then you don't need to pass any cert at client side. you may have to specify/pass Truststore path.

By using "-Djavax.net.ssl.trustStrore=/path/trustorefile.jks" cert can be specified at the client side.

Re: Access https via cert file from oozie workflow

New Contributor

Its not one way SSL, but getting this error, we have passed as you suggested.

Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

The path specified is it HDFS or localfilesystem, in your e.g.

"-Djavax.net.ssl.trustStrore=/path/trustorefile.jks"

As we are able to test via curl on command line, when the file is in /etc/pki/java/cacerts

But jobs fail, when submitted by oozie