//For background on this issue, see my comments on [[ http://www.guywarner.com/2014/06/part-2-integrating-phabricator-and.html | this blog post ]].//
I create a bot user in Phabricator and now I want to set up `arc` on a remote host to be able to talk to Phabricator as that bot user.
I follow the Arcanist Quick Start guide and see that I need to [[ https://secure.phabricator.com/book/phabricator/article/arcanist_quick_start/#install-arcanist-credent | install a certificate ]] for my bot user as such:
```
arc install-certificate
```
The problem is that this command returns some very confusing instructions.
```
Trying to connect to server...
LOGIN TO PHABRICATOR
Open this page in your browser and login to Phabricator if necessary:
http://phabricator.my.server.com/conduit/login/
Then paste the API Token on that page below.
Paste API Token from that page:
```
If I follow these instructions, I end up setting up `arc` to authenticate as myself and not the bot user, which isn't what I want.
So I go to the settings page for my bot user on Phabricator and copy the Arcanist Certificate on there to paste into `arc install-certificate`.
When I try that I get:
```
Usage Exception: The token "veryveryverylongtokenthatislongerthan32charactersanddoesntbeingwiththeletterscliblahblahblah..." is not formatted correctly. API tokens should be 32 characters long. Make sure you visited the correct URI and copy/pasted the token correctly.
```
Apparently, the correct procedure to get `arc` to authenticate as your bot user is to create an `.arcrc` file on the remote host you are setting up and fill in these values:
```
{
"hosts": {
"http:\/\/phabricator.my.server.com\/api\/": {
"user": "my-bot-user",
"cert": "veryverylongstringoflettersandnumbersthatislongerthan32charactersanddoesntnecessarilybeginwiththeletterscli"
}
}
}
```
I only found this out by asking on `#phabricator` on IRC. It wasn't documented in any obvious place.
This sounds like a flow that could definitely be improved.