After installing SSL can't administer DS

Questions pertaining to Power settings, Auto Block, Permissions, User Quotas and Email alerts may be posted here.
Forum rules
This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu

After installing SSL can't administer DS

Postby kenco8801 » Mon Apr 09, 2012 2:49 pm

Hi
After following the instructions posted here:
viewtopic.php?f=36&t=21704
I can no longer get onto the web administration of the DS.
Can anyone suggest a way to disable HTTPS and enable HTTP? via SSH?
Thank
kenco8801
Beginner
Beginner
 
Posts: 25
Joined: Sun Mar 04, 2012 8:39 pm

Re: After installing SSL can't administer DS

Postby kenco8801 » Mon Apr 09, 2012 2:58 pm

For more info, I cannot start apache

/usr/syno/etc/rc.d/S97apache-user.sh start
Start User Apache Server .....
/usr/syno/etc/rc.d/S97apache-user.sh: user httpd could not be started
kenco8801
Beginner
Beginner
 
Posts: 25
Joined: Sun Mar 04, 2012 8:39 pm

Re: After installing SSL can't administer DS

Postby GNOE Inc. » Mon Apr 09, 2012 4:04 pm

kenco8801 wrote:For more info, I cannot start apache

/usr/syno/etc/rc.d/S97apache-user.sh start
Start User Apache Server .....
/usr/syno/etc/rc.d/S97apache-user.sh: user httpd could not be started


try /usr/syno/etc/rc.d/S97apache-sys.sh start
DS 207+ FW: DSM 3.1 -1613
DS 710+ FW: DSM 4.1
DS 212+ FW: DSM 4.1

We know everything about nothing ......

Note: English is not my native language.......
User avatar
GNOE Inc.
Versed
Versed
 
Posts: 225
Joined: Sun Oct 12, 2008 8:41 pm

Re: After installing SSL can't administer DS

Postby kenco8801 » Mon Apr 09, 2012 5:14 pm

Hi GNOE,
That didn't work either:

/usr/syno/etc/rc.d/S97apache-sys.sh start
Start System Apache Server ..... -DSSL -f /usr/syno/apache/conf/httpd.conf-sys
/usr/syno/etc/rc.d/S97apache-sys.sh: system httpd could not be started
kenco8801
Beginner
Beginner
 
Posts: 25
Joined: Sun Mar 04, 2012 8:39 pm

Re: After installing SSL can't administer DS

Postby italoye » Fri Apr 20, 2012 9:48 am

I have the same problem. Have you found a solution ?

Is there a way to disable ssl using ssh ?
italoye
I'm New!
I'm New!
 
Posts: 2
Joined: Fri Apr 20, 2012 9:41 am

Re: After installing SSL can't administer DS

Postby GNOE Inc. » Fri Apr 20, 2012 10:51 am

Yes, we have:
Pfff, that's a long time ago. As far as I can recall, there was a script in /usr/syno/etc/ssl called mkcert.sh that would reinstall the original key's and certificates.

** searching the internet **
Restoring certificates

In case something goes wrong, Synology has supplied an easy way to, not restore, but create a set of new and working certificates. This should restore the certificates if importing certificates from the web manager has failed. If you need a telnet or ssh client use PuTTY.

Login as root, using the admin users password, to the Synology NAS drive using telnet or ssh. And type the following in the command prompt:

cd /usr/syno/etc/ssl/
./mkcert.sh

Allow the script to finish, and type reboot in the prompt.
In a while the NAS drive should have rebooted, and everything should be fine again.
source: http://forum.synology.com/wiki/index.php/How_to_generate_custom_SSL_certificates

Take a look at this, at the bottom of the mentioned page is the thingy that you're probably looking for? :mrgreen:
DS 207+ FW: DSM 3.1 -1613
DS 710+ FW: DSM 4.1
DS 212+ FW: DSM 4.1

We know everything about nothing ......

Note: English is not my native language.......
User avatar
GNOE Inc.
Versed
Versed
 
Posts: 225
Joined: Sun Oct 12, 2008 8:41 pm

Re: After installing SSL can't administer DS

Postby italoye » Fri Apr 20, 2012 10:55 am

I solved my problem but my solution was much more complicated than running a simple script.

Thanks for your answer.
italoye
I'm New!
I'm New!
 
Posts: 2
Joined: Fri Apr 20, 2012 9:41 am

Re: After installing SSL can't administer DS

Postby kenco8801 » Thu May 03, 2012 9:16 pm

I was far too impatient to wait for GNOE's reply (but very grateful all the same as his solution may have caused less stress)

I hit the reset button on the backup of my DS411slim and hoped for the best - it didn't wipe the drives, I just had to reinstall DSM. :lol:
kenco8801
Beginner
Beginner
 
Posts: 25
Joined: Sun Mar 04, 2012 8:39 pm

Re: After installing SSL can't administer DS

Postby Nodigano » Fri Aug 10, 2012 2:28 am

Reset button worked. No wipeout all good now.
Nodigano
I'm New!
I'm New!
 
Posts: 2
Joined: Thu Mar 15, 2012 3:20 pm

Re: After installing SSL can't administer DS

Postby usua69 » Mon Sep 24, 2012 9:43 pm

Hello,
I have the same problem, but can not access via ssh / telnet ...

I performed the reset with the 3 beeps, and left me to reinstall the DSM, but still can not enter into any service http.

This happened to me after installing certificates


Sorry for my bad english, only speak Spanish. :-(

PLEASE HELP!!!!!!!!!
usua69
Trainee
Trainee
 
Posts: 10
Joined: Mon Sep 24, 2012 9:38 pm

WEB server unreachable

Postby M'enfin! » Tue Sep 25, 2012 2:43 pm

Hi everyone,

I'm a newbie, so forgive me if this question has already been answered. I didn't find it.

My DS212+ was installed and working fine until I decided to upload in it a SSL key and certificate for security purposes.
From that moment, I am unable to reach the WEB server of the NAS (HTTP, HTTPS, Bonjour, WEBDAV, …) and cannot control it anymore. However, Synology Assistant finds it.

I have tried the resets and even re-installed the DSM (4.1-2636). No change.

Any idea ? Thanks.
DS 212+ - 2x WD EARX 2To - DSM 4.1 2647
iMac 24" - Mac OS X 10.7.5
iPad 2 - iOs5 5.1.1 (9B206)
iPhone 4S - iOs6 6.0 (10A403)
User avatar
M'enfin!
I'm New!
I'm New!
 
Posts: 8
Joined: Tue Sep 25, 2012 2:21 pm
Location: Gif-sur-Yvette –France

Re: After installing SSL can't administer DS

Postby M'enfin! » Wed Sep 26, 2012 2:40 pm

First of all thanks to everyone for your help, and mainly to "GNOE Inc."
In his post THE solution is at the bottom in the link:
http://forum.synology.com/wiki/index.php/How_to_generate_custom_SSL_certificates


GNOE Inc. wrote:Yes, we have:
Pfff, that's a long time ago. As far as I can recall, there was a script in /usr/syno/etc/ssl called mkcert.sh that would reinstall the original key's and certificates.

** searching the internet **
Restoring certificates

In case something goes wrong, Synology has supplied an easy way to, not restore, but create a set of new and working certificates. This should restore the certificates if importing certificates from the web manager has failed. If you need a telnet or ssh client use PuTTY.

Login as root, using the admin users password, to the Synology NAS drive using telnet or ssh. And type the following in the command prompt:

cd /usr/syno/etc/ssl/
./mkcert.sh

Allow the script to finish, and type reboot in the prompt.
In a while the NAS drive should have rebooted, and everything should be fine again.
source: http://forum.synology.com/wiki/index.php/How_to_generate_custom_SSL_certificates

Take a look at this, at the bottom of the mentioned page is the thingy that you're probably looking for? :mrgreen:



All fine, but how do you "login in the Synology using TELNET or SSH" when you are not a geek or just clever enough ?

On an iMac, I don't have PUTTY. So here is what I did :

  1. I opened "Terminal"
  2. In the menu "SHELL" -> "New distant connection"
  3. Use SSH; IP: the address of your Synology (manual or DHCP); login: root; password: your admin pwd. (Note that in Terminal the password you type does not show on the screen ! Just type-in the correct PWD then Enter)
  4. If there is a RSA-ID warning accept it by typing yes
  5. At the prompt "Synology> ", type exactly "cd /usr/syno/etc/ssl/" then "Enter"
  6. And type "./mkcert.sh
  7. Allow time for the script to perform…
  8. And finally type "Reboot"

It will take time for your Synology to reboot and you will receive a warning of lost connection (of course !) for your SSH connection to the Synology. When the connection is lost, you can close Terminal.

There is NOTHING new in my post, but I simply tried to ease the points where I had difficulties to proceed forward… Image Image
DS 212+ - 2x WD EARX 2To - DSM 4.1 2647
iMac 24" - Mac OS X 10.7.5
iPad 2 - iOs5 5.1.1 (9B206)
iPhone 4S - iOs6 6.0 (10A403)
User avatar
M'enfin!
I'm New!
I'm New!
 
Posts: 8
Joined: Tue Sep 25, 2012 2:21 pm
Location: Gif-sur-Yvette –France

Re: After installing SSL can't administer DS

Postby franc » Wed Jan 30, 2013 7:45 pm

Thank you!!!
A simple reboot did it in my case already :)

frank
DS712+ (4.1-2668)
franc
I'm New!
I'm New!
 
Posts: 1
Joined: Wed Jan 30, 2013 7:40 pm

Re: After installing SSL can't administer DS

Postby cejka » Mon Apr 15, 2013 8:34 pm

kenco8801 wrote:Hi
After following the instructions posted here:
viewtopic.php?f=36&t=21704
I can no longer get onto the web administration of the DS.
Can anyone suggest a way to disable HTTPS and enable HTTP? via SSH?
Thank


I have DS-209+II and my Firefox can't open it's DSM via HTTPS. So I just do this and it's work:

1) Log into your DS as root via SSH
2) cd /etc
3) vi synoinfo.conf
4) press "/" and type "runHTTPS" without quotes of course, appropriate settings line will looks like this one: runHTTPS="yes".
5) press "i" key
6) change the runHTTPS="yes" to runHTTPS="no" on settings line
7) press ESC key
8) type ":wq" and press Enter (without quotes)
9) on command line type: /usr/syno/etc/rc.d/S97apache-sys.sh restart
10) open your web browser and try to connect to your DS on its IP address (ex. 192.168.1.15)

Now you should be able to connect to your DSM without HTTPS.
cejka
Beginner
Beginner
 
Posts: 26
Joined: Fri Nov 26, 2010 1:26 pm


Return to System Management

Who is online

Users browsing this forum: No registered users and 5 guests