Todd Zullinger wrote in
<[email protected]>:
|Steffen Nurpmeso wrote:
|> Todd Zullinger wrote in
|> <[email protected]>:
|> ..
|>|I don't know the S/MIME stuff enough to test this, but I
|>|wonder if simply not specifying `smime_ca_location` results
|>|in using the system OpenSSL cert store -- on distributions
|>|which set a default store?
|>
|> No.
|
|Perhaps you can clarify why that is so clear cut? Your
|later comment about X509_STORE_set_default_paths() implies
|you're referring to C code which uses the OpenSSL libraries.
|But the S/MIME code here calls `openssl smime` directly.
Ahh! Oh, sorry, that i missed completely!
Sure .. then not.
|When `smime_ca_location` is set, that command gains the
|`-CAfile` or `-CApath` option to point at the location. I
|don't think it's clear that excluding the option will result
|in _not_ using a default trust store, if the distribution
|has built/configured OpenSSL to use one. Their own
|documentation says it can and does differ.
I have no idea, doing in openssl git
$ git grep set_defa master -- apps/
gives me a match only in x509.c; looking at "man openssl-cms"
points to "man openssl-verification-options", and from only a very
quick glance that says
-no-CAfile
Do not load the default file of trusted certificates.
-no-CApath
Do not use the default directory of trusted certificates.
so i would *think* that is that.
Personally i only ever used "openssl smime" to create counterproof
tests which then goes
{ openssl smime -decrypt -inkey ./client2-key.pem -in ./t.ENCRYPT |
openssl smime -verify -CAfile ./ca.pem; } >>${E} 2>&1
etc, and that is all i know.
(I need to go ${x} -> $x in more places.)
Sorry for the noise.
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)