Various fixes regarding PKCS#12 input and related cleanup of apps, doc, and tests #4930
Conversation
|
|
|
I also noticed that doc/man1/s_server.pod is somewhat out of sync.
|
|
I think if you have a PKCS#12 file, then you have the certificate, private key and any chain |
|
I agree that typically a PKCS#12 file contains these related types of key material and that it would be logical and most convenient to refer to such a file only once (including any password input). I fear that rectifying this would take some non-negligible effort, including a (backward compatible) extension of the CLI options design for all apps that should support joint PKCS#12 input. Shall we go for that, and who would be willing and have time to help doing this? Nevertheless, the generaliizations I've proprosed here are already useful in themselves - with just the inconvenience that, as before, a PKCS#12 file used not only for key input but also for certificate input needs to be named (together with any password input) more than once. |
apps/s_client.c
Outdated
Show resolved
Hide resolved
doc/man1/ca.pod
Outdated
Show resolved
Hide resolved
apps/s_server.c
Outdated
Show resolved
Hide resolved
doc/man1/s_server.pod
Outdated
Show resolved
Hide resolved
apps/apps.c
Outdated
Show resolved
Hide resolved
apps/ca.c
Outdated
Show resolved
Hide resolved
…o_pkcs12() see also openssl#4930 improved OpenSSL 1.0.2 compatibility of cmp.c
|
I had these lying around... can't even remember when I wrote them. |
apps/apps.c
Outdated
Show resolved
Hide resolved
apps/apps.c
Outdated
Show resolved
Hide resolved
Thanks for these comments. I've just handled them. |
|
The two CI failures currently reported here are unrelated. Ready for further reviewing. |
|
Ping @levitte |
apps/ca.c
Outdated
Show resolved
Hide resolved
apps/lib/apps.c
Outdated
Show resolved
Hide resolved
apps/lib/apps.c
Outdated
Show resolved
Hide resolved
|
Thanks @FdaSilvaYY for having a look. |
…s in input files Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from openssl#4930)
…decode_PKCS12() Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from openssl#4930)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from openssl#4930)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from openssl#4930)
Also do a minor extension on the documentation of the -passcerts option Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from openssl#4930)
UPDATE: Originally this PR was about extending support for PKCS#12 input in apps.
I've meanwhile carved out the most interesting pieces of that and contributed them separately.
This is the leftovers fixing several corner cases in PKCS#12 input and its error handling.
There are also some rather unrelated fixes to several apps and their documentation, which I could separate if requested.
Checklist