openssl_sign Generate signature &reftitle.description; boolopenssl_sign stringdata stringsignature mixedpriv_key_id intsignature_algOPENSSL_ALGO_SHA1 openssl_sign computes a signature for the specified data by using SHA1 for hashing followed by encryption using the private key associated with priv_key_id. Note that the data itself is not encrypted. &reftitle.parameters; data signature If the call was successful the signature is returned in signature. priv_key_id signature_alg For more information see the list of Signature Algorithms. &reftitle.returnvalues; &return.success; &reftitle.changelog; &Version; &Description; 5.0.0 The signature_alg parameter was added. &reftitle.examples; <function>openssl_sign</function> example ]]> &reftitle.seealso; openssl_verify