Tonyperkis Absent Member.
Absent Member.
17709 views

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

Jump to solution

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.

 

 

 

 

 

 

0 Likes
1 Solution

Accepted Solutions
Tonyperkis Absent Member.
Absent Member.

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

Jump to solution

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

0 Likes
9 Replies
Absent Member.. michael.gregory Absent Member..
Absent Member..

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

Jump to solution
Hi,

What is the certificate error you are getting?
0 Likes
Tonyperkis Absent Member.
Absent Member.

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

Jump to solution

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.

0 Likes
Absent Member.. michael.gregory Absent Member..
Absent Member..

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

Jump to solution
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.
0 Likes
Absent Member.. alscpe Absent Member..
Absent Member..

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

Jump to solution

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

Tonyperkis Absent Member.
Absent Member.

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

Jump to solution

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

0 Likes
Established Member.. anil kumar gupt
Established Member..

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

Jump to solution

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

0 Likes
Tonyperkis Absent Member.
Absent Member.

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

Jump to solution

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

0 Likes
Absent Member.. Sunil4050 Absent Member..
Absent Member..

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

Jump to solution

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,

 

0 Likes
Highlighted
Absent Member.. Sunil4050 Absent Member..
Absent Member..

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

Jump to solution

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

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.