Just a guess but https://192.168.1.100 or whatever private IP address will never have a valid SSL certificate. Maybe it's failing because of that? Does it matter if you enter a correct or a wrong username/password combination?
I'm using NextCloud backup on multiple boxes. NextCloud instance has a valid SSL cert though and is reached by hostname instead of IP. No issues.
In theory you can have an IP address in the SAN. But I guess this is not the case here.
Valid and trusted are two very different things in the world of certificates.Of course a wrong Uname/paswd would break the action.Nextcloud has the app. paswd for that, you'd never need to worry the curl would work just fine also using self signed certs. no problem.If you setup your local env. correctly using self signed certs there are no complaints by apps servers phones or whatever, just don't use them remotely unless you have a very good reason to do so, in fact better don't.I looked for 'ssl_verify_result":1' ; no list seems to explain the meaning for ''1'Later on in the line 'ssl_verifyresult":0' there seems nothing wrong.
Just import your self signed cert into the OPNsense
Quote from: lfirewall1243 on November 28, 2020, 08:34:09 amJust import your self signed cert into the OPNsenseI'm not the one having problems
Mar 23 21:55:27 OPNsense config[93546]: {"url":"https:\/\/192.168.8.13\/ocs\/v1.php\/cloud\/user","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":18,"redirect_count":0,"total_time":0.024741,"namelookup_time":6.6e-5,"connect_time":0.000522,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"192.168.8.13","certinfo":[],"primary_port":443,"local_ip":"192.168.8.1","local_port":62449,"http_version":0,"protocol":2,"ssl_verifyresult":0,"scheme":"HTTPS","appconnect_time_us":0,"connect_time_us":522,"namelookup_time_us":66,"pretransfer_time_us":0,"redirect_time_us":0,"starttransfer_time_us":0,"total_time_us":24741}
Mar 23 23:41:26 OPNsense config[60343]: {"url":"https:\/\/192.168.8.13\/ocs\/v1.php\/cloud\/user","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":1,"redirect_count":0,"total_time":0.023768,"namelookup_time":4.4e-5,"connect_time":0.00064,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"192.168.8.13","certinfo":[],"primary_port":443,"local_ip":"192.168.8.1","local_port":34026,"http_version":0,"protocol":2,"ssl_verifyresult":0,"scheme":"HTTPS","appconnect_time_us":0,"connect_time_us":640,"namelookup_time_us":44,"pretransfer_time_us":0,"redirect_time_us":0,"starttransfer_time_us":0,"total_time_us":23768}
I think I’m having the same issue. I’ve tried w/ both my actual username/password and the application specific generated credentials. Here are the relevant logs2021-03-11T19:26:40 config[36701] {"url":"https:\/\/nextcloud.willsisti.com\/ocs\/v1.php\/cloud\/user","content_type":null,"http_code":0,"header_size":0,"request_size":0,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":60.00686,"namelookup_time":0.000374,"connect_time":0,"pretransfer_time":0,"size_upload":0,"size_download":0,"speed_download":0,"speed_upload":0,"download_content_length":-1,"upload_content_length":-1,"starttransfer_time":0,"redirect_time":0,"redirect_url":"","primary_ip":"","certinfo":[],"primary_port":0,"local_ip":"","local_port":0,"http_version":0,"protocol":0,"ssl_verifyresult":0,"scheme":"","appconnect_time_us":0,"connect_time_us":0,"namelookup_time_us":374,"pretransfer_time_us":0,"redirect_time_us":0,"starttransfer_time_us":0,"total_time_us":60006860} 2021-03-11T19:26:40 config[36701] Cannot get real username
Show your Backup config please.
Have you selected your NC IP address or FQND?
I was getting the same error and resolved it with following steps:1. From profile icon (NextCloud account), under Security create an app specific password2. In OPNSense add following items: a. Enable backup under NextCloud b. URL: https://nextcloud.willsisti.com (mine is with linuxfabrik.io just in case you want to give it a try) c. Username: your email for NC account d. Password: generated in step 1) e. Encryption: leave it blank for now but change it later f. Directory name: leave blank for now to save at the root but you can change it later3.Click on Setup/Test, and wait few seconds for backup to be created and uploaded to root directory of NC accountThe above steps worked for me, hope it solves your problem.
Hello and thanks for your answers,Quote from: lfirewall1243 on March 24, 2021, 09:27:13 pmShow your Backup config please.Enable = tickedURL = https://192.168.8.13User Name = <username>Password = <app_generated_password_for_username>Encryption Password = blankDirectory Name = opnsense_backupQuote from: lfirewall1243 on March 24, 2021, 09:27:13 pmHave you selected your NC IP address or FQND?I have selected the IP (192.168.8.13) because my nextcloud is only accessible through LAN (not opened to the internet)Quote from: pankaj on March 25, 2021, 03:20:50 amI was getting the same error and resolved it with following steps:1. From profile icon (NextCloud account), under Security create an app specific password2. In OPNSense add following items: a. Enable backup under NextCloud b. URL: https://nextcloud.willsisti.com (mine is with linuxfabrik.io just in case you want to give it a try) c. Username: your email for NC account d. Password: generated in step 1) e. Encryption: leave it blank for now but change it later f. Directory name: leave blank for now to save at the root but you can change it later3.Click on Setup/Test, and wait few seconds for backup to be created and uploaded to root directory of NC accountThe above steps worked for me, hope it solves your problem.I did exactly the same except I am using the IP of Nextcloud (it has no FQDN) and the Directory Name which can't be left blank (or it generates the error "The Backup Directory can only consist of alphanumeric characters, dash, underscores and slash. No leading or trailing slash.")I am pretty sure this is a certificate issue. Again, my Nextcloud is not accessible from the internet so I am using self-signed certificate which was generated during installation of Nextcloud (not corresponding to a FQDN). I had no problem to import this certificate in Firefox or Thunderbird though...Any clue?Thanks for any help!
I did exactly the same except I am using the IP of Nextcloud (it has no FQDN) and the Directory Name which can't be left blank (or it generates the error "The Backup Directory can only consist of alphanumeric characters, dash, underscores and slash. No leading or trailing slash.")I am pretty sure this is a certificate issue. Again, my Nextcloud is not accessible from the internet so I am using self-signed certificate which was generated during installation of Nextcloud (not corresponding to a FQDN). I had no problem to import this certificate in Firefox or Thunderbird though...Any clue?