Forum Discussion

Bastian123234_2's avatar
Bastian123234_2
Icon for Nimbostratus rankNimbostratus
Jul 19, 2017
Solved

Modifying SSL Profile via REST API

Hello everyone,   Iam currently testing the REST API and having trouble with some simple changes on a SSL profile. Iam using local authentication, trying to modify a certificate used in a test pro...
  • Bastian123234_2's avatar
    Jul 20, 2017

    thanks for your feedback PK, but i found the issue:

    • first of all, I pulled the whole profile, changed the settings and pushed it again. This does not work. You have to push only the values you want change, in this case "cert", "key", and "chain".
    • second: i tried to change the mentioned values in "certKeyChain", however there are other key/value pairs within the hash I needed to change. It is a bit confusing, since they have the same name, and from my point of view, it makes more sense that the ones in the certKeyChain are the correct ones, but this is not the case.

    so all i had to push is:

    {"cert"=>"/Common/new_test.crt",
     "key"=>"//Common/new_test.key",
     "chain"=>"/Common/new_test.crt"}