openssl_spki_new Generate a new signed public key and challenge &reftitle.description; stringopenssl_spki_new resourceprivkey stringchallenge intalgorithm0 Generates a signed public key and challenge using specified hashing algorithm &reftitle.parameters; privkey privkey should be set to a private key that was previously generated by openssl_pkey_new (or otherwise obtained from the other openssl_pkey family of functions). The corresponding public portion of the key will be used to sign the CSR. challenge The challenge associated to associate with the SPKAC algorithm The digest algorithm. See openssl_get_md_method(). &reftitle.returnvalues; Returns a signed public key and challenge string or NULL on failure. &reftitle.errors; Emits an E_WARNING level error if an unknown signature algorithm is passed via the algorithm parameter. &reftitle.examples; <function>openssl_spki_new</function> example Generate a new SPKAC with the default digest (MD5) ]]> &example.outputs.similar; &reftitle.seealso; openssl_spki_new openssl_spki_export_challenge openssl_spki_export openssl_csr_new openssl_csr_sign