Re: command line hmac with key in hex

2012-08-02 Thread MITSUNARI Shigeo
Hi, >You can achieve this using the generalised MAC interface to HMAC like this: > >openssl dgst -sha1 -mac HMAC -macopt hexkey:aabbcc I'm ashamed of my mail. Thank you for your advice. Yours, Shigeo __ OpenSSL Project

Re: command line hmac with key in hex

2012-08-02 Thread Dr. Stephen Henson
On Thu, Aug 02, 2012, MITSUNARI Shigeo wrote: > Hi, > I tried to use openssl command to generate an HMAC with a key > contains '\0', but failed. > > >openssl dgst -sha1 -hmac `cat ` > > I'm happy if dgst command supports binary format like enc command. > So I appended -hmachex option as the fo

Re: command line to c++ code

2011-05-09 Thread lists
On 04/13/2011 07:16 PM, luis hernandez wrote: Hi I do not know if you have talk about this here, but I can not find the answer. How to translate a command line commandt to a c++ code? For instance if at commandd prompt i do this: openssl x509 -inform DER -in cert.cer There is no single op

RE: command line to c++ code

2011-04-14 Thread luis hernandez
> Date: Wed, 13 Apr 2011 16:17:45 -0700 > From: pie...@hogranch.com > To: openssl-users@openssl.org > Subject: Re: command line to c++ code > > On 04/13/11 4:11 PM, luis hernandez wrote: > > > > > take a look at the source to openssl (the executable utility)

Re: command line to c++ code

2011-04-13 Thread John R Pierce
On 04/13/11 4:11 PM, luis hernandez wrote: > take a look at the source to openssl (the executable utility). I > believe its in C and it, obviously, can do every possible command line > that it does. > One month doing it that way but there is not other way. its that or spend month(s) learning

RE: command line to c++ code

2011-04-13 Thread luis hernandez
> Date: Wed, 13 Apr 2011 12:41:16 -0700 > From: pie...@hogranch.com > To: openssl-users@openssl.org > Subject: Re: command line to c++ code > > On 04/13/11 10:16 AM, luis hernandez wrote: > > Hi > > I do not know if you have talk about this here, but

Re: command line to c++ code

2011-04-13 Thread John R Pierce
On 04/13/11 10:16 AM, luis hernandez wrote: Hi I do not know if you have talk about this here, but I can not find the answer. How to translate a command line commandt to a c++ code? For instance if at commandd prompt i do this: openssl x509 -inform DER -in cert.cer -noout -enddate What cod

RE: Command Line Question: req for keypair

2011-03-03 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Bob Bell (rtbell) > Sent: Wednesday, 02 March, 2011 13:33 > I am trying to generate a PKCS#10 certificate request with a > pre-existing RSA public/private key pair that was generated using genpkey. > The actual command is ope

Re: command line resul ok but not c++ code

2011-02-08 Thread lu_hernan
Thank you. Matej Kurpel wrote: > > On 5. 2. 2011 16:31, lu_hernan wrote: >> Thank you for answering. >> >> The file does not include any CR or LF but I have noticed that is saved >> in >> UTF-8. Does it has anything to do with the problem? > Maybe. Some UTF-8 files can contain a Byte Order Mark

Re: command line resul ok but not c++ code

2011-02-05 Thread Matej Kurpel
On 5. 2. 2011 16:31, lu_hernan wrote: Thank you for answering. The file does not include any CR or LF but I have noticed that is saved in UTF-8. Does it has anything to do with the problem? Maybe. Some UTF-8 files can contain a Byte Order Mark (or BOM) which consists of 3 bytes at the very begi

RE: command line resul ok but not c++ code

2011-02-05 Thread lu_hernan
Thank you for answering. The file does not include any CR or LF but I have noticed that is saved in UTF-8. Does it has anything to do with the problem? If I read the file with a program with the code below the result is the same as the command line but, if I take the content of a file and put it

RE: command line resul ok but not c++ code

2011-02-04 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of lu_hernan > Sent: Friday, 04 February, 2011 19:14 > openssl dgst -md5 sometextdata.txt > > it gives an answer XYZ > > but using this code en visual c++: > const unsigned char data[]="text from file: sometextdata.txt"; > unsigned char md[MD5_D

RE: Command line

2010-07-29 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Ana Paula > Sent: Thursday, 29 July, 2010 05:57 > I need to create certificate and rsa keys and I’ve downloaded > openssl-0.9.8o and openssl-1.0.0a. > I can´t run 'install.com' because I’ve this error ‘The NTVDM > CP

Re: Command line

2010-07-29 Thread Kyle Hamilton
On 7/29/10 2:56 AM, Ana Paula wrote: > > Hi > > > > I need to create certificate and rsa keys and I've downloaded > openssl-0.9.8o and openssl-1.0.0a. > > I can´t run 'install.com' because I've this error 'The NTVDM CPU has > encountered an illegal instruction '. > > I don't know how to acess

RE: Command line

2010-07-29 Thread Luis Neves
Hi By your error I presume you are trying to install openssl on a windows machine right? See this link, it looks like a simple installation method for that case http://www.slproweb.com/products/Win32OpenSSL.html (I never tried it, just found it in a google search) Hope it helps, Luis From: ap

Re: Command line

2010-07-29 Thread Emerson Saito
If you are a begginer and using a Linux SO, I recommend to use TinyCA visual interface (http://tinyca.sm-zone.net/). http://www.frameworkdemoiselle.gov.br/ 2010/7/29 Federico Berton > First of all, you have to CD to the bin directory of OpenSSL. > The command line is quite simple. > In this exa

Re: Command line

2010-07-29 Thread Hugo Garza
If you are using windows then you should just grab the binary distribution: http://www.openssl.org/related/binaries.html On Linux you should use your distribution's package manager to install openssl. On Thu, Jul 29, 2010 at 4:56 AM, Ana Paula wrote:

RE: Command-line file encryption

2006-08-25 Thread Marek Marcola
Hello, > So what you are saying is that if I encrypt a file with a password > according to my interpretation of PKCS#5/PBKDF2, then it might not > decrypt properly (with the same password) using the command-line openssl > function? Yes, this function internally looks like PBKDF2 and has similar use

RE: Command-line file encryption

2006-08-24 Thread Randy Turner
] [mailto:[EMAIL PROTECTED] On Behalf Of Marek Marcola Sent: Wednesday, August 23, 2006 11:53 PM To: openssl-users@openssl.org Subject: RE: Command-line file encryption Hello, > Ok, it looks like these values are computed from the password... > > Is the algorithm for computing the key an

RE: Command-line file encryption

2006-08-23 Thread Marek Marcola
Hello, > Ok, it looks like these values are computed from the password... > > Is the algorithm for computing the key and IV from the password > published ? PBKDF2 from PKCS#5 realized by EVP_BytesToKey() in OpenSSL. I don't remember exactly but there was some incompatibility with this standard ...

RE: Command-line file encryption

2006-08-23 Thread Randy Turner
Ok, it looks like these values are computed from the password... Is the algorithm for computing the key and IV from the password published ? R. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Randy Turner Sent: Wednesday, August 23, 2006 1:40 PM To: op

Re: command line for cert with cipher DHE-RSA-AES256-SHA

2006-03-11 Thread Dr. Stephen Henson
On Sat, Mar 11, 2006, xstation (sent by Nabble.com) wrote: > > what is the command line for ceartating a cert with these ciphers > DHE-RSA-AES256-SHA > as in > > see foot of document > Any certificate carrying an RSA key is suitable, but you must also supply a set of DH parameters to the serv

RE: Command Line Params

2005-03-07 Thread Lee Jenkins
Steve Wrote: > that will create a certificate and key with the CA extensions in > openssl.cnf. These are in the section 'v3_ca'. An alternative is > to use the > certificate extensions in the section v3_usr. This can be done with: > > openssl req -x509 -new -out cert.pem -keyout key.pem -extens

Re: Command Line Params

2005-03-07 Thread Dr. Stephen Henson
On Mon, Mar 07, 2005, Lee Jenkins wrote: > > > You can do the whole thing in a single command by using the -x509 > > option to > > 'req'. You might want to use alternative extensions though > > because that will > > use CA ones by default. > > Could I impose upon your for an example? > If yo

RE: Command Line Params

2005-03-07 Thread Lee Jenkins
> You can do the whole thing in a single command by using the -x509 > option to > 'req'. You might want to use alternative extensions though > because that will > use CA ones by default. Could I impose upon your for an example? Lee _

Re: Command Line Params

2005-03-07 Thread Dr. Stephen Henson
On Mon, Mar 07, 2005, Lee Jenkins wrote: > > > Hello all, > > I am using the following commands to create a self-cert: > > *** > req -config openssl.cnf -new -out myserver.csr > > rsa -in privkey.pem -out key.pem > > x509 -in my

Re: command line certificates with Crypto++ private keys?

2001-10-26 Thread Dr S N Henson
Assuming its a binary file try: openssl pkcs8 -in key.bin -inform DER -nocrypt openssl pkcs8 -in key.bin -inform DER if neither works see what: openssl asn1parse -inform DER -in key.bin produces on a test key (i.e. not anything important). Steve. -- Dr Stephen N. Henson. http://www.drh-con

Re: command line

2000-07-14 Thread Wendy Breu
Hi there, Attached are: 1) getKeyReq.tk: expectk source which I request openssl to generate a RSA:1024 bit key pair and a certificate request. Please read the header as the scripts two environment variables. One can change the key type to DSA:nnn and extend the gui to hand

Re: command line

2000-07-13 Thread hirntod
Fine ! Can you send the part of the sourcecode which you make the client req. Lot of thanks, hirntod On Mon, 10 Jul 2000, Wendy Breu wrote: > Hi there, > > I did something similar via a tk/expect script to generate a certificate > request. > A user would enter all necessary info for a Dist

Re: command line

2000-07-10 Thread Dr Stephen Henson
Arnaud De Timmerman wrote: > > all, > > Is there a way to use the "req" utility only on the command line ? > Yes, there's an example in the 'req' manual page. > And I don't want to use the prompt=no option since there are personal fields. What do you mean by that? prompt=no is specifically d