Forum Discussion
benoit_9199
Nimbostratus
May 04, 2015Uploading/creating SSL cert+key using iControlREST
Hi,
The documentation available seem to say that to actually add an SSL private key and certificate to BigIP using tmsh you need to generate them somewhere and manually copy them to /config/ssl...
benoit_9199
Nimbostratus
May 05, 2015Well, 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, 2016
Nimbostratus
Hi, 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, 2016
Nimbostratus
Well, actually i opened a case last week for this exact problem. i'll keep you posted on the results - benoit_9199Apr 12, 2016
Nimbostratus
Apparently 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, 2016
Nimbostratus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects