Envio de certificado para consumir uma requisição: .crt e .key #243
Unanswered
PedroAlbuquerqueQueiroz
asked this question in
Q&A
Replies: 1 comment
-
O arquivo não é enviado? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Olá, pessoal. Tudo bem?!
Queria uma ajuda de vocês, estou implementando essa chamada para consumir um endpoint onde para tal, preciso enviar um arquivo .crt e .key para validar minha identificação.
Mas não estou tendo sucesso, poderiam me ajudar ?
Obrigado.
#################### exemplo do código ######################
var
LResponse : IResponse;
begin
LResponse := TRequest.New
.BaseURL('https://sandbox.*******.dev/token')
.AddField('client_id', '41b4*************')
.AddField('client_secret', 'e9d15cd************************56a044a3')
.AddField('grant_type', 'client_credentials')
{$IF NOT DEFINED(RR4D_ICS)}
.AddFile('key','C:\Temp\Certificado SSL\chave_decrypted.key')
.AddFile('cert','C:\Temp\Certificado SSL\certificado.crt')
{$ENDIF}
.Post;
Beta Was this translation helpful? Give feedback.
All reactions