openssl_sign Generate signature Description boolopenssl_sign stringdata string&signature mixedpriv_key_id intsignature_alg &warn.experimental.func; &return.success; If successful the signature is returned in signature. 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. <function>openssl_sign</function> example ]]> See also openssl_verify.