X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 26 Jun 2012 13:59:12 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: [OpenSSL]Is it possible to show the numerical value of the public and private key's exponent in a certificate Message-ID: <20120626115912.GA27153@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jun 26 13:01, gialloporpora wrote: > Dear all, > I am trying to learn how S/MIME encryption/digital signing works. > > I would like to show the numerical values assigned to my private and > public key. > > I have converted my personal certificate from p12 to pem, in this way: > > openssl pkcs12 -in mycert.p12 -out mycert.pem > > Now, I have used this command to show the modulus of the private/public key: > > openssl rsa -in mykey.pem -noout -modulus > > and I see an hexadecimal value, now I know that my public key is a > data like this: > > (exp1, modulus) > > > > where modulus is the value above. My private key is: > > (exp2, modulus) > > where exp1 and exp2 satisfy: > > exp1*exp2 ? 1 mod (p-1)(q-1) > modulus=p*q > > I would like to know if is it possible to show the numerical values > of exp1 and exp2 stored in my certificate. Since this is a OpenSSL question, you will probably have more luck asking on the appropriate openssl-users mailing list: http://www.openssl.org/support/community.html Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple