Hi @adunsulag,
I am successfully able to register client with API.
For this i need to change some code in src/RestControllers/AuthorizationController.php
At configKeyPairs function in private key with below code
$keysConfig = [
“config” => “D:/Xampp-7.3.20/php/extras/openssl/openssl.cnf”,
‘private_key_bits’=> 2048,
‘default_md’ => “sha256”,
];
$keys = \openssl_pkey_new($keysConfig);
Now for this i am able to register oprivate.key abd **opublic.key ** in key table and not need to create file in sites/document/certificate folder.
But Can you help me one more thing
When i try to get token by API http://openemr.localhost/oauth2/default/token
then it will give me error below: -
The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.