Could not find /root/.siriproxy/server.passless.key
I performed a clean installation with root user following the instructions of @elvisimprsntr at https://gist.github.com/elvisimprsntr/4409751 but, as it was already happened by running the installation as a normal user, at the time of launch siriproxy with nobody user, the error appears again.
To overcome this problem, I copied the folder /home/.siriproxy in /etc/siriproxy and I changed the file connection/iphone.rb at line 15 and now the keys are retrieved correctly.
Perhaps it would be useful to move all the configurations from /home/.siriproxy to the /etc/siriproxy .
My changes on connection/iphone.rb:15 are:
#start_tls(:cert_chain_file => File.expand_path("~/.siriproxy/server.passless.crt"),
# :private_key_file => File.expand_path("~/.siriproxy/server.passless.key"),
# :verify_peer => false)
start_tls(:cert_chain_file => File.expand_path("/etc/siriproxy/server.passless.crt"),
:private_key_file => File.expand_path("/etc/siriproxy/server.passless.key"),
:verify_peer => false)
while this works for your specific installation, there needs to be a more universal method.
The solution is to move all the configuration in /etc/siriproxy and at that point it is functional for everyone, as for all applications on linux environment.
I fixed this by moving my .siriproxy directory from root to /home/nobody (change this to your users home), changed file ownership (chown -R nobody:nobody /home/nobody/.siriproxy) and symlink the new .siriproxy directory to /root/.siriproxy (ln -s /home/nobody/.siriproxy /root/.siriproxy)