add centos
add legend
if ext/openssl is not available use phpseclib