Introduction

In this guide will be described how configure SWS appliance or SWS SaaS with SoapUI. SWS SaaS require JKS while SWS SaaS no.

SoapUI

Steps for configure and test SoapUi

  1. Download and install the latest SoapUI version from this link: https://www.soapui.org/tools/soapui/.
  2. Launch the software.

  3. Add SSL Global certificate: File > Preferences > SSL Settings > KeyStore choose the jks → You can skip this step if you are using SWS Appliance (you can obtaint the test jks at this link)

  4. Select “File” > “New SOAP project”.

  5. Insert:

  • Project Name: insert the name you want to assign the project

  • Initial WSDL:


If you are using SWS SaaS you can use this link

https://sws-companynamesaas.test.namirialtsp.com/SignEngineWeb/sign-services?wsdl --> SWS-URL

NOTE: for test environment you can copy and paste the link above for make a TEST. In PROD will be create an endpoint and SSL certificate (JKS or P12) ad hoc for you company.


Else if yuo are using SWS appliance, you can use this link

http://<IP-APPLIANCE>:8080/SignEngineWeb/sign-services?wsdl --> SWS-URL

Click “OK”.

In output will obtain the list of method like below:




6. Double click on “sws-companynamesass.test.namirialtsp.com”. And the go to: WS-Security Configurations > Keystore > press on “+” and select the JKS download from this link to use for the SOAP request. → You can skip this step if you are using SWS Appliance



7. Double click on SignServiceSoapBinding > Service Endpoints > set the address correct:
SWS-URL (specified in the previous step)



8. Now, double click on the method “Get certificate” (left column) and set the parameter like in this example: → You can skip this step if you are using SWS Appliance


Click the     button to execute the request.
And set JKS to use like in the yellow line


9. The response will be presented as follows:
“Return” will contain the certificate in Base64 format.
Copy the whole string, paste it into a new txt file and change the extension to “.crt”.

Example


Device number: YOUR-DEVICE-NAME

Base64 certificate:
MIIGzDCCBbSgAwIBAgIIXPCpMleVGV0wDQYJKoZIhvcNAQELBQAwfTEmMCQGA1UEAwwdTmFtaXJpYWwgQ0EgRmlybWEgUXVhbGlmaWNhdGExIDAeBgNVBAsMF0NlcnRpZmljYXRpb24gQXV0aG9yaXR5MSQwIgYDVQQKDBtOYW1pcmlhbCBTLnAuQS4vMDIwNDY1NzA0MjYxCzAJBgNVBAYTAklUMB4XDTE4MDEyMzE2MzcwMFoX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BgEFBQcCARYkaHR0cDovL3d3dy5maXJtYWNlcnRhLml0L21hbnVhbGktTU8vMIIBUgYIKwYBBQUHAgIwggFEHoIBQABJAGwAIABwAHIAZQBzAGUAbgB0AGUAIABjAGUAcgB0AGkAZgBpAGMAYQB0AG8AIADoACAAdgBhAGwAaQBkAG8AIABzAG8AbABvACAAcABlAHIAIABmAGkAcgBtAGUAIABhAHAAcABvAHMAdABlACAAYwBvAG4AIABwAHIAbwBjAGUAZAB1AHIAYQAgAGEAdQB0AG8AbQBhAHQAaQBjAGEALgAgAFQAaABpAHMAIABjAGUAcgB0AGkAZgBpAGMAYQB0AGUAIABtAGEAeQAgAG8AbgBsAHkAIABiAGUAIAB1AHMAZQBkACAAZgBvAHIAIAB1AG4AYQB0AHQAZQBuAGQAZQBkAC8AYQB1AHQAbwBtAGEAdABlAGQAIABkAGkAZwBpAHQAYQBsACAAcwBpAGcAbgBhAHQAdQByAGUAcwAuMEkGA1UdHwRCMEAwPqA8oDqGOGh0dHA6Ly9jcmwudGVzdC5maXJtYWNlcnRhLml0L0Zpcm1hQ2VydGFRdWFsaWZpY2F0YTEuY3JsMA4GA1UdDwEB/wQEAwIGQDANBgkqhkiG9w0BAQsFAAOCAQEAec6anyYgKJqGF/nwcRwKPNaSOikbJoARGxYVJxEF2DWTg5/ck6qLdArjsXzdqLjWNE0L4oEpg/+ZRLASiTd0RFbutUffEpejsaYINSbseTU7sHw34hOVIqeIySy9KmTHcYTB52vVUPQKCqP8xBrzAw/7GheKgGt0gixNKGT+qLl5ytt0Vc2Gh4DfM7+86ftYU8ULrFH4spac4Qdb8W1w5rBxZXyFU2EbvsIP7DI6enKlvUcpQ5VLAWoNW9fskXy7bzT36bTJKqhnrbUhN5NA0LD2SbbpswrLsPhV583c0hBtqTxvR+1bPFayeCS+IfkwU9KrklYjQhk6M6E+Iee2Sw==


Copy this base64 to new file and save file with name: “demoCert.crt”


  • No labels