-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Daraja Sandbox Certificate is different and doesn't work #17
Comments
You saved the day! Thank you so much @alexanderwanyoike |
@alexanderwanyoike Noted. This will be changed to a post install, hence always get the latest after an install. {
consumerSecret: '<your consumer secret>',
environment: 'sandbox',
shortCode: '600111',
initiatorName: 'Test Initiator',
lipaNaMpesaShortCode: 123456,
lipaNaMpesaShortPass: '<some key here>',
securityCredential: '<credential here>',
certPath: path.resolve('keys/myKey.cert') //<------------------------- here
} |
Hi @geofmureithi any idea if the production has the same mismatch cert issues? I am trying production cert and it has the same initiator issue as sandbox. I am communicating with Api feedback team but day of launch has come and they didn't replied back yet |
i have tried both certificates in
and
but am still getting the below callback error in B2C API
|
@alexanderwanyoike You may need to look into Daraja itself.
|
Can we add the certificate in vault for ease of management? And have something like docker on top of it. |
Description
Not really a bug actually the sandbox certificate specified in this repo is correct and I managed to get successful transactions using this key. This is not the case for https://developer.safaricom.co.ke/sites/default/files/cert/cert_sandbox/cert.cer that is different from the certificate that the library uses. The certificate posted on the docs didn't work
Reproduction
Steps to reproduce the behaviour:
Expectation
A successful transaction
Actual
Transaction with the error
Initiator Information is invalid
Specification
The text was updated successfully, but these errors were encountered: