Projekt

Obecné

Profil

Server Installation and Service » Historie » Revize 2

Revize 1 (Eliška Mourycová, 2021-05-05 13:57) → Revize 2/36 (Eliška Mourycová, 2021-05-05 15:39)

h1. Server Installation (WIP) 

 The server runs on Debian 10 VM at https://nuada.zcu.cz/ 

 h2. Hardware requirements 

 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/ 

 > 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 

 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