Sponsored Content
Full Discussion: Create signature
Top Forums UNIX for Beginners Questions & Answers Create signature Post 303031295 by Corona688 on Monday 25th of February 2019 03:06:05 PM
Old 02-25-2019
You can't. That option is disabled for this forum.
This User Gave Thanks to Corona688 For This Post:
 

7 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

profile signature

What happend to profile signatures. don't seems to be displayed in posts for few days. it's not important. but just to know what's wrong with it? Thanks, (1 Reply)
Discussion started by: mib
1 Replies

2. UNIX for Dummies Questions & Answers

mail with automatic signature

Hi everybody! I want to know if someone knows about a program that "inserts" a graphic in the signature of a mail user. Let me be more clear. I'm mail admin in a company that uses Netscape Messaging Server 4.15, and my boss wants to put a graphic christmas message in all the outgoing mails. ... (1 Reply)
Discussion started by: piltrafa
1 Replies

3. Forum Support Area for Unregistered Users & Account Problems

signature?

do these forums allow for the user signatures? I couldn't find anything in my profile, but remember something about signatures when I registered first. Any info is appreciated. vlad (3 Replies)
Discussion started by: vgersh99
3 Replies

4. Post Here to Contact Site Administrators and Moderators

Signature???

In the user control panel, I noticed an option to enable viewing signatures. But somehow, I could not find any place to set my own signature. :( :confused: Could anyone tell me where I can find that option? (2 Replies)
Discussion started by: aniseed
2 Replies

5. Red Hat

Header V3 DSA signature:

# rpm -ivh telnet-server-0.17-38.el5.i386.rpm warning: telnet-server-0.17-38.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186 error: Failed dependencies: xinetd is needed by telnet-server-0.17-38.el5.i386 # ----------------------------------------------- # yum -y... (2 Replies)
Discussion started by: dplinux
2 Replies

6. UNIX for Dummies Questions & Answers

About PuTTY RSA signature

On the website of Putty http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html http://www.chiark.greenend.org.uk/~sgtatham/putty/keys.html It provides the RSA signatures and public keys of binary files. It says: We create PGP signatures for all the PuTTY files distributed... (6 Replies)
Discussion started by: vistastar
6 Replies

7. Post Here to Contact Site Administrators and Moderators

Signature?

Hi there Where can i define a Signature? I can't see any point to do this... Regards, Jan (1 Reply)
Discussion started by: jm83
1 Replies
OPENSSL_SIGN(3) 							 1							   OPENSSL_SIGN(3)

openssl_sign - Generate signature

SYNOPSIS
bool openssl_sign (string $data, string &$signature, mixed $priv_key_id, [mixed $signature_alg = OPENSSL_ALGO_SHA1]) DESCRIPTION
openssl_sign(3) computes a signature for the specified $data by generating a cryptographic digital signature using the private key associ- ated with $priv_key_id. Note that the data itself is not encrypted. PARAMETERS
o $data - The string of data you wish to sign o $signature - If the call was successful the signature is returned in $signature. o $priv_key_id - resource - a key, returned by openssl_get_privatekey(3) string - a PEM formatted key o $signature_alg - int - one of these Signature Algorithms. string - a valid string returned by openssl_get_md_methods(3) example, "sha256WithRSAEncryption" or "sha384". RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 openssl_sign(3) example <?php // $data is assumed to contain the data to be signed // fetch private key from file and ready it $pkeyid = openssl_pkey_get_private("file://src/openssl-0.9.6/demos/sign/key.pem"); // compute signature openssl_sign($data, $signature, $pkeyid); // free the key from memory openssl_free_key($pkeyid); ?> Example #2 openssl_sign(3) example <?php //data you want to sign $data = 'my data'; //create new private and public key $new_key_pair = openssl_pkey_new(array( "private_key_bits" => 2048, "private_key_type" => OPENSSL_KEYTYPE_RSA, )); openssl_pkey_export($new_key_pair, $private_key_pem); $details = openssl_pkey_get_details($new_key_pair); $public_key_pem = $details['key']; //create signature openssl_sign($data, $signature, $private_key_pem, OPENSSL_ALGO_SHA256); //save for later file_put_contents('private_key.pem', $private_key_pem); file_put_contents('public_key.pem', $public_key_pem); file_put_contents('signature.dat', $signature); //verify signature $r = openssl_verify($data, $signature, $public_key_pem, "sha256WithRSAEncryption"); var_dump($r); ?> SEE ALSO
openssl_verify(3). PHP Documentation Group OPENSSL_SIGN(3)
All times are GMT -4. The time now is 02:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy