692
Views
8
Comments
Consume Rest API (Certificate)
Question

Hi All


Im trying to consume a Rest API internally without success, when i try to import VIA URL:


The following error appear:


How can i solve this?


Thanks,

FV

2017-12-13 08-27-28
Joey Moree

The consumed webservice needs to have SSL/TSL. (https).

If the target webservice is unable to expose itself secure, you can always fall back to use a component to make an unsafe webrequest, however this means that you won't be able to consume it automaticaly using Outsystems.

I made a component which tackles this (though it's for binary downloads, but you can look and change the code to fit your needs).

https://www.outsystems.com/forge/2763/

2021-04-15 14-49-36
Arley Silveira

if the endpoint is actually using SSL, then the odds are that:

  1. Your server does not recognize the certificate (and or its chain);
  2. You are using the wrong name when calling the endpoint (needs to match the fqdn on the certificate);
  3. The certificate on the endpoint is not valid (expired or revoked) anymore;
  4. Your server and the endpoint do not agree with which protocol/version should be used (eg:  SSL2|3, TLS1.0|1.1|1,2);



2021-01-04 08-13-48
Toto
 
MVP

You could use this plugin if your rest didn't use SSL

https://www.outsystems.com/forge/component-overview/2250/rest-ignore-certificates

But this is not recommended in production environment

2018-08-27 08-29-35
Fábio Vaz

Hi, 


Thanks very much for the reply's, but how i can import the methods to service studio using the endpoint?



2021-01-04 08-13-48
Toto
 
MVP

Fábio Vaz wrote:

Hi, 


Thanks very much for the reply's, but how i can import the methods to service studio using the endpoint?



Hi,

Have you follow this ?

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Consume_REST_APIs/Consume_a_REST_API


2018-08-27 08-29-35
Fábio Vaz

Toto wrote:

Fábio Vaz wrote:

Hi, 


Thanks very much for the reply's, but how i can import the methods to service studio using the endpoint?



Hi,

Have you follow this ?

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Consume_REST_APIs/Consume_a_REST_API


Toto,


By your reply i understand that's impossible import all methods using the endpoint if needs a Certificate. Im correct?

2021-01-04 08-13-48
Toto
 
MVP

Fábio Vaz wrote:

Toto wrote:

Fábio Vaz wrote:

Hi, 


Thanks very much for the reply's, but how i can import the methods to service studio using the endpoint?



Hi,

Have you follow this ?

https://success.outsystems.com/Documentation/11/Extensibility_and_Integration/REST/Consume_REST_APIs/Consume_a_REST_API


Toto,


By your reply i understand that's impossible import all methods using the endpoint if needs a Certificate. Im correct?

Not really, what i show you from the link is the "wizard" that help you to consume REST.

You could create your own REST consume manually.


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Fábio,

If your REST service is accessible only via HTTPS (not HTTP), then obviously the HTTPS connection must be secure, i.e. there must be a valid certificate present. If there is none, you cannot use the "Add all methods" button. Note that even if you create, like Toto wrote, the REST service "manually" (i.e. add a single method one by one), you still cannot call the REST service, as calling it will also require a secure connection if useing HTTPS.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.