scharel / harbour-nextcloudnotes

Nextcloud notes client for SailfishOS
MIT License
13 stars 10 forks source link

Allow selfsigned SSL certificates #32

Open scharel opened 5 years ago

scharel commented 5 years ago

This should be an option per account. The here: https://stackoverflow.com/questions/35577243/access-and-read-html-php-page-by-https-request-by-qml-js-behind-htaccess-apache2

#include <QSslConfiguration>
#include <QSslSocket>

QSslConfiguration config = QSslConfiguration::defaultConfiguration();
config.setPeerVerifyMode(QSslSocket::VerifyNone);
QSslConfiguration::setDefaultConfiguration(config);`
vbelloir commented 4 years ago

Hi, Is there any update? My owncloud is hosted on a Synology NAS, which is accessed with a Let's Encrypt certificat.

App simply tells me that an error occurred.

If I can help.

EDIT : hum, I got a specific configuration. I don't access the NAS with the standard 443 https port, but with another one. If I specify the port in the server url like bellow, connexion tries, but never ends. https://mydomain.com:xxxx where xxxx is the specific port.

dimpflmoser commented 4 years ago

Hi, it seems to work for me: My Nextcloud runs on an Odroid server at home. That webserver (apache) hosting my Nextcloud instance is also equipped with a Let's Encrypt certificate and I use scharel's Nextcloud notes on an encrypted channel without any issues.

Actually since you use a Let's Encrypt certificate it's not self-signed and should be trusted by on of the certificate chains installed on your local SSL installation.

vbelloir commented 4 years ago

You are right. My issue doesn't concern self certificat, by custom https port I think

dimpflmoser commented 4 years ago

My home server also runs on a custom port, which doesn't cause any cert trust issues with Nextcloud notes.

So I assume it's something different. Have you checked the URL stored in Nextcloud notes in a ordinary web browser?

vbelloir commented 4 years ago

I should create another issue, because my behavior seems to be note related to this one.