go to post William Glover · Jun 26, 2023 That makes sense but why does it work on one namespace and not another?
go to post William Glover · May 22, 2023 Hi Jeffrey, It does respond with RSA Key ok when running that command on it .
go to post William Glover · May 22, 2023 Hi Jeffrey, No its not and it reads the string in correctly as shown by the watch on the debugger.
go to post William Glover · May 22, 2023 Set encodedToken = ..UrlEncoding($System.Encryption.Base64Encode(..header.%ToJSON(),1)_ "."_ $System.Encryption.Base64Encode(..payload.%ToJSON(),1)) Set tFile=##class(%Stream.FileBinary).%New() Set tFile.Filename=secretLocation Set pemPrviateKey = tFile.Read($$$MaxLocalLength) Set secretSigned = ##class(%SYSTEM.Encryption).RSASHASign(512,encodedToken,pemPrviateKey) Set signature = $Translate($System.Encryption.Base64Encode(secretSigned, 1),"+/=","-_") Return encodedToken_"."_signatureIn my scenario the token is two encrypted JSONs appended together and the signature gets appended to the end.The code above doesn't produce anything at secretSigned, the PEM encoded private key is valid.
go to post William Glover · May 22, 2023 Ah sorry I switched out the method call to see if it worked, i was using RSASHASign before where the first argument is the bitlength and was getting the same result, any ideas in that scenario.
go to post William Glover · Jan 31, 2023 Thanks Eduard, That worked, is there a way of using this Qspec when writing out to a global, I am getting the same error when trying to do this with a global subscript.
go to post William Glover · Jan 25, 2023 I am assuming its something to do with the lacking qspec here, but I am finding it hard to know what flags to add from the docuemntation. At current it is. Do project.DeployToFile("C:\deployedExport.xml",,1)
go to post William Glover · Jan 25, 2023 I see the signiture of the classes that I exported deployed then imported, with no content in the methods, is this how it is meant to show?
go to post William Glover · Dec 20, 2022 I have used the InterSystems.Data.IRISClient.ADO library fo .NET, but I also want the ability to call class methods in Ensemble and other earlier builds. I assumed the API would be the best way as it allows me to inserts classes, but if it is not possible to call methods I would appreciate any other ways achieving this.
go to post William Glover · Dec 19, 2022 Hi @Cristiano Silva , It was due to the TCP operation I was using which did not have DeferResponse property set to enabled. I was unsure what was causing this error as the logic for defering the reponse was nested in the process, as a result I thought the issue was there.