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.
- MauroNunesNov 25, 2019Altostratus
- 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)?
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