my $exp_pass = "password";
my $cnf_file = $CONF_FILE_PATH."ssl_server_certificate.conf";
#2k cert$cmd = "openssl req -config $cnf_file -new -x509 -sha256 -newkey rsa:2048"
." -nodes -keyout $crt_path/server.key -days 365 -out $crt_path/server.crt";
$out = $pc3_ssh->capture($cmd);;
#generate the pk12 file
$cmd = "openssl pkcs12 -passout pass:\"$exp_pass\" -export -in $crt_path/server.crt "
."-inkey $crt_path/server.key -out $crt_path/server.p12";my $out = $pc3_ssh->capture($cmd);