Skip to main content

getPlatformConfig delete my certificate

1 reply [Last post]
Joined: 2008-06-18


I realized when getPlatformConfig is called, the pseConfAdv is not correctly loaded (specifically the certs and encryptedPrivateKey attributes). It happens on the following lines (I think the problem is that instead of load the pseConf, it creates a new one):

if (cert != null) {
pseConf = createPSEAdv(cert);

Therefore, when the save method of NetworkConfigurator is called, pseConfAdv is not saved and my rootcert and my encryptedprivatekey are lost. Is it a bug or am I doing something wrong? Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-01-31

Nope, it is a bug.

Forget about the NetworkConfiguration to set your certificates. Put everything in your keystore, lock it with a password and provide it when you want to access its content.