Openssl signature

$clientCrtFname = dirname(__FILE__)."/mobileconfig/ios_cert/clientCert.pem";
$clientKeyFname = dirname(__FILE__)."/mobileconfig/ios_cert/clientKey.pem";
$caCrtFname = dirname(__FILE__)."/mobileconfig/ios_cert/caCert.pem";
 
$filename = dirname(__FILE__).'/mobileconfig/cache/'.$tmp_name;
$signed_filename = dirname(__FILE__).'/mobileconfig/cache/signed_'.$tmp_name;
$cmd = "openssl smime -sign -signer ".$clientCrtFname." -inkey ".$clientKeyFname." -certfile ".$caCrtFname.
 
                		" -nodetach -outform der -in ".$filename.
 
                		" -out ".$signed_filename;
 
                	system($cmd);

Related posts:

Leave a Reply

Your email address will not be published.