Platform Upgrade Private Key File Error
Question

I am currently upgrading Outsystems Platform Server-8.0.1.7 to Version 10.0.405.0 on the same server and here is what I did.

1. Uninstall Platform Version 8.0.1.7

2. Installed the Version 10.0.405.0.

3. Input the Necessary DB Credentials in the Configuration Tools.

4. Test Connections (Everything was fine).

5. Click Create/Upgrade Database and I got this Error


This Server and the configured database have different encryption keys. Copy the private.key from the Outsystems installation of a machine that was connected to this database and try again.


How do I recover the old private.key? base from the my research it should be somewhere C:\Program Files\OutSystems\Platform Server, but i could not find the old private.key. Is there any way to get this private.key file or any suggestion on how to solve this.

Private Key Error.png

Solution

Jannie du Toit wrote:

We have the same problem, does anyone have a solution?


Execute the ff: Script

delete from ossys_parameter where name = 'ClientApplicationToken';
delete from ossys_parameter where name = 'privateKeyValidation';
delete from ossys_Parameter where name = 'OutSystems.HubEdition.MobileLogin_AuthenticationHMACKey';
delete from ossys_Parameter where name = 'OutSystems.HubEdition.MobileLogin_AuthenticationEncryptKey';
delete from ossys_dbconnection;


After executing the script restart the APP Server. Then reconfigure the Configuration Tool.



Michael Chu wrote:

Jannie du Toit wrote:

We have the same problem, does anyone have a solution?


Execute the ff: Script

delete from ossys_parameter where name = 'ClientApplicationToken';
delete from ossys_parameter where name = 'privateKeyValidation';
delete from ossys_Parameter where name = 'OutSystems.HubEdition.MobileLogin_AuthenticationHMACKey';
delete from ossys_Parameter where name = 'OutSystems.HubEdition.MobileLogin_AuthenticationEncryptKey';
delete from ossys_dbconnection;


After executing the script restart the APP Server. Then reconfigure the Configuration Tool.



 

 Hi Micheal,

                  Where this needs to be executed? Please give a detailed explanation.



Regards,

Vaishnavi


This is solve. Thank you

Hi,

I'm having the same issue. What did you do to resolve this?

We have the same problem, does anyone have a solution?


Jannie du Toit wrote:

We have the same problem, does anyone have a solution?


I got it to work by uninstalling everything and starting from scratch.


Solution

Jannie du Toit wrote:

We have the same problem, does anyone have a solution?


Execute the ff: Script

delete from ossys_parameter where name = 'ClientApplicationToken';
delete from ossys_parameter where name = 'privateKeyValidation';
delete from ossys_Parameter where name = 'OutSystems.HubEdition.MobileLogin_AuthenticationHMACKey';
delete from ossys_Parameter where name = 'OutSystems.HubEdition.MobileLogin_AuthenticationEncryptKey';
delete from ossys_dbconnection;


After executing the script restart the APP Server. Then reconfigure the Configuration Tool.



You have also uninstaled the Outsystems DB (in the DB machine) rigth ?

Thanks a million Michael, it worked beautifully!

Beautiful. Thank you.

This will also invalidate everything you encrypted with CryptoAPI in the past right?

So copying is still the preferred way (or getting it from a backup). :)


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.