|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (4)
View Page HistoryThe goal of this use-case is to show you how to configure the service units of BS Soap on both sides:
* to import into Petals, an external service secured with SSL and WS-Security,
* to import into Petals, an external service secured with SSL and WS-Security. This external service is implemented using SoapUI,
* to export to outside an internal Petals service, secured with SSL and WS-Security.
h3. About the service provider
A service provider 'ArticleServiceContinuation' is available as a SoapUI mock secured by SSL and WSS at [http://localhost:8088/mockArticleServiceContinuationSoap11Binding-SSL-WSS?wsdl]. Just import the [SoapUI project|https://svn.petalslink.org/svnroot/trunk/product/dev/prod/petals/petals-samples/petals-samples-soap/sa-SOAP-samples-Proxy-SSL-WSS/src/soapui/Petals-Samples---BC-SOAP---Proxy-SSL-WSS-soapui-project.xml] and start the mocked service 'ArticleServiceContinuationSoap11Binding-SSL-WSS MockService'.
Once the SoapUI project mocking the external service provider is imported:
# generate the key store 'external',
# configure your SoapUI to use SSL with mocked service 'ArticleServiceContinuationSoap11Binding-SSL-WSS MockService', and start it.
h3. Generate the key store 'external'
The key store 'external' containing the private/public key pair of the external service provider for SSL can be generated with the following command line:
{code}
keytool -genkey -alias soapui-external-service-provider -keyalg RSA -keypass petals \
-dname "CN=SSL External Service Provider, OU=Petals, O=Linagora, L=Grasse, ST=AM, C=FR" \
-storepass petals -keystore keystore-external.jks
{code}
h3. Configure SoapUI to use SSL with the mocked service provider
# In SoapUI, click *Preferences* on the main toolbar or select *File* > *Preferences* and switch to the *SSL Preferences* page.
# Specify the path to the created keystore and the password, as well as the password for the key (even if you specified the same password when creating the keystore):
SSL Preferences
# generate the key store 'external',
# configure your SoapUI to use SSL with mocked service 'ArticleServiceContinuationSoap11Binding-SSL-WSS MockService', and start it.
h3. Generate the key store 'external'
The key store 'external' containing the private/public key pair of the external service provider for SSL can be generated with the following command line:
{code}
keytool -genkey -alias soapui-external-service-provider -keyalg RSA -keypass petals \
-dname "CN=SSL External Service Provider, OU=Petals, O=Linagora, L=Grasse, ST=AM, C=FR" \
-storepass petals -keystore keystore-external.jks
{code}
h3. Configure SoapUI to use SSL with the mocked service provider
# In SoapUI, click *Preferences* on the main toolbar or select *File* > *Preferences* and switch to the *SSL Preferences* page.
# Specify the path to the created keystore and the password, as well as the password for the key (even if you specified the same password when creating the keystore):
SSL Preferences
h2. Securing a service running into Petals using 2-Way SSL and WS-Security