--TEST-- Bug #52093 (openssl_csr_sign truncates $serial) --SKIPIF-- --FILE-- "BR", "stateOrProvinceName" => "Rio Grande do Sul", "localityName" => "Porto Alegre", "commonName" => "Henrique do N. Angelo", "emailAddress" => "hnangelo@php.net" ); $privkey = openssl_pkey_new(); $csr = openssl_csr_new($dn, $privkey); $cert = openssl_csr_sign($csr, null, $privkey, 365, [], PHP_INT_MAX); var_dump(openssl_x509_parse($cert)['serialNumber']); ?> --EXPECT-- string(19) "9223372036854775807"