Server Installation and Service » Historie » Revize 6
Revize 5 (Eliška Mourycová, 2021-05-19 14:45) → Revize 6/36 (Eliška Mourycová, 2021-05-19 14:48)
h1. Server Installation (WIP)
The server runs on Debian 10 VM at https://nuada.zcu.cz/
The ip of the machine is 147.228.173.54
h2. Hardware requirements
TBD, however the default settings for creating the VM seem to suffice
h2. Software requirements
The server app needs Mono framework to run. Tested on version 5.18.0.240.
For mono installetion see *Mono installation*.
h2. "Deploying" the Server Application
h3. Uploading the project to the remote machine
Current approach to uploading the project is to transfer a .zip file containing the .exe file and all the dlls needed for the server to run. At the moment that is the Server\ServerApp\bin\x64\Debug directory.
$ scp {dir_name}.zip root@{machine_ip}:/home/someDir
h3. Building the project???
TBD - wasn't able to build on linux yet
h4. Mono installation (needed for building as well as running)
$ sudo apt install mono-complete
h3. Certificate generation and usage
h4. Generating the certificate
http://www.mono-project.com/archived/using-clientcertificates-with-xsp/
In this example, the files are named *root.key* and *root.cer*, however they can be called *anything.key/.cer*.
$ makecert -r -n "CN=My Own Test CA" -sv root.key root.cer
$ certmgr --add -c Trust root.cer
$ hostname (displays the machine's host name)
$ makecert -iv root.key -ic root.cer -eku 1.3.6.1.5.5.7.3.1 -n "CN={hostname}" -p12 {hostname}.p12 s3kr3t
h4. Linking the certificate to a port?
$ httpcfg -add -port {port} -pvk root.key -cert root.crt
Current port using the cerificate is 10000.
h4. Adding trusted root certificates to the server (idk if this has any effect)
Copy your CA to dir /usr/local/share/ca-certificates/
Use command: sudo cp foo.crt /usr/local/share/ca-certificates/foo.crt
Update the CA store: sudo update-ca-certificates