[PATCH 6.6 386/393] sign-file,extract-cert: move common SSL helper functions to a header