AFF





สร้าง CSR ออนไลน์

แบบฟอร์มสร้าง CSR









$_POST["countryName"],
"stateOrProvinceName" => $_POST["stateOrProvinceName"],
"localityName" => $_POST["localityName"],
"organizationName" => $_POST["organizationName"],
"organizationalUnitName" => $_POST["organizationalUnitName"],
"commonName" => $_POST["commonName"],
"emailAddress" => $_POST["emailAddress"]
);

$privkey = openssl_pkey_new(array(
"private_key_bits" => 2048,
"private_key_type" => OPENSSL_KEYTYPE_RSA,
));

$csr = openssl_csr_new($dn, $privkey, array('digest_alg' => 'sha256'));
openssl_csr_export($csr, $csrout);
openssl_export($privkey, $pkeyout);

file_put_contents("csr_output.csr", $csrout);
file_put_contents("private_key.key", $pkeyout);

echo "

ดาวน์โหลดไฟล์

";
echo "

";
}
?>

error: Content is protected !!