Forum Discussion

MauroNunes's avatar
MauroNunes
Icon for Altostratus rankAltostratus
Nov 22, 2019

How retrieve CSR (format PEM) via REST v14.0.0.1

Hi everyone, It's that possible get the CSR via REST? With SOAP "certificate_request_export_to_pem" it's possible get the CSR from F5.   With REST, we can only check the contents and the locat...
  • jaikumar_f5's avatar
    jaikumar_f5
    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/