reply
Protocol code and x.509 certficate handling will probably be better written in another language.