WS Security
WS-S-3 Asymmetric Encryption
Secure SOAP Client using RSA Encryption
Example
This section demonstrates how to make encrypted SOAP message using asymmetric algorithm (RSA).
- These examples are using a X.509 certificate to define the RSA key for encruption.
- To encrypt the message client uses public key of server's certificate, so only server know private key and can decrypt the message.
- In practice message itself is encrypted with 3DES algorthm using a random session key.
- The session key itself is encrypted with public part of RSA key.
- So the server first decode the session key, and then decrypt the message.
The Virtuoso VSP based clients demonstrate
- accessing Virtuoso Web Service with Virtuoso client using asymmetric algorithm
- accessing .NET Web service with Virtuoso client using asymmetric algorithm
To run .NET client against Virtuoso service you need:
- Microsoft WSE 2.0 installed
- Edit the Makefile and specify in CSLIBFLAGS where Microsoft.Web.Services.DLL reside.
- compile the example issuing nmake command in the tutorial/services/ws_s_3 directory.
- if you going to compile the client on an other box, make sure that .config file is in the same directory where is .exe file.
| View the source | Action |
|---|---|
| 1. ASymClient.cs | |
| 2. ASymClient2.cs | |
| 3. asymmeric_encryption_client.vsp | Run |
| 4. virt_asymmeric_encryption_client.vsp | Run |
| 5. wse_asymmeric_encryption_client.vsp | Run |
OpenLink Home
Technical Support