Synology

Synology certificates

Is it possible to change certificates for the file stations and synology ui by shell?

Yes- it is.

You can find and replace the certs here:

/usr/syno/etc/certificate/system/default

After editing the certificates you can use the syno-cli to manipulate the services:

Work with the root user (careful):

# synoservice 

you’ll get the help and see –status

# synoservice --status

Now you have all syno services listed.

For restarting the webserver (nginx) you can restart the nginx service which you find in the status list:

How to clear blocked IP list

Login to your NAS by ssh:

May take a backup from the autoblock databse:

cp /etc/synoautoblock.db
/etc/synoautoblock.db.bak

Change to database sqlite mode:

sqlite3 "Enter"
open the database:
sqlite> .open /etc/synoautoblock.db

Show tables:

sqlite> .tables
> AutoBlockIP

Show all entries:

sqlite> select * from AutoBlockIP;

Delete all entries from database:

sqlite> delete from AutoBlockIP;

Show all entries again:

sqlite> select * from AutoBlockIP;

Delete a single entry: