API - Erro no GET

Senhores Boa Noite,

Consegui subir meu rest com SSL, estou acessando pelo navegador normal, quando tento efetuar um GET no meu endpoint aparece a seguinte mensagem:

{"message":"The request requires authentication. The server might return this response for a page behind a login."}

Alguém saberia o que pode ser?

No Postman, aparece a seguinte mensagem SSL Error: Unable to verify the first certificate

Obrigado pelo apoio.

Luiz, bom dia!

Já tive problemas semelhantes...

Tente analisar o seguinte:

Para esta mensagem :

{"message":"The request requires authentication. The server might return this response for a page behind a login."}

Se na configuração do appserver do REST estiver com a propriedade SECURITY=1, então você precisa mandar um usuário e senha como autenticação BASIC


[HTTPREST]
Port=8080
URIs=HTTPURI
SECURITY=1

Sobre a mensagem:

SSL Error: Unable to verify the first certificate

Provavelmente tem a ver com o certificado. Quando você configura SSL, obrigatóriamente precisa indicar um certificado válido. Ou está faltando ou não está batendo as informações. Exemplo:


[HTTPREST]
Port=8080
URIs=HTTPURI
SECURITY=1
SSL2=1
SSL3=1
TLS1=1
PASSPHRASE=password
CERTIFICATE=C:\certificate\certificate.crt  ; < ------------
KEY=C:\certificate\certificate.key          ; < ------------

Documentação:

https://tdn.totvs.com/pages/releaseview.action?pageId=185747842

https://tdn.totvs.com/display/public/framework/Exemplo+com+SSL