Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

The above digests serve as an example only. You should always create the digest yourself from the Gini API’s public key and use that one (see Extract Hash From hash from pay-api.gini.net). If you received a digest from us then always validate it by comparing it to the digest you created from the public key (see Extract Hash From Public Key). Failing to validate a digest may lead to security vulnerabilities.

...

Note

Setting a custom TrustManager will override the network security configuration.

...

Extract

...

hash from pay-api.gini.net

Code Block
$ openssl s_client -servername pay-api.gini.net -connect pay-api.gini.net:443 | openssl x509 -pubkey -noout | openssl pkey -pubin -outform der | openssl dgst -sha256 -binary | openssl enc -base64

...

Extract

...

hash from public key

You can also extract the hash from a public key. The following example shows how to extract it from a public key named pay-api.gini.pub:

...