1. Download the small minirootXX.fs from OpenBSD.org
2. Prepare an USB Stick:
dd if=minirootXX.fs of=/dev/<USB> bs=1​

3. Prepare your serial console: 115200,8n1.
4. Insert Memory stick and boot.
5. At the console prompt choose Nr. 2, boot from USB Stick
6. For just a few seconds the BSD boot prompt will appear. Now you have to redirect the serial console:

stty com0 115200
set tty com0
=> press Enter

after the installation fix it in the boot.conf
set tty com0
-> the system will ask for that while the installation process.

Check a certificate

openssl x509 -in server.crt -text -noout

Check a key

openssl rsa -in server.key -check

Check a CSR

openssl req -text -noout -verify -in server.csr

Verify a certificate and key matches

openssl x509 -noout -modulus -in server.crt| openssl md5
openssl rsa -noout -modulus -in server.key| openssl md5

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:

=======================================
Service [nginx] status=[enable]
required upstart job: 
	[nginx] is start. 
=======================================

Use the synoservicectl tool to restart the service:

# synoservicectl --restart nginx
Helps for system administration with systemd:

Control and manipulate services

systemctl
systemctl enable [servicename]
systemctl stop/start [servicename]
systemctl disable [servicename]

Remove services from systemd

systemctl stop [servicename]
systemctl disable [servicename]
rm /etc/systemd/system/[servicename]
systemctl daemon-reload
systemctl reset-failed