Forum Discussion
How retrieve CSR (format PEM) via REST v14.0.0.1
- Nov 28, 2019
Sorry for the delay. You can import any files with the below option, It will land in
/var/config/rest/downloads location
curl -kv -u admin:admin -X POST -H "Content-Type: application/octet-stream" -H "Content-Range: 0-1023/1024" --data-binary "@testupload.crt" https://hostname/mgmt/shared/file-transfer/uploads/testupload.crt
For more details, you can articles - https://devcentral.f5.com/s/articles/demystifying-icontrol-rest-part-5-transferring-files
Hope it helps/
There is no native rest call to get this from my understanding,,, you can instead call the tmsh command and run it,
curl -sk -u 'username:password' -H "Content-Type: application/json" -X POST https://hostname/mgmt/tm/util/bash -d "{\"command\":\"run\",\"utilCmdArgs\":\"-c 'tmsh list sys crypto csr example.csr'\"}"
Hope this helps.
- jaikumar_f5Nov 28, 2019MVP
Sorry for the delay. You can import any files with the below option, It will land in
/var/config/rest/downloads location
curl -kv -u admin:admin -X POST -H "Content-Type: application/octet-stream" -H "Content-Range: 0-1023/1024" --data-binary "@testupload.crt" https://hostname/mgmt/shared/file-transfer/uploads/testupload.crt
For more details, you can articles - https://devcentral.f5.com/s/articles/demystifying-icontrol-rest-part-5-transferring-files
Hope it helps/
- jaikumar_f5Nov 25, 2019MVP
You can mark the answer as solution provided if it really helps.
- MauroNunesNov 25, 2019Altostratus
Now I've another question. There is some rest call to make the Import CER (also in PEM format)?
- MauroNunesDec 05, 2019Altostratus
Now I've another issue, regarding with files after ulpload.
As I'm running in a cluster environment when I try make the install of the CRT sometimes I receive the NOT FOUND, because isn't sync and the other server is responding.
Did you know some way to sync the files, or the SYNC Group will solve these?
Anyway, if there are some native rest to make the install on the device, but I can't found anything related with send signed certificate push to member server.
Recent Discussions
Related Content
* 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