Forum Discussion
benoit_9199
May 05, 2015Nimbostratus
Well, after asking F5 support it is a referenced bug ID489843: "A GET on some file object configurations (for example tm/sys/crypto/key) does not return all of the properties of the file object."
And the expected way to use it will be:
POST //mgmt/tm/sys/crypto/key HTTP/1.1
Host: 10.208.102.28
Authorization: Basic YWRtaW46YWRtaW4=
Content-Type: application/json
Cache-Control: no-cache
{ "name":"test001", "options":[{"get-csr":"test001"}], "common-name":"rest.test.com" }
- mayouche_162667Apr 05, 2016NimbostratusHi, I was able to create a key using rest api calls, but i'm unable to generate the CSR. Could you please clarify whether this is a known f5 bug?
- benoit_9199Apr 05, 2016NimbostratusWell, actually i opened a case last week for this exact problem. i'll keep you posted on the results
- benoit_9199Apr 12, 2016NimbostratusApparently the whole command is buggy, you should contact your support representative and make them aware you are facing this bug so it get the maximum attention possible: ID 511582 iControl REST - Get error msg when creating "sys crypto csr" object, but it does get created.
- Mrk_Aug 19, 2016Nimbostratus
It seems the only way to get the CSR is to use 'bash' through iControl. Really nasty, but does the trick: https://devcentral.f5.com/questions?pid=46785