# how to copy certs to solace using cli

**URL:** <https://community.solace.com/t/how-to-copy-certs-to-solace-using-cli/481>\
**Category:** Solace Event Broker\
**Tags:** configuration, security\
**Created:** [November 9, 2020, 12:50pm UTC](https://community.solace.com/t/how-to-copy-certs-to-solace-using-cli/481 "2020-11-09T12:50:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manikanta532](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Manikanta532](https://community.solace.com/u/Manikanta532)\
**Post date:** [November 9, 2020, 12:50pm UTC](https://community.solace.com/t/how-to-copy-certs-to-solace-using-cli/481/1 "2020-11-09T12:50:45Z")

</div>

As per the doc, it was told to use the sftp command to copy certs from the remote host to /certs folder of solace. But, when am trying the same its throwing error:  
solace-ac\> copy sftp://root@\*\*\*\*/tmp/caserver.pem /certs/caserver.pem

Invalid command input  
copy sftp://root@\*\*\*\*/tmp/caserver.pem /certs/caserver.pem  
^  
 → unknown command, or command not available in current mode  
Suggest, how to proceed from the above, we would like to use solace with secure mode.

---

<div class="post-metadata">

**Author:** ![arih](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/arih/32/130_2.png) [@arih](https://community.solace.com/u/arih)\
**Post date:** [November 9, 2020, 1:06pm UTC](https://community.solace.com/t/how-to-copy-certs-to-solace-using-cli/481/2 "2020-11-09T13:06:53Z")

</div>

Hi @Manikanta532 ,

You would need to go into EXEC mode first, by simply enter “enable” command first. Then you’d see the prompt changed to solace-ac\*\*#\*\*  
Reference here: [Solace CLI](https://docs.solace.com/Solace-CLI/Using-Solace-CLI.htm#using_the_solace_router_cli_2293357723_204267)

---

<div class="post-metadata">

**Author:** ![Manikanta532](https://avatars.discourse-cdn.com/v4/letter/m/35a633/32.png) [@Manikanta532](https://community.solace.com/u/Manikanta532)\
**Post date:** [November 9, 2020, 2:42pm UTC](https://community.solace.com/t/how-to-copy-certs-to-solace-using-cli/481/3 "2020-11-09T14:42:40Z")

</div>

Thank you arih , it worked.
