You mentioned that you have managed to get Mono to build on CentOS.
Don't build ServiceStack from source:
While it is possible, it's unnecessary. You can copy the existing ServiceStack dlls you may have from Windows; you don't need a special build, nor do you have to build them yourself on CentOS.
No Build instructions ... use NuGet:
There aren't specific instructions for building ServiceStack on CentOS, because there aren't instructions for building it from source at all. The recommended approach is to obtain the ServiceStack dlls from NuGet. But you'll only want to do that if you are using the CentOS machine as your development machine. In which case you can download the NuGet command line tool. Then simply run:
mono nuget.exe install ServiceStack
Then in you development IDE (I recommend monodevelop) reference the files that were downloaded by NuGet. See here for instructions on how to get Mono and MonoDevelop running on CentOS.
Invalid Certificate Warning:
This occurs when you haven't added the Mozilla Trusted Root Certificate Providers to the mono trusted providers store. You just need to do this action once, and mono will start trusting SSL certificates from the standard trusted sources:
mozroots --import --sync
See here for more information about Mono SSL Security.
Deploying:
It's just a case of copying your published project to CentOS and following these configuration instructions from the documentation. Except instead of using apt-get
to install nginx
you will need to use yum
. But the configuration of nginx and fastcgi is the same.