Use Cases for Petals BC SOAP 5.0.0+

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (3)

View Page History
!SoapUI-SSL-Configuration.png!

h3. Generate the key store 'Petals'

The key store 'Petals' containing the private/public key pair of the proxyfied service provider for SSL can be generated with the following command line:
{code}
keytool -genkey -alias petals-service-provider -keyalg RSA -keypass keypetalspwd \
-dname "CN=SSL Proxyfied Service Provider, OU=Petals, O=Linagora, L=Grasse, ST=AM, C=FR" \
-storepass keystorepetalspwd -keystore /tmp/keystore-petals.jks
{code}

h3. Configure SSL at Petals BC Soap level

Not only, SSL is configured at Petals BC Soap level, but also at service consumer level:
* at component level to inject the keystore configuration:
** `https-keystore-file`: The keystore file generated as described below,
** `https-keystore-password`: The keystore file password,
** `https-key-password`: the provate key password.
* at service consumer level to define which transport (http, https or jms) must be used to expose the service provider.

h3. Running the use case

{code}

Create a configuration file for the Petals BC Soap:
{code}
echo "httpsEnabled=true" >> /tmp/petals-bc-soap.cfg
echo "httpsKeystoreFile=/tmp/keystore-petals.jks" >> /tmp/petals-bc-soap.cfg
echo "httpsKeystorePassword=keystorepetalspwd" >> /tmp/petals-bc-soap.cfg
echo "httpsKeyPassword=keypetalspwd" >> /tmp/petals-bc-soap.cfg
{code}

Deploy Petals artifacts:
{code}
petals-cli.sh -c -- deploy -u mvn:org.ow2.petals/petals-bc-soap/5.0.1/zip --file /tmp/petals-bc-soap.cfg
petals-cli.sh -c -- deploy -u mvn:org.ow2.petals.samples.soap/sa-SOAP-samples-Proxy-SSL-WSS/5.0.1-1.0.0-SNAPSHOT/zip
{code}