Maximo Anywhere - Are your Windows builds failing because of expired certificates?
Shane Howard 270000C70V Visits (13261)
I was running through a Maximo Anywhere 7.6 install the other day and I got to the point of building my Windows tablet applications when the build started to fail. I had done nothing different then previous runs in the past, however now this time I'm receiving a message saying my certificate has expired! But what certificate is expired?
When using the Windows Maximo Anywhere applications we create certificates that are copied to the device and installed as trusted which allow us to sign the applications and install Maximo Anywhere on our Windows Tablets. However that is not the only time the certificates are used, the build process also uses them to sign the .appx files when initiated. So if the certificates expire, not only will you not be able to install the applications to Windows tablet, but you won't be able to build new Windows applications either.
First off, you might be asking why are you receiving these errors now? To answer that, with the install of Maximo Anywhere 22.214.171.124 and 7.6 which both support Windows Tablets a temporary certificate was provided which can be used to sign the applications. You will see this certificate in each of the applications native directories, for example under \IBM
[exec] C:\Program Files (x86
Now that we know why this error is occurring, how do we fix it?
Under each application's native folder there is java script project file, which can be opened in Visual Studio as seen below.
Once you have opened this file with your Visual Studio Tools, you will see a file called pack
Now what we need to do is click on the packaging tab, this will display the current certificate defined, which in this case is the expired certificate. To define a new valid certificate click on the choose certificate button and point to the certificate you wish to build\install the apps with. This will then create a .pfx certificate for the application you modified in the \windows8\native folder which is valid and named for the application it was installed to. You will want to also install this cert as a trusted certificate on the build machine as well.
If you don't have a certificate to sign the applications with, in the above panel after you click on 'Choose Certificate' you will have the option to create another temporary certificate that expires one year from it's creation which can be used as the out of the box certificate was. If you do this, you may want to copy the certificate out to a central location as you will want to import it for the other applications and use it with the above procedure for each of the Maximo Anywhere applications with expired certificates. If you continue to get expired certificate errors after this, you can try and re-name your certificate to match the previously expired one (Max
I hope this document was informative and assists with your Anywhere Implementations, remember as the previous bundled certificates are expired all new installs will fail with the above error unless your certificates are updated. Any questions, comments or concerns please post below.
In Maximo Anywhere 7.6.2 the test certificate saves to C:\