xgrr.de – the whole not the half

things, thoughts and stuff out of life, daily business and computer science


Realized a good thing…

When I started playing around with the library tool we have here at HP I browsed a book about qmail. A mailserver I’m involved with for about five years now but still I discovered something very, very nice about the used architecture. The most parts of qmail aren’t able to do anything on the network. This is done by external tools like tcpserver. There are also other programs which enhance tcpserver to use ssl encryption.

For a current project I created a C# program which transmits control information to slaves via ssl. Currently I programmed the network part and all the communication in my executable. But due to limitations of C# on Linux I wasn’t able to use SSL certificate authentication from within C# yet. Maybe I’ll adapt the tcpserver idea to simplify my application…

Mono: Private key for SslStream.AuthenticateAsServer()

Argggg. It’s bugging me for weeks now. I started to program an application on Windows using C#. Now as the time is ready I want to port it to Linux using Mono. From the function view everything is fine. But when it comes to details there is much work to do for the Mono project especially regarding documentation.

On Windows my applications loads the certificate and its private key from the Windows Store. On Linux this is simulated by Mono. But when I import my certificate it doesn’t import it’s private key which leads to failing authentication. This sucks! Hope to find the solution quickly as this stops my development since weeks now.

C# does not know signaling

Currently I’m trying to code a new part of a project for my company called petliADMIN. It consists of two parts. A webapplication written in PHP which controls a C# based daemon running on the nodes which petliADMIN is about to administrate. The result of the project is something linke Webmin but with a node system with no need for an webserver on all nodes.

Now I’m encoutering a HUGE problem. It seems that C# does not know how to handle signals produced by the linux system it’s running on. I planned to run the application under Daniel J. Bernsteins’ daemontools which are running on serveral servers of mine. Now I have to figure out how to emulate signaling in C#…. :(