I need to make a REST service call using ClientBuilder.  We're using 2-way 
auth.  I don't have a truststore and keystore on disk, but I do have cert 
files.  It looks like I can create both the truststore and keystore in memory, 
but there are two issues that seem like they are going to be a problem:

First, this isn't really specific to CXF, but I don't know what alias names to 
use for the cert and key.  It might not matter, but I just don't know.

Second, although I can create both the truststore and keystore in memory, both 
without setting a password for them, and I can set the truststore into the 
ClientBuilder, I don't appear to have an option to set the keystore into the 
builder, because I don't have a password for it (it won't allow a null value 
for the password).

I would set passwords for either of those stores, but I don't know how to set 
the password for a keystore in memory.  I see how to set it when writing it to 
disk, but do I really need to write the store to disk in order to set a 
password for it?

Much of this is independent of CXF, but I don't know if there are any shortcuts 
available in CXF for this.

Reply via email to