# API Authentication source: https://developer.mastercard.com/issuer-enrollment/documentation/tutorials-and-guides/api_oauth/index.md Before calling APIs that use OAuth 1.0a, obtain an API Signing Key and its associated Consumer Key in Mastercard Connect; see [Key Management](https://developer.mastercard.com/remote-commerce-onboarding/documentation/key_management/). The Consumer Key identifies your client. Use the private key from your P12 keystore to sign requests, and Mastercard verifies each signature using the corresponding public key. The P12 keystore (the "Signing Key" in Mastercard Connect) contains a public/private key pair. Keep the private key secure; use it to create OAuth signatures for APIs that require OAuth 1.0a. ## OAuth 1.0a Request Signing {#oauth-10a-request-signing} Most Mastercard APIs use OAuth 1.0a with a body hash extension. This is client request signing; it does not mean every API requires a Mastercard-generated bearer JWT. Authentication requirements vary by API, so follow the operation's security definition. If an operation specifies a bearer token or another authentication scheme, use the credentials and process documented for that operation. For more information about OAuth 1.0a, see: * [Support article](https://developer.mastercard.com/platform/documentation/security-and-authentication/using-oauth-1a-to-access-mastercard-apis/) * [Blog post](https://developer.mastercard.com/blog/why-mastercard-doesnt-use-oauth-20) ## Keystore details {#keystore-details} You can view the keystore contents using commonly available tools. During key generation, you will give the P12 keystore a filename, password and alias (friendly name). So for example: * Filename: srctest-sandbox * Password: keystorepassword * Private key alias (friendly name): keyalias. To view the contents of the keystore, you can use, either the Java keytool: keytool -storetype PKCS12 -list -keystore srctest-sandbox.p12 -storepass keystorepassword -v or OpenSSL: openssl pkcs12 -info -in srctest-sandbox.p12 -password pass:keystorepassword **Keystore details** It is worth noting that different sorts of errors may occur, which need to be handled differently. * API errors may occur where the API gateway rejects an incorrect or malformed request. For more details about Gateway errors, see the [Gateway Error Codes](https://developer.mastercard.com/platform/documentation/gateway-error-codes/) page of the general Mastercard Developers Platform documentation. * API errors may also occur where the API gateway successfully passed the request onto the service concerned, but the service rejected it for some business logic reason. ## Error handling {#error-handling} It is worth noting that different sorts of errors may occur which will need to be handled differently. * API errors may occur where the API gateway rejects an incorrect or malformed request. For more details about Gateway errors, refer to the [Gateway Error Codes](https://developer.mastercard.com/platform/documentation/gateway-error-codes/) in the general Mastercard Developers Platform documentation. * API errors might also occur if the API gateway successfully passed the request to the relevant service, but the service rejected it for some reason related to business logic. ## Next Steps {#next-steps} Once the Onboarding is completed in the Onboarding and Registration portal, Issuer needs to provide `srcClientId` to update the role for Issuer.