Skip to content

Instantly share code, notes, and snippets.

View IronGhost63's full-sized avatar

Jirayu IronGhost63

View GitHub Profile
@dol
dol / csr.php
Last active August 13, 2020 08:20
PHP CSR with subjectAltName
<?php
$keyConfig = [
'private_key_type' => OPENSSL_KEYTYPE_RSA,
'private_key_bits' => 2048,
];
$key = openssl_pkey_new($keyConfig);
$sanDomains = [
'mydomain.tld',