Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remote access doesn't work with ssl require directive #4

Open
ghost opened this issue Oct 4, 2015 · 7 comments
Open

remote access doesn't work with ssl require directive #4

ghost opened this issue Oct 4, 2015 · 7 comments

Comments

@ghost
Copy link

ghost commented Oct 4, 2015

Hi,
First thank you for your app it's very usefull.
Unfortunately I'm using openhab with ssl certificate. If no certificate in your app no connexion.
Could you please add the possibility to choose the certificate in android store ?
If you need more information don't hesitate to ask me.
Thank you.
Gilles.

@llamahunter
Copy link
Owner

I also use openHAB with ssl. But I'm confused about your request. The certificate for openHAB is on the server side, not the client side.

Are you using a non-standard CA for your certificate? If so, I think you may have trouble. There's no way that I know of for a pebble watch app to tell the pebble app running on your phone to use a different CA chain, short of manually installing the new CA in the phone OS. Have you given that a try?

Alternatively, it's pretty cheap these days to get an SSL cert signed from a well known CA, such as a Comodo PositiveSSL cert for $5/year. https://www.ssls.com/ssl-certificates/comodo-positivessl That's what I'm using.

@ghost
Copy link
Author

ghost commented Oct 5, 2015

Hi,
you are right if you use ssl without asking the client a certificate.
I choose to connect on my openhab server throught ssl, but I add a directive in jetty that ask to the client a certificate. If the client don't have a valid certificate, the connexion will be rejected. It's more secure like that because someone could try a force attack on login and password.

In my self signed ".p12" certificate, there are the Certificate authority and client certificate so no problem with that. In android if you do that it's ok. But the application must have to know that it's not a system certificate but a user certificate.

For example, I use owncloud calendar. I set up my web server to use ssl require directive to ask the client giving a valid certificate. To be ok, I asked the caldav developper to choose a certificate in android trusted certificates store and it works without having to use a well know CA.

Another example is my connexion to openhab interface with firefox. Firefox can now choose a certificate from android trust store. So if no certificate no connexion.

I don't know if I'm clear, but security is very important to me.

If your ok, and if you don't want waste your time. I propose to ask pebble team how a watchapp can use a client certificate and if it is possible.

Tell me.

Thank you ,

Gilles.

@llamahunter
Copy link
Owner

Ah, you are doing client side SSL authentication. Yes, that would be more secure. However, I'm pretty sure that requires a change in the official Pebble app for your phone, as the current API doesn't seem to provide any way to provide a client SSL certificate on HTTP communication.

https://developer.getpebble.com/docs/pebblejs/#ajax

Let me know if you find out a way to do client side certs and I'll look into adding it.

@ghost
Copy link
Author

ghost commented Nov 10, 2015

Hi,
I contact dev support but as I'm not a dev, could you discuss with them ?

I give them this issue to hav the possibility to contact you as I don't know you e-mail.

Here is what I wrote:

"
Hi Jon,

Fisrt my apologies for my late answer.

I'm not the developper of the application just a user. Unfortunatly, my skills are on linux side.

The best I can do is to put the github link to you have the possibility to contact the dev as I haven't got his e-mail.

From my user side I need to reach an https webserver with the obligation to use a p12 certificate which is stored in android trust store.

Again, thank you answering me.

I'm available to do some tests if needeed.

Best Regards,

Gilles.

Le 08/11/2015 05:01, Pebble Developer Support a écrit :

##- Please type your reply above this line -##

Hi gilles,

We sent you an email recently about the issue you reported seeing:

We haven't heard back from you in awhile and wanted to make sure you
were able to find a resolution. If this is no longer an issue, please
let us know so we can mark this issue resolved. Otherwise, please
respond to this email with your response to the following comment:

JON BARLOW (Pebble Developer Support)

Nov 3, 7:23 PM

Hi Gilles,

I've spoken with the Android team and they'd like some more
information about the issue.

Can you raise a support ticket using the Pebble app on your phone and
include the log files.

In the same ticket, can you also explain how you're trying to access
the services. I have assumed ajax calls? Can you provide some code
too.

Please reply when you've done that.

Thanks in advance,

Jon Barlow
Developer Advocate

Thanks!
This email is a service from Pebble Developer Support.
Message-Id:JDDWYV5OXJ_563ec9291aa1b_4c8b3faea98cd31c32001b_sprut

Gilles

@ghost
Copy link
Author

ghost commented Nov 10, 2015

Here is their answer:

Jon Barlow (Pebble Developer Support)
Nov 10, 4:42 AM

Hi Gilles,

Thanks for the update.

It's probably best if use the 'contact developer' button via their app in the Pebble appstore. Then the developer can liaise with us directly to investigate this further.

Kind regards,

Jon Barlow
Developer Advocate

@ghost
Copy link
Author

ghost commented Jan 31, 2016

Hi,

As promise I contact pebble support and they agree to work with you.

I can't do anything more.

Gilles.

@llamahunter
Copy link
Owner

Hi there!

Last fall, this project moved to:

http://github.com/openhab/openhab.pebble

Please open an 'issue' there requesting support for client side certificates.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant