Unable to view HIP transferred records on HIU interface

Hi
@Prajwal @Ramandeep1 @Govind_Deshmukh

I am testing the HIP flow where I requested consent on HIU dev interface for a patient and after approval, I sent the encrypted FHIR lab report to the data push url received in the API. I am using this tool for key generation and data encryption: https://github.com/sukreet/fidelius

The API shows status 202 accepted. However, when I try to access these records on the HIU dev interface, it shows
Error in the data received from 1 Health Information Providers!

Please see if my request has any issues.

This is my request:

url: “https://dev.abdm.gov.in/api-hiu/data/notification

headers:
{“Content-Type”=>“application/json”,
“Authorization”=>
“Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NTgxMjQ1NDgsImlhdCI6MTY1ODEyMzk0OCwianRpIjoiMWEyYzJjOTYtZjA5MS00MzY3LTk4ZWUtMDgwY2IzYWE0Zjk0IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJjMWE3ZWIyZi0xMzZmLTQ0Y2ItOTZjZC1jOTBmOTAxZmM2NWYiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAxNzUxIiwic2Vzc2lvbl9zdGF0ZSI6IjJkYTcyMjQxLTUzNDAtNGUxMi05ZjQ0LTg3M2Y3MTcxMmYzZSIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImhlYWx0aElkIiwiT0lEQyIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDE3NTEiOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY3LjI0MSIsImNsaWVudElkIjoiU0JYXzAwMTc1MSIsImVtYWlsX3ZlcmlmaWVkIjpmYWxzZSwicHJlZmVycmVkX3VzZXJuYW1lIjoic2VydmljZS1hY2NvdW50LXNieF8wMDE3NTEiLCJjbGllbnRBZGRyZXNzIjoiMTAuMjMzLjY3LjI0MSJ9.NnkAutexhcxWsXbN30_TTKsoI-OHvP5O0pXNMGz0xX24ncIxUS7ZsNpj4Q2OZ8c62vY7CGZBy64LKot7Dvz9u9Ef3cuEtArsEEop_Ohvc6sgl50k-EN5TGQe2ubwqPjjON8HeoBzDSijHsvLa0fZBUhjukHl2bDsbH67vzSsd36iG1dfkweXCI7A8Nx5sE3fRHngM3Z_zybvuCb_8navYJ5f3-NDv3UTCIeIInqKGFg6mlX4-xk81UPAs_9BK7H1fOsiO0dd5f8rIJ85JO-HTKn5ViCDJMfjw2WyxzBmBlez35Gyhz0RVUaFQOjcv1LaSeLOBDMKHS6-QLx82BeQ9w”}

body:
{:pageNumber=>0,
:pageCount=>0,
:transactionId=>“bae368c6-289e-430c-abe0-d5c49f5468d0”,
:entries=>
[{:content=>
“/SspdX4qRmAjqcv6r5JnJc0VzGiNsqpuYQEe6mTjJw291IbwuYUrq+8yTjVlcd8E/d5fqgEDGiJlLJTXndbU0mext/ofanBhM7JSjCepBo4lPiKLThzllTA5iju6OM/zMB521w/IisN7wQs43+bZzSKtlA+VHyXnvPSTXD0vYHWJkDvy2+StipkfA2na35y5SfJrKJjLfGDj0Do02tXftS2xj1TYEZs1JgcjLZMYbrr92RsmrMK16PoJcfDqraHZ69bRIXFExpKzL6MWi2drszpFSVKZV0dy71+fwuyDgIDdg7IY3+6cbn9AQkNzgG9jG42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f6jwLi1eKHca2hCOGAezEzADQKn/wUhpwGUSSTskO6pUoA==”,
:media=>“application/fhir+json”,
:checksum=>“1229e19de3caa28ecae62cae770585ae”,
:careContextReference=>“LABREPORT001”}],
:keyMaterial=>
{:cryptoAlg=>“ECDH”,
:curve=>“Curve25519”,
:dhPublicKey=>
{:expiry=>“2022-07-23T10:53:48.73829”,
:parameters=>“Curve25519/32byte random key”,
:keyValue=>“BESNZQcKTqwNsf4dvy0Auyl231Q7ARmRL/YqFR6JnTzXJ80DLDlbeag6U5ucwNCUgc6ImSmVWjXUzNOy5T9Qpuo=”},
:nonce=>“s81X1PJSDCZ/4+ifUEwCeMrMAxHC/OM57BoWS1o20M0=”}}

Hi @simmi

It looks like that you are sending the public key value in the same format that you get from the http://localhost:8090/keys/generate call.

However, you have to send the public value in x509 format to this official ABDM sandbox HIU.

If you are using https://github.com/sukreet/fidelius, you receive this after your call to the http://localhost:8090/encrypt endpoint. Use the keyToShare attribute’s value in the JSON response from the above call, for dhPublickKey.keyValue in your request.

That should fix your issue.

hi @saiki. Thanks for your response.

When I tried to send the keyToShare in dhPublickKey, again I got status 202 accepted. But when I tried to fetch these records on HIU portal, it didn’t show any results.
Please check again.

url: “https://dev.abdm.gov.in/api-hiu/data/notification

headers:
{"Content-Type"=>"application/json", "Authorization"=>"Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2NTgzMTcxNTQsImlhdCI6MTY1ODMxNjU1NCwianRpIjoiZjY2N2NhZDktNDM1MS00Nzg1LTgyMWItMmU4OWNiMmViNzA2IiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJjMWE3ZWIyZi0xMzZmLTQ0Y2ItO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L9JlZllQQjPMu8CVoNUc4l6wes19rNbxXWBacMXqZ/6Y2xCCigXy4m8DkJGFfEu93CSp9FuhilWXrnDmemZrMyJ/Kp9cPfgN0A6rMNuZ4iYk4Ghk9YBkNQ6lHlV4bBVYw8k/hv4eua32hv0YyTzSgCY2/QiXzp8B3VdhiVujnwp+76DXJDEh0AX0wbrqn+Ktaw9xPtiOO7346MCJznsa3qknX4ZvnsdWzdYBhPfrTZyMo0UTTCrFX4bond9or9J1Pori+BGALAYbnALKcu+K+zuLczeEYL3G1UAUfkon8qZAgqKksivPtKUdj71DITGteEMmnmrNeUBeKB8mM3K1NQYp/Z3l/mSpRbJJz4OyGMsWGbN2Qh6F3mZaO3SGyvsHt4A/cnb7bxekcVN9HVN3U564/BqxDgkZvYuot7uXBBKW6WA==", :media=>"application/fhir+json", :checksum=>"1229e19de3caa28ecae62cae770585ae", :careContextReference=>"LABREPORT001"}], :keyMaterial=>{:cryptoAlg=>"ECDH", :curve=>"curve25519", :dhPublicKey=>{:expiry=>"2022-07-22T10:49:46.64355", :parameters=>"Curve25519/32byte random key", :keyValue=>"MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAAQE/6D1jEW1hzNulYUsTIuAka9BgSvlo8+sCiguFt+L5kxyUpkh3/6d+q49KjcQ0Z7yCGW6siQQNSkwQH4WQRdh"}, :nonce=>"XPvZRSiJinO4J9JjolllspkNq5B45kw+B3pcq+pForQ="}}

Hi @simmi,

I would recommend trying two things:

  1. Changing the pageCount to 1
  2. Validating your unencrypted FHIR resource using the validator that can be downloaded at this link: http://hl7.org/fhir/validator/. You may have some FHIR specific errors, because of which the HIU is not being able to successfully decrypt your resource and display it. The validator should highlight these errors.

You can also look at fidelius-cli a stack-agnostic ECDH cryptography CLI tool with additional improvements, and features. Please refer to this post for additional details – Fidelius CLI: A complete end-to-end cryptography solution

cc: @saiki

Regards,

Ranveer

2 Likes

Thanks for your support @Ranveer, @saiki
This issue is resolved now.

2 Likes

hello @simmi . i’m getting the same error in encryption i have double check and done the encryption so can you help me for data encryption process ?
thanks

Hai @saiki @simmi , Me also facing same issue, we got 202 Accepted but data is not showing on the HIU side ,could you please help .let me know where I did mistake.
My Client ID: SBX_000387
my payload for datapushUrl :

var myHeaders = new Headers();
myHeaders.append(“Authorization”, “Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbFJiNVdDbThUbTlFSl9JZk85ejA2ajlvQ3Y1MXBLS0ZrbkdiX1RCdkswIn0.eyJleHAiOjE2ODE5ODUyODgsImlhdCI6MTY4MTk4NDY4OCwianRpIjoiMjQ5MzcxNmEtMjBjNi00ZWRjLThlZmEtZTNlNWVhZTk0M2ViIiwiaXNzIjoiaHR0cHM6Ly9kZXYubmRobS5nb3YuaW4vYXV0aC9yZWFsbXMvY2VudHJhbC1yZWdpc3RyeSIsImF1ZCI6ImFjY291bnQiLCJzdWIiOiJjN2EzMGM1ZC0xYjExLTQ1MmQtOWEwYy1jN2NiM2VjYTEzMjgiLCJ0eXAiOiJCZWFyZXIiLCJhenAiOiJTQlhfMDAwMzg3Iiwic2Vzc2lvbl9zdGF0ZSI6IjcwNzRjZTM2LTMyODctNGNjNy05N2Y0LTQ3YWZhNDEwM2Q2MCIsImFjciI6IjEiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo5MDA3Il0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJoaXUiLCJvZmZsaW5lX2FjY2VzcyIsImNtIiwiaGVhbHRoSWQiLCJwaHIiLCJPSURDIiwiZ2F0ZXdheSIsImhpcCJdfSwicmVzb3VyY2VfYWNjZXNzIjp7IlNCWF8wMDAzODciOnsicm9sZXMiOlsidW1hX3Byb3RlY3Rpb24iXX0sImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sInNjb3BlIjoib3BlbmlkIGVtYWlsIHByb2ZpbGUiLCJjbGllbnRIb3N0IjoiMTAuMjMzLjY5LjI1IiwiZW1haWxfdmVyaWZpZWQiOmZhbHNlLCJjbGllbnRJZCI6IlNCWF8wMDAzODciLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzZXJ2aWNlLWFjY291bnQtc2J4XzAwMDM4NyIsImNsaWVudEFkZHJlc3MiOiIxMC4yMzMuNjkuMjUifQ.hma2Nzqow-_Mk65G3k_tXjwma1NW3KyEUiOV1S6snNXohu36-sZq-beBXD90jgc0iOYcHo-2igkI4wYKNaitv-XHanZNlHSovrctVJWPrK2Bvn0-7iiRvb86voivcASpkTBn-NFhB_H2MmIwTeidu4Zkm_z1sKxZBShoL5gWf7MwjZWl75C_bn_vB9iUMgXwu91RYDb06VWiZNx3gAdBlSFzuTamnpJU6I-ppImjC4G2XMsRKdn1qaecUqRxmEiXBqQ_6Ikh3sovbV3yxgUVBxFWavw7OOeK66K8y2_GdU-dEv21E-EJY7b3b_3omqEFs6L8KjeFBD5UI1dBETq38A”);
myHeaders.append(“X-CM-ID”, “sbx”);
myHeaders.append(“Content-Type”, “application/json”);
myHeaders.append(“Cookie”, “TS011c04bd=01445fed0410557dddcd632c3070e817dc30f3aaaf2092cb543a5ba63ecf493b94bf1525d711ddafc66f19f3d9e000c808aec09b91”);

var raw = JSON.stringify({
“pageNumber”: 1,
“pageCount”: 1,
“transactionId”: “50f80cc5-e3e1-42ae-afe2-ecf13918525b”,
“entries”: [
{
“content”: “buwt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t+TJ+kLrdhxwcZPU4GLAr8LM14f75hff+J/NIY64i6hpoOG4le4QQX541qUXQCubb+1Vlu9wiKs/iStSy0ZXqcwp2ShFFdhg5ihhOTVLXLACtdS6Y9SfFkUQc/yfD+oRk7Gu9pEmNHtA/uuy/Sv2gcgRBDB77t4vIe+AW3zCPMux9TLQFaj5BOp1cudUjeYD/RnwIzr2j8qhIfwLYs1iBKRg80Fs7wnD31ysm2Hg4VJxrKBedHyljL1qzfuUxHwf76BE5WasogN7+ZqDNUskuVAH5v0u85fWX1cyDGqBe5SDgY0FB+wEyOwREGrcQSTKLkofKdWnqTuwddpgENb9d+epI5I3bhVJwXDRINDbC+a+EZrJlhWSiEdD+8KlXeeaAr/9EHQXihc6zn80kkT6vPxxj/LAytxKlDEX/s39+oGMJEJ0jyejIYurrk04dsgnYIen6h/zqwXHt2KbLqrslicf3wRaX9/On/LYqFEcMpGY1jMkcLrQnz4pCnWoRgR/EI+t+gIjcL+YIf9OBGExG2qHPWiLN+PJJ1Ulf6a/lCwSVdxa1vJMlEvVYhXwBETue4yQ+YFkeeA74Jxd1puP2I3mXfA+QLBJ2fY6FMNtzE0bzbcn023UISggn7GjRq03BthT3/MCgFCIKrGzs12HG3F3trw0ZabpIfbSSKDfnsXOItlmLR7/cGVfKGvNWZ5cNYmUHXCejPLNIcIPys/ZK3lcBIWDiXxbMDWS2K+glKMouRmYFmRHs8hzkeO36iU0EkeuFneK44KHdR8f1pUEZ8RFDDZDzW7Z25Pp8uWZ3tuvVhK2Vl43TOfUpcv3wbEQNEPlMGQfQLqa8loxhsm7XNC/VJAaAoJav550xNrxUKv0eezM6TlzZMDt8VGNtiiXhUYVypQJaz6YKgTSuIPoGLFQmq4Agnwnsn5kn6spbo/6UFRUX6/Qn6YCBgmavTJFCQkDkZHYzBtQlrmANBXkJr2IIlal8Mc/HnPAkKKX3SKkQiODH1NYNu5Jn3sR3m0HGZhi4Lg==”,
“media”: “application/fhir+json”,
“checksum”: “string”,
“careContextReference”: “464602”
}
],
“keyMaterial”: {
“cryptoAlg”: “ECDH”,
“curve”: “Curve25519”,
“dhPublicKey”: {
“expiry”: “2023-04-21T05:59:31.457Z”,
“parameters”: “Curve25519/32byte public key”,
“keyValue”: “MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAARryyUEkPA7IEvbE6fkIcMomC+qOfUiYsIqmNeM18dbamrZ68/oSHNI8kHE/rZVK+a+R1rBDR/Pvr7aO2yPtpy2”
},
“nonce”: “B6CPGj2eDvtmUvfds++Df/b9Oy+1iVC6DoAObDv1Pbk=”
}
});

var requestOptions = {
method: ‘POST’,
headers: myHeaders,
body: raw,
redirect: ‘follow’
};

fetch(“https://dev.abdm.gov.in/api-hiu/data/notification”, requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log(‘error’, error));

,

i have done encryption as seen in video lecture of abdm … so didu just followed the same process or anything else ?

Hai @dhavalstrauss yes I followed same process for encryption(fidelius tool) , I used sample pathology bundle available in Sandbox. Did you got any solution.

Hai @dhavalstrauss @saiki @simmi @IntegrationSupport
I am following same scenario for data encryption using fidelius tool to transfer data through datapushurl, We are encrypting sample pathology reports in the sandbox Could you please help me where I did mistake.
My Client ID: SBX_000387
I am getting 202 Accepted but data is not display in HIU side


correlation-id : 890c8bb1-4069-425e-bf1b-cf2af5ac71d5
My payload for datapush url :
var myHeaders = new Headers();
myHeaders.append(“Authorization”, “Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJBbF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iOiIxMC4yMzMuNjkuMjUifQ.ftWrPmkvw-F-NVUZSaS2c9TiN2awBK9UUNahJkmPC_GveWI5Q_wLNnPHG2r7F0kSD6jOXLaJKNDSes_yhtbfUWYcRM0m3fTldU1K84GyOvbWcq1-HHq4FvP5PO476tUS4C0Bn0PoJBPyb6qHshZXuX6B_2tDF4AAmThDmamRkqf0vTUsQ_UR4KwIdipAzZguzQFMw1OIOyzLGMSfYksu4UmHjD4ud8GJpIhiQzcaL3otyepLpIouQeR1Q-ohc8saZZb5aPwYpXoYwlaXCcwH6cgPioPiVU5D8mfygfX9m9qHBRgxAjMd6DWm1svTSvhJqB0o5G5EsCe9gxQ-6XNouQ”);
myHeaders.append(“X-CM-ID”, “sbx”);
myHeaders.append(“Content-Type”, “application/json”);
myHeaders.append(“Cookie”, “TS011c04bd=01445fed04ef99ee96afb920bbf8159a507cbf7460b0938fa1f94eafcd5de0eb606bbedcade76646712862a88c808567985b381881”);

var raw = JSON.stringify({
“pageNumber”: 1,
“pageCount”: 1,
“transactionId”: “b27bd79d-9757-4a99-99ff-a419d33f9836”,
“entries”: [
{
“content”: “s+pla6mTPOfzhtcBoCOj4dNwMxI0iev2d9aFLZshlNGVzN02vvmEYr5HOVpgrjUepngdMnP0HAN5Oag1ML2EnKcJlEznhsOzyM6uSIhXbZ3Ap6qQ6Ln1g1cdtAC1nIk5ECE9nL5vDziQWuHn/aUiA0ZzcNCZQNCZPbL9ThFTnUQ/+mdmsf+rlkn0d85NCVYRxX7/0iEgnW0fiI7fuYZkSzt4GmrgHYp9zQJ3Nj+1S24zvMOoJRWZHLv7vyHxO+xrVEjd9FYKedFfSlyeRhQ7jiTqiXYh/aubWbI7ZN/vAzYbvperPJPx7IerehQnXFH8NuUlrxqvmu846iTmdK9v36879ZPSyuOAdZrxqZJlCGT1xaQGiCUrFZ6dmvu0e4pmB5c0mBRJNCH9fDQFP2sF1dKwLEP+HjXzTxp7g4y5C2aSlmJV3B6E4BFarztA1j7ykOUVSruhnpyy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UOqPMsY+osB5ADA9/b+m9EXAKYjIZBlkkmPdI6FdrESmdgzAeq3LmkeMmXLDm1NpCEckcg5NGchZuFZaf801IdfGptfzNfUPLdAFFazMJCSru3DJE/v/8R8bTKxq/DiyVL9SyXOJYCQvdWTV7fb1sJv+4kRSjZaVor/S85sJPSDTbWLFwb/2020UsQ0U+o466s4l75FXoYOvPdAKn6pdkWV5+7EgUEor91ao+2dnQtOtFjBlVf3E7WKZQcKed0/Md+IUqhnrJPRhlPgeGmoKYFrR2YSRVq+Uo85KtRKYqaitGinL6pk0MgLRINu/CrMo4F9ttCI/ZYy/eg90Uy99NDm2Y90ZlLrAA6CXUZV+DbaEKbY/D7ElMG+z8FWPiWJ1kDSHlb/9C4zE5d8K8vUVE3BBMcE2y39mUDAR4wmiyYbw3NEsvovKYXoSNQNq1YJ4HNfmJPm1bluH9/7BrCZK4DPkqCwVCWBvn8JcexQAXXZdIxIKYK4Ay30uDdnG4WsGw1a6Tdi2s8nhxsvPobCq8dfkaI7axlhlp5aAzwE3sAWgmBnEbhc73J9Q5d8nYg==”,
“media”: “application/fhir+json”,
“checksum”: “string”,
“careContextReference”: “464601”
}
],
“keyMaterial”: {
“cryptoAlg”: “ECDH”,
“curve”: “Curve25519”,
“dhPublicKey”: {
“expiry”: “2023-04-21T05:59:31.457Z”,
“parameters”: “Curve25519/32byte public key”,
“keyValue”: “MIIBMTCB6gYHKoZIzj0CATCB3gIBATArBgcqhkjOPQEBAiB/////////////////////////////////////////7TBEBCAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqYSRShRAQge0Je0Je0Je0Je0Je0Je0Je0Je0Je0Je0JgtenHcQyGQEQQQqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq0kWiCuGaG4oIa04B7dLHdI0UySPU1+bXxhsinpxaJ+ztPZAiAQAAAAAAAAAAAAAAAAAAAAFN753qL3nNZYEmMaXPXT7QIBCANCAAQDo8OpFFlw1JtprT6nRU+Cr7xeq7BOODnFU9PsDl6MR0RKGxPjrlYpBuzd1hAFwisvJvrMWN33FukiWSSqC5D8”
},
“nonce”: “CKPnJAOQmUqorBDhLPfA6vqxd8O7BK9uSVyGuPpDsnk=”
}
});

var requestOptions = {
method: ‘POST’,
headers: myHeaders,
body: raw,
redirect: ‘follow’
};

fetch(“https://dev.abdm.gov.in/api-hiu/data/notification”, requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log(‘error’, error));

whenever i tried using CLI it’s failed every time . so rather i used java fidelius package available on GIT … install it in local server and try using that code encryption will work but i dont know why its not working using CLI method as described in webinar

Hi @dhavalstrauss
It worked for me using the CLI after I changed the dhPublicKey keyValue to x509PublicKey generated from the Key Material.