Hi Aya,

I have not tried this with a self-signed certificate,  but putting the 
"-sha256" option in the signature command has worked for me before, i.e.,

x509 -req -in server.csr -signkey server.key -out server.crt -sha256

The can check the attribute with:
x509 -text -in server.crt

...
Signature Algorithm: sha256WithRSAEncryption
...

Regards,
Bill

From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] 
On Behalf Of Aya Montasser
Sent: Sunday, March 16, 2014 7:13 AM
To: openssl-users@openssl.org
Cc: aya.montas...@paxeramed.com
Subject: Sha256

Greetings

I am using latest openssl version 1.x

Please I want to get self signed certificate with signature algorithm and 
signature hash algorithm with sha256 but I can't find appropriate commands
To do it , it is always sha1

Although I change default_md = sha256 in openssl.cnf file but no changes occur
Also I use the command below
openssl req -nodes -sha256 -newkey rsa:2048 -keyout server.key -out server.csr
and I got crt from the key
x509 -req -in server.csr -signkey server.key -out server.crt
but also it get out signature algorithm sha1


so please any help


Paxeramed to showcase latest PACS technologies @ SIIM- California

   [cid:image008.jpg@01CF14A5.EEAD2E00]



Eng. Aya Montasser
Web developer
Email: aya.montas...@paxeramed.com<mailto:aya.montas...@paxeramed.com>
Mobile: +201003943642
Paxeramed Corp ::  New Era in PACS
Web Site : www.paxeramed.com<http://www.paxeramed.com/>


[Description: Description: Description: Description: Description: 
Paxeramed_logo_mail.png]

Main Office:

European Office:

Southern Africa Office:

MENA Office:

300 Washington St, Newton, MA 02458, USA

Bundes Strasse 2,
7064 Oslip, Austria

47 hillcrest drive, Beacon Bay
East London, South Africa.

2nd Floor, B115 Bldg,
Smart Village Cairo, Egypt

Tel : 1-888-430-0005
Fax: 1-816-817-4648

Tel : +43 664 840 61 97
Tel : +43 664 201 55 57

Tel : +27 834 447770
Fax: +27 437 485609

Tel : +20 353 70716
Fax: +20 353 75713

P Before printing think about the Environment.
CONFIDENTIALITY NOTICE: Information in this email message, including any 
attachments, is intended solely for the personal and confidential use of the 
recipients(s) named above. If you are not an intended recipient of this 
message, or an agent responsible for delivering it to an intended recipient, 
you are hereby notified that you have received this message in error, and that 
any review, dissemination, distribution, or copying of this message is strictly 
prohibited. If you received this message in error, please notify the sender 
immediately, delete the message, and return any hard copy print-outs.

<<inline: image001.jpg>>

<<inline: image002.png>>

  • Sha256 Aya Montasser
    • RE: Sha256 Glenn, William

Reply via email to