Page 1 of 1

Alarm Decoder - from Mac to pi server

PostPosted: Sun Sep 14, 2014 3:05 pm
by s2928
I have my AD2USB connected to a raspberry pi and can control my alarm via browser using the webapp.

i would like to see if i can control the alarm via the alarmdecoder app for Mac.

i do not understand the directions for ssl in the alarmdecoder app for mac which say to read the ser2sock readme.txt, or the error message, that require a certificate in the same folder.

here is a screenshot of the error message...

Re: Alarm Decoder - from Mac to pi server

PostPosted: Sun Sep 14, 2014 3:53 pm
by mathewss
First get things going with no SSL it is easier. Is your ser2sock running with certificates and SSL? By default I think its not configured this way.

Re
Sean M

Re: Alarm Decoder - from Mac to pi server

PostPosted: Sun Sep 21, 2014 7:32 pm
by s2928
When i set up th RPi, first i used the web app, and set it up with no SSL.

That worked via browser, but i didnt try the mac app.

Then i used the webapp to add ssl and that worked via browser.

Are you saying i should turn off ssl, then try the mac app?

If so, by turning off ssl, dont i give up some security?

Thanks.

Re: Alarm Decoder - from Mac to pi server

PostPosted: Tue Sep 23, 2014 11:04 am
by kevin
You will have to get the certs off of your pi, they would be in /etc/ser2sock/certs

You will need to convert them to pkcs12 format, here is an example (untested) to do this:

openssl pkcs12 -export -in web.pem -inkey web.key -out clientCert.p12 -name client -certfile ca.pem


Replace the pem and key files in that line with your generated ssl chains from the pi - place the resulting pkcs12 pack in the same folder as the alarmdecoder keypad's main binary.

You can also export the certs from the webapp in pkcs12 format itself. They would be under the certificates tab in settings!

Thanks,
Kevin