Search This Blog

Lets go..




Manage your Inventory | Grow your restaurant business | Manage your Employee | Control your accounts
Showing posts with label Authentication. Show all posts
Showing posts with label Authentication. Show all posts

Wednesday

Securing soap web service with Spring-WS using Wss4jSecurityInterceptor (Part-3 Client Part)

Sorry for late.
Description add later. Just follow this document.
http://docs.spring.io/spring-ws/site/reference/html/security.html 
I have just followed this article and writing code according to the instruction.
Complete source code download from bellow link:
https://www.dropbox.com/s/7bm6rgsmnozswyj/SecureSpringClient.zip?dl=0

If you will face any problem to run this code, feel free to  mail.
Please note that you must delete build folder from project and clean and build using Netbeans IDE again.

Thanks
Md Mahfuj Jia
Happy Coding...


Securing soap web service with Spring-WS using Wss4jSecurityInterceptor (Part-2 Server Part)

Sorry for late.
Description add later. Just follow this document.
http://docs.spring.io/spring-ws/site/reference/html/security.html 
I have just followed this article and writing code according to the instruction.
Complete source code download from bellow link:
https://www.dropbox.com/s/8pxx7mh8ljtpjkk/SecureSpringWS.zip?dl=0

If you will face any problem to run this code, feel free to  mail.

Thanks
Md Mahfuj Jia
Happy Coding...



Saturday

Securing soap web service with Spring-WS using Wss4jSecurityInterceptor (Part-1)

Author: Md Mahfuj Jia

Create Client/Server Keystores using Java Keytool

Run the following commands::

keytool -genkey -alias server -keyalg RSA -keystore server.jks
keytool -genkey -alias client -keyalg RSA -keystore client.jks
keytool -list -v -keystore server.jks -storepass server_public_keypass
keytool -export -file server.cert -keystore server.jks -storepass server_public_keypass -alias server
keytool -export -file client.cert -keystore client.jks -storepass client_public_keypass -alias client
keytool -import -file client.cert -keystore server.jks -storepass server_public_keypass -alias client
keytool -import -file server.cert -keystore client.jks -storepass client_public_keypass -alias server

Java keytool stores the keys and certificates in a keystore, protected by a keystore password. Further, it protects private key again with another password. A Java keystore contains private-public key pair and multiple trusted certificate entries. All entries in a keystore are referred by aliases. Both private key and self signed public key is referred by one alias while any other trusted certificates are referred by different individual aliases.

This is the first part of this tutorial. In second part we discuss about Spring web service server side security configuration and in 3rd part we make a secure client using spring web service client to consume this secure service.

These are some screen shots::