David Marinkovic · Aug 2, 2024 go to post

My IIS configuration

My collegue who doesn't have any issues, have a virtual directory csp and zero application

David Marinkovic · Aug 2, 2024 go to post

I don't want specially to add a question around my current problem, but How to configure IRIS and IRIS2 (two instance) in VSCODE, because I don't have any key carrying the concept of instance, both have port 80

David Marinkovic · Aug 2, 2024 go to post

I installed a second instance of IRIS, called IRIS2

I now have to instance working well with the portale

IRIS | 80 | 1972

IRIS2 | 80 | 1973

I see a web application IRIS2 on IIS

I can open both portales

But I continue to get the NOT FOUND error when I try to connect my local server...

David Marinkovic · Aug 2, 2024 go to post

Yes I can see the portal, portal is working fine, I set up myself the desktop of a new collegue and every thing worked well... so I lost...

David Marinkovic · May 16, 2024 go to post

I found

But I Don't understand what is going on...

The same code is working find If I call it from the terminal

But If I'm debug the code from Visual Studio Code the decrypt is allways returning me empty string.

Do you see what is going on ???

David Marinkovic · May 16, 2024 go to post

I use the same key for both operation, my bad, but even using the private and the public key don't get me to the goal

ClassMethod UnitTest()

{

  set inputPlainText = "David"

  set privKeyFileName = "C:\temp\toto.pem"

  set pubKeyFileName = "C:\temp\toto_pub.pem"

  // Lire la clé privée depuis le fichier

  set privobjCharFile = ##class(%Stream.FileCharacter).%New()

  set privobjCharFile.Filename = privKeyFileName

  set privKey = privobjCharFile.Read()

  // Lire la clé publique depuis le fichier

  set pubobjCharFile = ##class(%Stream.FileCharacter).%New()

  set pubobjCharFile.Filename = pubKeyFileName

  set pubKey = pubobjCharFile.Read()

  // Chiffrer le texte en utilisant RSA

  set encryptedText = $System.Encryption.RSAEncrypt(inputPlainText, privKey)

  // Déchiffrer le texte en utilisant RSA avec la clé publique

  set decryptedText = $System.Encryption.RSADecrypt(encryptedText, pubKey)

  // retour

  quit decryptedText

}