Re: openssl ciphers fails when using "!"

2010-03-31 Thread Ben DJ
On Tue, Mar 30, 2010 at 12:14 PM, Kyle Hamilton  wrote:
> That's your shell talking.  Try:
>
> openssl ciphers -v 'HIGH:!RSA'# note the single-quotes
>
> You just have to tell the shell not to interpret the bang, by quoting
> it -- either with a backslash or in an uninterpreted-quoted string.

fwiw, for each of:

 sh
 bash
 tcsh

results,

 openssl ciphers -v ALL:!RSA
  RSA: Event not found.

 openssl ciphers 'ALL:!RSA'
  RSA: Event not found.

 openssl ciphers -v "ALL:!RSA"
  RSA: Event not found.

checking escaping,

 echo "ALL:\!RSA"
  ALL:!RSA

then,

 openssl ciphers -v ALL:\!RSAWORKS
 openssl ciphers -v 'ALL:\!RSA'WORKS
 openssl ciphers -v "ALL:\!RSA"WORKS

whereas, in ksh, all of

 openssl ciphers -v ALL:!RSA
 openssl ciphers 'ALL:!RSA'
 openssl ciphers -v "ALL:!RSA"

WORK with no escaping required.

i've suggested that perhaps a mention in the man page might be worthwhile ?

bendj
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


Re: openssl ciphers fails when using "!"

2010-03-30 Thread Kyle Hamilton
On Tue, Mar 30, 2010 at 10:06 AM, Ben DJ
 wrote:
> does @v1.0.0 'openssl ciphers -v ...' still support "!" notation, as
> in 'openssl ciphers -v !RSA' ?
>
> man page says it does,
>
>  man ciphers | grep "Each cipher" -A5
>       Each cipher string can be optionally preceded by the characters !, - or
>       +.
>
>       If ! is used then the ciphers are permanently deleted from the list.
>       The ciphers deleted can never reappear in the list even if they are
>       explicitly stated.
>
> but using "!" gives "Event not found"
>
> e.g.,
>
>  openssl ciphers -v "HIGH:RSA"  WORKS
>  openssl ciphers -v "HIGH:-RSA"  WORKS
>
> but,
>
>  openssl ciphers -v "HIGH:!RSA"
>
> returns,
>
>  RSA: Event not found.

That's your shell talking.  Try:

openssl ciphers -v 'HIGH:!RSA'# note the single-quotes

You just have to tell the shell not to interpret the bang, by quoting
it -- either with a backslash or in an uninterpreted-quoted string.

-Kyle H
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org


Re: openssl ciphers fails when using "!"

2010-03-30 Thread Bruce Stephens
Ben DJ  writes:

[...]

> but,
>
>   openssl ciphers -v "HIGH:!RSA"
>
> returns,
>
>   RSA: Event not found.

I think that's your shell, not openssl.
__
OpenSSL Project http://www.openssl.org
User Support Mailing Listopenssl-users@openssl.org
Automated List Manager   majord...@openssl.org