Error: Connection reset or Connection refused

99 views
Skip to first unread message

Vivekanand Singh

unread,
Sep 17, 2020, 2:49:59 PM9/17/20
to tink-users
Hi Team,

I am trying to decrypt the google-pay token using the tink library. While doing so getting an error like
Connection reset or Connection refused in my prod environment same setup worked fine in the lower environment. Anyone faced this kind of issue.

Thanks in advance.

Regards,
Vivek
 

Thai Duong

unread,
Sep 17, 2020, 3:03:26 PM9/17/20
to Vivekanand Singh, tink-users
The library will attempt to download the public keys from


You might have to adjust your firewall rules.

--
You received this message because you are subscribed to the Google Groups "tink-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tink-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tink-users/d12096e8-f577-4de1-8227-30d5745d930cn%40googlegroups.com.
Message has been deleted

Vivekanand Singh

unread,
Sep 17, 2020, 3:35:28 PM9/17/20
to tink-users
Thanks, Thai Duong!
For a quick reply, for the same reason, I kept the key in some static file so no need to have the server to server call during decryption.
Any further suggestions will be appreciable.

Regards,
Vivek

Thai Duong

unread,
Sep 17, 2020, 3:35:52 PM9/17/20
to Vivekanand Singh, tink-users
Can you share some code showing how you're calling Tink?

On Thu, Sep 17, 2020 at 12:33 PM Vivekanand Singh <viveksin...@gmail.com> wrote:
Thanks Thai Duong!
For a quick reply, for the same reason, I kept the key in some static file so need to have server to server call during decryption.
Any further suggestions will be appreciable.

Regards,
Vivek
On Friday, 18 September 2020 at 00:33:26 UTC+5:30 tha...@google.com wrote:

Vivekanand Singh

unread,
Sep 17, 2020, 3:38:35 PM9/17/20
to tink-users

decryptedResponse = new PaymentMethodTokenRecipient.Builder()
.fetchSenderVerifyingKeysWith(GooglePaymentsPublicKeysManager.INSTANCE_PRODUCTION)
.senderVerifyingKeys(verifyingKeys) //Static value public key
.recipientId(MerchantId) // Static merchantId
.protocolVersion("ECv2")
.addRecipientPrivateKey(MERCHANT_PRIVATE_KEY_BASE64).build()
.unseal(encryptedDataFromGPay);

Thai Duong

unread,
Sep 17, 2020, 3:42:50 PM9/17/20
to Vivekanand Singh, tink-users
On Thu, Sep 17, 2020 at 12:38 PM Vivekanand Singh <viveksin...@gmail.com> wrote:

decryptedResponse = new PaymentMethodTokenRecipient.Builder()
.fetchSenderVerifyingKeysWith(GooglePaymentsPublicKeysManager.INSTANCE_PRODUCTION)

Remove fetchSenderVerifyingKeysWith and try again to see if it works.

Vivekanand Singh

unread,
Sep 17, 2020, 3:50:55 PM9/17/20
to tink-users
Thank you so much, Thai Duong!
It's working.

Regards,
Vivek

Reply all
Reply to author
Forward
0 new messages