notes-android icon indicating copy to clipboard operation
notes-android copied to clipboard

wrong username or password

Open eggithub opened this issue 10 years ago • 12 comments

Hi there,

Just installed the app from f-droid. I think I have the server address and credentials filled out correctly but still the app shows "invalid username or password".

info: able to connect to server from other apps/browser notes app version 0.6.0 from f-droid owncloud 8.2.2 with notes enabled android 4.3 self signed certificate, imported in android logcat shows no usable output, except "invalid login"

no clue what i'm doing wrong here.

What is the format of the server address? https://servername:port/owncloud ?

cheers!

eggithub avatar Feb 04 '16 10:02 eggithub

Hi, can you provide a demo-account for your owncloud instance and send me the credentials via email?

stefan-niedermann avatar Feb 04 '16 13:02 stefan-niedermann

Will do tonight. Can you provide me with an IP(range) to let you through my firewall?

eggithub avatar Feb 04 '16 13:02 eggithub

sadly no, i don't have a fix ip address. i can give you my current address when i can test it, but this will change after 24 hours :disappointed:

stefan-niedermann avatar Feb 04 '16 13:02 stefan-niedermann

you can give me multiple subnets if you want...

eggithub avatar Feb 04 '16 13:02 eggithub

My current IP-Address is 84.149.154.229

stefan-niedermann avatar Feb 04 '16 18:02 stefan-niedermann

you can try now...

eggithub avatar Feb 04 '16 19:02 eggithub

I was able to reproduce the exception. But i do not know yet why it is caused. I exported your cert and imported it into android. Sadly i have not very much experience with self signed certificates...

sslpeerunverifiedexception

Hostname x.to not verified:
    certificate: sha1/cjrKVKacPs8+ynDotfYdxGlZi3E=
    DN: CN=x.x.15.3,O=\ \ ,ST=\ \ ,C=\ \ 
    subjectAltNames: []

stefan-niedermann avatar Feb 04 '16 19:02 stefan-niedermann

me neither, just know how to create one. I think I remember something about self signed certificates and owncloud client from 2 years ago about not being able to connect. something to do with the fact that the CN had to be the same as the IP adres or hostname. but I remember it that vaguely that I don't know if this was the real issue; still could be related though. i'll try and make a new cert.

eggithub avatar Feb 04 '16 19:02 eggithub

Maybe this Stackoverflow-answer could be useful...

Make sure that the certificate that you are installing is actually a CA certificate and not just a simple x509 certificate. Unfortunately the certificate installer that comes with ICS will gladly install the certificate even if it's not a CA certificate. It will misleadingly say that the certificate was successfully installed. It will even put the file under /data/misc/keystore. However, i

stefan-niedermann avatar Feb 04 '16 19:02 stefan-niedermann

Some requests reached me from people who have the same problem. I think the general issue is accepting self signed certificates. If you are ok with the decision i would close this issue in favor of #73.

stefan-niedermann avatar Feb 10 '16 10:02 stefan-niedermann

Fine with me. I'll check the other post for updates.

Cheers!

On 10 February 2016 11:58:00 CET, Niedermann IT-Dienstleistungen [email protected] wrote:

Some requests reached me from people who have the same problem. I think the general issue is accepting self signed certificates. If you are ok with the decision i would close this issue in favor of #73.


Reply to this email directly or view it on GitHub: https://github.com/stefan-niedermann/OwnCloud-Notes/issues/82#issuecomment-182314402

eggithub avatar Feb 10 '16 13:02 eggithub

I also have a self-signed certificate and I get the exact same error. The only solution for me was to change from https to http.

fxedel avatar Feb 10 '16 13:02 fxedel