Re: Setting up WSDL to use HTTPS. Exposing Web Services and using SSL (3691 Views)
Reply
Valued Contributor
Tonyperkis
Posts: 72
Registered: ‎09-20-2011
Message 1 of 10 (4,412 Views)
Accepted Solution

Setting up WSDL to use HTTPS. Exposing Web Services and using SSL

Hi,

 

I am trying to configure our WSDL (https://servername/sc62server/PWS/IncidentManagement.wsdl) to use HTTPS.  We have a 3rd party vendor we want to expose our WSDL to so they can push tickets over a bridge and tickets will be generated in our HP SM system.  We have a w2k8 server running HP SM 9.21 along with the WSDL.  We have a web tier running on websphere and desktop client users as well.  We are not using SSL for any of these other connections and don't want to.  We only want to use SSL for our exposed WSDL to our vendor.  I started out by updating the SM.ini to the following so the app would listen on port 443.

 

system:13080

httpPort:13080

sslConnector:1

httpsPort:443

 

Going to (https://servername/sc62server/PWS/IncidentManagement.wsdl) now works but I get a certificate error. 

 

 I will outline what I've done to this point below for attempting to create a cert  We would like to use a verisign cert, not a self signed cert but will take help on either way.

 

1. created keys

 

keytool -genkey -alias server.domain.com -keyalg RSA -keystore server.keystore

 

2.create .csr

 

keytool -certreq -alias server.domain.com -keyalg RSA -file servernamekeystore.csr -keystore server.keystore

 

3. sent .csr off to verisign and received signed cert back

 

4.Imported cert into keystore

 

keytool -import -keystore server.keystore -storepass password -keyalg "RSA" -trustcacerts -file cert.cer

 

5.  I moved the server.keytore into the RUN directory where HP SM is installed.  Updated SM.ini with the following.

keystoreFile:server.keystore

keystorePass:password

truststoreFile:server.keystore

truststorePass:password

 

I tried testing from i.e. explorer and still get cert error.  Installed cert from i.e. explorer but that didn't do anything. 

 

I've also tried running the cert gernerator provided by HP but I was able to run it once successfully but after that I can not.  Get all kinds of errors.

 

Please help.

 

 

 

 

 

 

Esteemed Contributor
michael.gregory
Posts: 230
Registered: ‎02-10-2010
Message 2 of 10 (4,404 Views)

Re: Setting up WSDL to use HTTPS. Exposing Web Services and using SSL

Hi,

What is the certificate error you are getting?
Valued Contributor
Tonyperkis
Posts: 72
Registered: ‎09-20-2011
Message 3 of 10 (4,350 Views)

Re: Setting up WSDL to use HTTPS. Exposing Web Services and using SSL

Hi,

 

Getting the following error:

 

There is a problem with this website's security certificate.

 

This CA Root Certificate is not trusted.  To enable trust, install this certificate in the trusted root certification authorities store.

Esteemed Contributor
michael.gregory
Posts: 230
Registered: ‎02-10-2010
Message 4 of 10 (4,335 Views)

Re: Setting up WSDL to use HTTPS. Exposing Web Services and using SSL

Hi,

This doesn't really sound like a SM issue but rather a certificate issue.

Try viewing the certificate and confirm who the root authority is (should be Verisign as you mentioned earlier)

Then in IE, go into Tools > Internet Options > Content tab

Click the "Certificates" button then view the "Trusted Root Certification Authorities" tab.

Ensure that Verisign is listed here and the details match exactly. If the root certificate is not here you will get the warning message you mentioned earlier.
Valued Contributor
alscpe
Posts: 82
Registered: ‎09-02-2008
Message 5 of 10 (4,319 Views)

Re: Setting up WSDL to use HTTPS. Exposing Web Services and using SSL

Your are missing the port in the url. It shall look like this http://localhost:13080/SM/7/IncidentManagement.wsdl

 

and i you case https://localhost:443/SM/7/IncidentManagement.wsdl

And by the way, don't use the old web-service interface sc62server/pws

Valued Contributor
Tonyperkis
Posts: 72
Registered: ‎09-20-2011
Message 6 of 10 (4,024 Views)

Re: Setting up WSDL to use HTTPS. Exposing Web Services and using SSL

I got this figured out.  Downloaded open ssl and created a self signed cert which worked.

Regular Advisor
anil kumar gupta
Posts: 88
Registered: ‎07-19-2009
Message 7 of 10 (3,715 Views)

Re: Setting up WSDL to use HTTPS. Exposing Web Services and using SSL

hey  Hi,

 

i have a similer kind of requirement where in i have created a self singed certificate by using open ssl for server.

 

but i need to publish my WSDL and third party tool need to consume with SSL enabled on my WSDL.

 

do you have any idea which certificate i will give to third party pendor so that they will be able to access my WSDL?

 

 

i am really stuck with this.

 

Thanks

Anil

Valued Contributor
Tonyperkis
Posts: 72
Registered: ‎09-20-2011
Message 8 of 10 (3,691 Views)

Re: Setting up WSDL to use HTTPS. Exposing Web Services and using SSL

I created the cert via the following in Open SSL

 

openssl x509 -req -days 365 -in yourfile.crs -CA mycacert.pem -CAkey yourkey.pem -CAcreateserial -out certtosend.cer

Advisor
Sunil4050
Posts: 20
Registered: ‎04-10-2013
Message 9 of 10 (873 Views)

Re: Setting up WSDL to use HTTPS. Exposing Web Services and using SSL

Hello,

 

I have purchased a certificate from CA for HPSM. COuld you please let me know how to import signed certificate. I believe first we need to import root CA and then the signed certificate. Can someone please give me the steps.?

 

 

Thanks,

 

Advisor
Sunil4050
Posts: 20
Registered: ‎04-10-2013
Message 10 of 10 (805 Views)

Re: Setting up WSDL to use HTTPS. Exposing Web Services and using SSL

Hello Tony,

 

Were you able to expose WSDL to use https after setting up certificates? I have configured SSL but am unable to use https?

 

Could you please let me know how did you resolve the issue?

 

Thanks

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.