x509 -modulus output to a file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

x509 -modulus output to a file

Bynum, Don
I would expect the following:
 
openssl x509 -modulus -noout -in mycert.crt -out mymod.txt
 
to output the modulus to the specified "out" file just like all other x509 commands with -out specified.  It does not.  Anybody know how to get the modulus sent to a file?
 
openssl x509 -modulus -noout -in mycert.crt>mymod.txt  works but is no good from a shell command in a program.
 
Thanks,
Don.
 
 
 
Donald E. Bynum
Donald E. Bynum
Director, Architecture & Integration
 
Network Solutions                 office:   1-703-668-5616
13200 Woodland Park Drive   fax:      1-703-668-5899 
Herndon, VA 21071-3025        mobile: 1-301-367-2072
Reply | Threaded
Open this post in threaded view
|

Re: x509 -modulus output to a file

Marek.Marcola
Hello,

>
>  
> openssl x509 -modulus -noout -in mycert.crt -out mymod.txt
>  
> to output the modulus to the specified "out" file just like all other
> x509 commands with -out specified.  It does not.  Anybody know how to
> get the modulus sent to a file?
>  
> openssl x509 -modulus -noout -in mycert.crt>mymod.txt  works but is no
> good from a shell command in a program.
With "openssl x509" you can't write modulus to file because it is
always printed to stdout.

Best regards,
--
Marek Marcola <[hidden email]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]