# Error when attempting to register a client for FHIR (Authorisation)

**URL:** <https://community.open-emr.org/t/error-when-attempting-to-register-a-client-for-fhir-authorisation/16823>\
**Category:** Support\
**Tags:** question, feature\
**Created:** [July 1, 2021, 6:32pm UTC](https://community.open-emr.org/t/error-when-attempting-to-register-a-client-for-fhir-authorisation/16823 "2021-07-01T18:32:30Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![adunsulag](https://community.open-emr.org/user_avatar/community.open-emr.org/adunsulag/32/12606_2.png) [@adunsulag](https://community.open-emr.org/u/adunsulag)\
**Post date:** [July 2, 2021, 8:33pm UTC](https://community.open-emr.org/t/error-when-attempting-to-register-a-client-for-fhir-authorisation/16823/5 "2021-07-02T20:33:38Z")

</div>

> [@adunsulag](#):
>
> $keysConfig = [“default\_md” =\> “sha256”, “private\_key\_type” =\> OPENSSL\_KEYTYPE\_RSA, “private\_key\_bits” =\> 2048, “encrypt\_key” =\> true, “encrypt\_key\_cipher” =\> OPENSSL\_CIPHER\_AES\_256\_CBC]; $keys = \openssl\_pkey\_new($keysConfig);

@sjpadgett So this means the openssl\_pkey\_new command is breaking on brent’s machine on windows. Do you have any thoughts on why that would be Jerry?

@mohit had to change his ssl configuration in this post [Getting Error While Calling the Authorization Code Grant - #20 by mohit](https://community.open-emr.org/t/getting-error-while-calling-the-authorization-code-grant/16300/20)

To the following in order to get his to work:

> $keysConfig = [  
> “config” =\> “D:/Xampp-7.3.20/php/extras/openssl/openssl.cnf”,  
> ‘private\_key\_bits’=\> 2048,  
> ‘default\_md’ =\> “sha256”,  
> ];  
> $keys = \openssl\_pkey\_new($keysConfig);

Is there something different with our key configuration on windows?

---

_[View the full topic](https://community.open-emr.org/t/error-when-attempting-to-register-a-client-for-fhir-authorisation/16823)._
