[core] support stunnel4