gnulib shouldn't be needed explicitly
simplify selfsign and request, some stuff is already allocated.