Help coderanch get a
new server
by contributing to the fundraiser

Darrel Davis

Greenhorn
+ Follow
since Nov 10, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Darrel Davis

Excellent reply, thank you.

I initially had trouble getting the .pfx file imported but eventually found out how to get the required alias using
keystore -list -v -keystore somefile.pfx -storetype pkcs12
since you suggested -destalias (-alias is required if using -destalias). I do want to set my alias so this was correct.

I'm now getting an NPE (Fault string, and possibly fault code, not set) but at least I no longer get messages
regarding the keystore.

Further down the road. Back to the code ;)

Thanks again.
13 years ago
I am creating a client to connect to a .Net web service using cxf and WS-Security. I was given a certificate (.pfx) from the
web-service owner. I converted the .pfx to a der (.cer) certificate.

I then created a new keystore using the command:
keytool -genkey -keyalg RSA -alias selfsigned -keystore sometrust.jks -storepass myownpass -validity 360 -keysize 2048

Then imported the converted certificate from the client:
keytool -import -trustcerts -alias mywebservice -file converted.cer -keystore sometrust.jks

The import seems to have completed correctly and I can list the certs in the keystore.

I'm pretty sure my configuration is correct and I've config'd the WSS4JOutInterceptor with 'mywebservice' (the alias of the key I want to use) but when I run the code I get an error:
Cannot find key for alias: [mywebservice]

Admittedly there are holes in my PKI understanding but is there an obvious step in my keystore management I'm missing?

TIA
13 years ago
I don't have any info specifically about your case since I'm just starting to look at CXF myself and will be deploying to Weblogic 10.3.x also. One thing I thought of was that we had to tell weblogic to prefer libraries we included with our webapp instead of the installed ones, which caused us tons of headaches due to WL's older libs and conflicts. We had to put the following block of xml in the weblogic.xml file, telling WL to use our libs over theirs:

<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>

It might help.

-darrel
13 years ago
Hi all,
I am a long time Java developer who has spent the last few years 'in the weeds' in code
which is definitely in the business logic realm and not the front end. The latest is delegate
code that feeds a Flex front-end.

I'm now starting a new project (personal, with enterprise-y intentions) and I started
looking around for a framework. In years past I had done quite a lot of struts development
and didn't actually hate it (as it appears I should ;) ). Once I pulled my head up
and looked around I find that I've missed quite a bit. Spring mainly. So, I decided
to start learning Spring MVC for the web tier. Spring seems a bit daunting I must
say.

My question is how happy folks are generally with Spring MVC? Also what are
other bulletproof frameworks?

Thanks,
-darrel
I am in the process of developing what will become a commercial application in Swing.
One of the decision points in choosing Java was its' cross-platform capabilities, even
though work is required to make it launch like a native application on each platform.

Where do you see Griffon fitting in the application space? Will it be/Is it suitable for development
of installable applications, whether open source or commercial? Are there any limitations which
would make it inappropriate for this? Are there any flagship applications that have been created
with Griffon?

Thank you for your answers,
-darrel
14 years ago