831
Views
9
Comments
Solved
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

Rank: #864
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.



Rank: #864

This is solve. Thank you

Hi,

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

Rank: #73172

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


Rank: #73172

Thanks a million Michael, it worked beautifully!

Rank: #25182

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). :)