Owncloud plugin ssl FN9.3.1

Status
Not open for further replies.

James1432

Dabbler
Joined
Mar 28, 2016
Messages
43
Hey Josh

Here's what I got..

mv: rename /usr/pbi/owncloud/etc/apache24/server.crt to /usr/pbi/owncloud/etc/ap
ache24/41414141414141.crt: No such file or directory
root@owncloud_1:/ # cat /usr/pbi/owncloud/etc/apache24/41414141441441crt
/usr/pbi/owncloud/etc/apache24/gd_bundle-g2-g1.crt > /usr/pbi/owncloud/etc/apach
e24/server.crt

root@owncloud_1:/ #

taking that I need to change the nameserver again?
 
Last edited:

James1432

Dabbler
Joined
Mar 28, 2016
Messages
43
struggling here again mate.. don't think I'm changing it in the right place?

Edited hosts and hosts allow but that broke the config.. this is what mozilla is showing..

81.137.132.51 uses an invalid security certificate. The certificate is only valid for the following names: www.ceserver.co.uk, ceserver.co.uk

How do I change this mate? Get the feeling I'm close!! :)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
whoops, the commands I listed had a mistake. I corrected post.
 

James1432

Dabbler
Joined
Mar 28, 2016
Messages
43
Hey Josh

Went back an did it again as per instructions.. Got this instead

root@owncloud_1:/ # cat /usr/pbi/owncloud-amd64/etc/apache24/4141414141141.cr
t /usr/pbi/owncloud-amd64/etc/apache24/gd_bundle-g2-g1.crt > /usr/pbi/owncloud-a
md64/etc/apache24/server.crt
root@owncloud_1:/ # service apache24 restart
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
and does browsing to your domain over https work now?
 

James1432

Dabbler
Joined
Mar 28, 2016
Messages
43
yeah its back up but when I type the domain name into the browser it comes back with the IP address instead.. Mozilla is saying the folowing when I try to connect..

81.137.132.51 uses an invalid security certificate. The certificate is only valid for the following names: www.ceserver.co.uk, ceserver.co.uk
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ok sounds like your certificate is correctly installed.

so Apache or owncloud is redirecting you? did you even have http access to your owncloud install from your domain name?

maybe this is related to owncloud's trusted domain setting? I'd try deleting that from your owncloud config
/usr/pbi/owncloud-amd64/www/owncloud/config/config.php
 

James1432

Dabbler
Joined
Mar 28, 2016
Messages
43
Hi Josh.. I don't think so come to think of it, Just redirect to IP address

went to the config.php and removed the IP address altogether.. restarted the plugin.. same result as before :/
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
well the redirect might be a browser cache thing, so try testing it with a fresh browser.
to test if the redirect is from Apache or the owncloud code, try browsing to https://DOMAIN.com/robots.txt

have you every hosted anything with a proper domain name from your home? there are a few things that can cause issues that are particular to your setup, like how you router handles NAT reflection.
 

James1432

Dabbler
Joined
Mar 28, 2016
Messages
43
Tried refreshing the browser.. got the same result :( tried looking for the robots.txt and got nothing?

Previously only used Godaddy hosting.. Been an adventure doing this lol

I have a Business Hub thats also doing my routing as need a NIC for my pfsense

It is possible to place '1' application outside the NAT table though..
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
if you cant browse to the robots.txt then this issue isn't with php/owncloud. either something with your NAT setup, or Apache. can you browse to the robots.txt using the domain over http?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ok, just to confirm if your NAT for https is working can you try robots.txt again over https, and force your way past any browser warnings to see if you actually can view the file Apache should be serving.

if not, this is an issue with your router
 

James1432

Dabbler
Joined
Mar 28, 2016
Messages
43
Hit advanced and got this instead of normal get cert etc..

Parse error: syntax error, unexpected ',', expecting ')' in /usr/pbi/owncloud-amd64/www/owncloud/config/config.php on line 12
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hit advanced and got this instead of normal get cert etc..

Parse error: syntax error, unexpected ',', expecting ')' in /usr/pbi/owncloud-amd64/www/owncloud/config/config.php on line 12
when you edited your config.php you didn't remove the statement properly.
 

James1432

Dabbler
Joined
Mar 28, 2016
Messages
43
oh dear.. this is what I have

'trusted_domains' =>
array ( 0 => 'ceserver.co.uk' , 1 => '81.137.132.51:443' ),
'datadirectory' => '/media',
'overwrite.cli.url' => 'http://ceserver.co.uk',

Can't remeber messing with anything else in there.. am I screwed??
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
just don't screw stuff up in that file, lol
change those lines to...

'trusted_domains' =>
array ( 0 => 'ceserver.co.uk' ,),
'datadirectory' => '/media',
'overwrite.cli.url' => 'https://ceserver.co.uk',
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I'm not sure what you are linking to.
why can't I access your domain? what's wrong with your router, why is everything redirecting?
I host real domains from pfsense / ddwrt home connections all the time and don't have random redirects. is your router just doing NAT, or trying to do more?

if you think its a complication with the trusted domains (which I don't think it is because I can't access your robots.txt) you can just delete the whole trusted domain entry, not just the IP like you did earlier.
 

James1432

Dabbler
Joined
Mar 28, 2016
Messages
43
Tried to diasable SIP ALG was reading in there it might cause interference with applications.. not much else other than the firewall settings themselves which are set to Auto?
 
Status
Not open for further replies.
Top