AnsweredAssumed Answered

RESTMAN privateKeys import

Question asked by PhBrand on Apr 21, 2017
Latest reply on May 9, 2017 by Bill_Peterson

Hi,

 

We're trying to automatically import privateKeys on our appliances through RESTman.

privateKeys/{id}/import doesn't seems to work on the following situations:;

 

1) we already have a private key with id "00000000000000000000000000000002:apisbox1-eu", import failswith error msg: java.security.KeyStoreException: Keystore already contains an entry with the alias 'apisbox1-eu'. Caused by: Keystore already contains an entry with the alias 'apisbox1-eu'.

Sounds reasonable.

2) Now let's remove this entry and import a new one with privateKeys. We then get:

Resource not found 00000000000000000000000000000002:apisbox1-eu

 

What's puzzling is that we can indeed import a pfx file through Policy Manager (after removing existing one).

 

What are we doing wrong here ?

Outcomes