Forum

HomeHomeCoreCoreGeneralGeneralJson query and using a certificateJson query and using a certificate
Previous
 
Next
New Post
10/14/2014 4:16 AM
 

Hi,


I need to communicate with a REST interface which requires me to use a private certificate


I can access the interface no problem via my browser but when I try to do so using OWS I get an error message 


"Could not create SSL/TLS secure channel."


I assume that this is because the certificate is not getting loaded.


Does anyone have any pointers on what I need to do


Many thanks in advance for any help given


Regards


Tony


New Post
10/14/2014 4:51 AM
 
Hi Tony, you can acess via browser but not with ows? But ows works in the browser...?! Hmm, i think you gave a path within your ows that points to the REST Api? Maybe you have forgotten an "s" after http so change it to "https". A second hint, maybe your REST Api ist serving on a different port, than your REST Api URL should look like https://www.mydomain.com:8443/RestApi where 8443 is the port only my 2cents, Richard
New Post
10/14/2014 5:00 AM
 

Hi Richard,


Thanks for the quick response.


The Url I am using is correct in my OWS query and the port is 443.


However when OWS is performing it's query it is not using my browser but performing the query directly on the server. As such it is probably using a different windows account and certainly .NET. In my test I was on the server when testing the REST access but that was just to make sure the certificate is installed, which it is. I have setup the certificate to be available to "Everyone" on the server


I have to assume that I either have to tell OWS to load the certificate or OWS does not have this ability


Regards


Tony

New Post
10/14/2014 5:05 AM
 
ah i see. Have you tried to install the certificate to IIS on your server?
New Post
10/14/2014 5:22 AM
 

Hi,


Yep the certificate is available to IIS including all user accounts that may be involved including the relevant AppPoolIdentity, Network Accounts, Administrators and Everyone

I'm not actually sure what account OWS actually uses when running server side scripting, my assumption would be the AppPoolIdentity account but I gave access to everyone just in case.

Tony


Previous
 
Next
HomeHomeCoreCoreGeneralGeneralJson query and using a certificateJson query and using a certificate


 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • info@openwebstudio.com

Bookmark & Share Bookmark and Share