plamoni / SiriProxy

A (tampering) proxy server for Apple's Siri
GNU General Public License v3.0
2.12k stars 343 forks source link

Could not find /root/.siriproxy/server.passless.key #519

Open pippolino opened 11 years ago

pippolino commented 11 years ago

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)
elvisimprsntr commented 11 years ago

while this works for your specific installation, there needs to be a more universal method.

pippolino commented 11 years ago

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.

dstuecken commented 10 years ago

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)