|
|
fd2893 |
diff -up openssl-1.0.2i/apps/cms.c.trusted-first openssl-1.0.2i/apps/cms.c
|
|
|
fd2893 |
--- openssl-1.0.2i/apps/cms.c.trusted-first 2016-09-22 12:23:06.000000000 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/apps/cms.c 2016-09-22 14:01:27.436630359 +0200
|
|
|
fd2893 |
@@ -646,6 +646,8 @@ int MAIN(int argc, char **argv)
|
|
|
fd2893 |
"-CApath dir trusted certificates directory\n");
|
|
|
fd2893 |
BIO_printf(bio_err, "-CAfile file trusted certificates file\n");
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
+ "-trusted_first use trusted certificates first when building the trust chain\n");
|
|
|
fd2893 |
+ BIO_printf(bio_err,
|
|
|
fd2893 |
"-no_alt_chains only ever use the first certificate chain found\n");
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
"-crl_check check revocation status of signer's certificate using CRLs\n");
|
|
|
fd2893 |
diff -up openssl-1.0.2i/apps/ocsp.c.trusted-first openssl-1.0.2i/apps/ocsp.c
|
|
|
fd2893 |
--- openssl-1.0.2i/apps/ocsp.c.trusted-first 2016-09-22 12:23:06.000000000 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/apps/ocsp.c 2016-09-22 14:01:27.436630359 +0200
|
|
|
fd2893 |
@@ -537,6 +537,8 @@ int MAIN(int argc, char **argv)
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
"-CAfile file trusted certificates file\n");
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
+ "-trusted_first use trusted certificates first when building the trust chain\n");
|
|
|
fd2893 |
+ BIO_printf(bio_err,
|
|
|
fd2893 |
"-no_alt_chains only ever use the first certificate chain found\n");
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
"-VAfile file validator certificates file\n");
|
|
|
fd2893 |
diff -up openssl-1.0.2i/apps/s_client.c.trusted-first openssl-1.0.2i/apps/s_client.c
|
|
|
fd2893 |
--- openssl-1.0.2i/apps/s_client.c.trusted-first 2016-09-22 14:01:27.402629569 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/apps/s_client.c 2016-09-22 14:01:27.436630359 +0200
|
|
|
fd2893 |
@@ -330,6 +330,8 @@ static void sc_usage(void)
|
|
|
fd2893 |
BIO_printf(bio_err, " -CApath arg - PEM format directory of CA's\n");
|
|
|
fd2893 |
BIO_printf(bio_err, " -CAfile arg - PEM format file of CA's\n");
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
+ " -trusted_first - Use trusted CA's first when building the trust chain\n");
|
|
|
fd2893 |
+ BIO_printf(bio_err,
|
|
|
fd2893 |
" -no_alt_chains - only ever use the first certificate chain found\n");
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
" -reconnect - Drop and re-make the connection with the same Session-ID\n");
|
|
|
fd2893 |
diff -up openssl-1.0.2i/apps/smime.c.trusted-first openssl-1.0.2i/apps/smime.c
|
|
|
fd2893 |
--- openssl-1.0.2i/apps/smime.c.trusted-first 2016-09-22 12:23:06.000000000 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/apps/smime.c 2016-09-22 14:01:27.436630359 +0200
|
|
|
fd2893 |
@@ -442,6 +442,8 @@ int MAIN(int argc, char **argv)
|
|
|
fd2893 |
"-CApath dir trusted certificates directory\n");
|
|
|
fd2893 |
BIO_printf(bio_err, "-CAfile file trusted certificates file\n");
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
+ "-trusted_first use trusted certificates first when building the trust chain\n");
|
|
|
fd2893 |
+ BIO_printf(bio_err,
|
|
|
fd2893 |
"-no_alt_chains only ever use the first certificate chain found\n");
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
"-crl_check check revocation status of signer's certificate using CRLs\n");
|
|
|
fd2893 |
diff -up openssl-1.0.2i/apps/s_server.c.trusted-first openssl-1.0.2i/apps/s_server.c
|
|
|
fd2893 |
--- openssl-1.0.2i/apps/s_server.c.trusted-first 2016-09-22 14:01:27.374628918 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/apps/s_server.c 2016-09-22 14:01:27.437630382 +0200
|
|
|
fd2893 |
@@ -571,6 +571,8 @@ static void sv_usage(void)
|
|
|
fd2893 |
BIO_printf(bio_err, " -CApath arg - PEM format directory of CA's\n");
|
|
|
fd2893 |
BIO_printf(bio_err, " -CAfile arg - PEM format file of CA's\n");
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
+ " -trusted_first - Use trusted CA's first when building the trust chain\n");
|
|
|
fd2893 |
+ BIO_printf(bio_err,
|
|
|
fd2893 |
" -no_alt_chains - only ever use the first certificate chain found\n");
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
" -nocert - Don't use any certificates (Anon-DH)\n");
|
|
|
fd2893 |
diff -up openssl-1.0.2i/apps/s_time.c.trusted-first openssl-1.0.2i/apps/s_time.c
|
|
|
fd2893 |
--- openssl-1.0.2i/apps/s_time.c.trusted-first 2016-09-22 14:01:27.368628779 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/apps/s_time.c 2016-09-22 14:01:27.437630382 +0200
|
|
|
fd2893 |
@@ -182,6 +182,7 @@ static void s_time_usage(void)
|
|
|
fd2893 |
file if not specified by this option\n\
|
|
|
fd2893 |
-CApath arg - PEM format directory of CA's\n\
|
|
|
fd2893 |
-CAfile arg - PEM format file of CA's\n\
|
|
|
fd2893 |
+-trusted_first - Use trusted CA's first when building the trust chain\n\
|
|
|
fd2893 |
-cipher - preferred cipher to use, play with 'openssl ciphers'\n\n";
|
|
|
fd2893 |
|
|
|
fd2893 |
printf("usage: s_time <args>\n\n");
|
|
|
fd2893 |
diff -up openssl-1.0.2i/apps/ts.c.trusted-first openssl-1.0.2i/apps/ts.c
|
|
|
fd2893 |
--- openssl-1.0.2i/apps/ts.c.trusted-first 2016-09-22 14:01:27.400629522 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/apps/ts.c 2016-09-22 14:01:27.437630382 +0200
|
|
|
fd2893 |
@@ -352,7 +352,7 @@ int MAIN(int argc, char **argv)
|
|
|
fd2893 |
"ts -verify [-data file_to_hash] [-digest digest_bytes] "
|
|
|
fd2893 |
"[-queryfile request.tsq] "
|
|
|
fd2893 |
"-in response.tsr [-token_in] "
|
|
|
fd2893 |
- "-CApath ca_path -CAfile ca_file.pem "
|
|
|
fd2893 |
+ "-CApath ca_path -CAfile ca_file.pem -trusted_first"
|
|
|
fd2893 |
"-untrusted cert_file.pem\n");
|
|
|
fd2893 |
cleanup:
|
|
|
fd2893 |
/* Clean up. */
|
|
|
fd2893 |
diff -up openssl-1.0.2i/apps/verify.c.trusted-first openssl-1.0.2i/apps/verify.c
|
|
|
fd2893 |
--- openssl-1.0.2i/apps/verify.c.trusted-first 2016-09-22 14:01:27.438630405 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/apps/verify.c 2016-09-22 14:02:37.951269140 +0200
|
|
|
fd2893 |
@@ -231,7 +231,7 @@ int MAIN(int argc, char **argv)
|
|
|
fd2893 |
usage:
|
|
|
fd2893 |
if (ret == 1) {
|
|
|
fd2893 |
BIO_printf(bio_err,
|
|
|
fd2893 |
- "usage: verify [-verbose] [-CApath path] [-CAfile file] [-purpose purpose] [-crl_check]");
|
|
|
fd2893 |
+ "usage: verify [-verbose] [-CApath path] [-CAfile file] [-trusted_first] [-purpose purpose] [-crl_check]");
|
|
|
fd2893 |
BIO_printf(bio_err, " [-no_alt_chains] [-attime timestamp]");
|
|
|
fd2893 |
#ifndef OPENSSL_NO_ENGINE
|
|
|
fd2893 |
BIO_printf(bio_err, " [-engine e]");
|
|
|
fd2893 |
diff -up openssl-1.0.2i/doc/apps/cms.pod.trusted-first openssl-1.0.2i/doc/apps/cms.pod
|
|
|
fd2893 |
--- openssl-1.0.2i/doc/apps/cms.pod.trusted-first 2016-09-22 12:23:06.000000000 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/doc/apps/cms.pod 2016-09-22 14:01:27.438630405 +0200
|
|
|
fd2893 |
@@ -35,6 +35,7 @@ B<openssl> B<cms>
|
|
|
fd2893 |
[B<-print>]
|
|
|
fd2893 |
[B<-CAfile file>]
|
|
|
fd2893 |
[B<-CApath dir>]
|
|
|
fd2893 |
+[B<-trusted_first>]
|
|
|
fd2893 |
[B<-no_alt_chains>]
|
|
|
fd2893 |
[B<-md digest>]
|
|
|
fd2893 |
[B<-[cipher]>]
|
|
|
fd2893 |
@@ -248,6 +249,12 @@ B<-verify>. This directory must be a sta
|
|
|
fd2893 |
is a hash of each subject name (using B<x509 -hash>) should be linked
|
|
|
fd2893 |
to each certificate.
|
|
|
fd2893 |
|
|
|
fd2893 |
+=item B<-trusted_first>
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+Use certificates in CA file or CA directory before untrusted certificates
|
|
|
fd2893 |
+from the message when building the trust chain to verify certificates.
|
|
|
fd2893 |
+This is mainly useful in environments with Bridge CA or Cross-Certified CAs.
|
|
|
fd2893 |
+
|
|
|
fd2893 |
=item B<-md digest>
|
|
|
fd2893 |
|
|
|
fd2893 |
digest algorithm to use when signing or resigning. If not present then the
|
|
|
fd2893 |
diff -up openssl-1.0.2i/doc/apps/ocsp.pod.trusted-first openssl-1.0.2i/doc/apps/ocsp.pod
|
|
|
fd2893 |
--- openssl-1.0.2i/doc/apps/ocsp.pod.trusted-first 2016-09-22 14:01:27.401629545 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/doc/apps/ocsp.pod 2016-09-22 14:01:27.438630405 +0200
|
|
|
fd2893 |
@@ -29,6 +29,7 @@ B<openssl> B<ocsp>
|
|
|
fd2893 |
[B<-path>]
|
|
|
fd2893 |
[B<-CApath dir>]
|
|
|
fd2893 |
[B<-CAfile file>]
|
|
|
fd2893 |
+[B<-trusted_first>]
|
|
|
fd2893 |
[B<-no_alt_chains>]
|
|
|
fd2893 |
[B<-VAfile file>]
|
|
|
fd2893 |
[B<-validity_period n>]
|
|
|
fd2893 |
@@ -144,6 +145,13 @@ connection timeout to the OCSP responder
|
|
|
fd2893 |
file or pathname containing trusted CA certificates. These are used to verify
|
|
|
fd2893 |
the signature on the OCSP response.
|
|
|
fd2893 |
|
|
|
fd2893 |
+=item B<-trusted_first>
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+Use certificates in CA file or CA directory over certificates provided
|
|
|
fd2893 |
+in the response or residing in other certificates file when building the trust
|
|
|
fd2893 |
+chain to verify responder certificate.
|
|
|
fd2893 |
+This is mainly useful in environments with Bridge CA or Cross-Certified CAs.
|
|
|
fd2893 |
+
|
|
|
fd2893 |
=item B<-no_alt_chains>
|
|
|
fd2893 |
|
|
|
fd2893 |
See L<B<verify>|verify(1)> manual page for details.
|
|
|
fd2893 |
diff -up openssl-1.0.2i/doc/apps/s_client.pod.trusted-first openssl-1.0.2i/doc/apps/s_client.pod
|
|
|
fd2893 |
--- openssl-1.0.2i/doc/apps/s_client.pod.trusted-first 2016-09-22 14:01:27.412629801 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/doc/apps/s_client.pod 2016-09-22 14:01:27.438630405 +0200
|
|
|
fd2893 |
@@ -19,6 +19,7 @@ B<openssl> B<s_client>
|
|
|
fd2893 |
[B<-pass arg>]
|
|
|
fd2893 |
[B<-CApath directory>]
|
|
|
fd2893 |
[B<-CAfile filename>]
|
|
|
fd2893 |
+[B<-trusted_first>]
|
|
|
fd2893 |
[B<-no_alt_chains>]
|
|
|
fd2893 |
[B<-reconnect>]
|
|
|
fd2893 |
[B<-pause>]
|
|
|
fd2893 |
@@ -125,7 +126,7 @@ also used when building the client certi
|
|
|
fd2893 |
A file containing trusted certificates to use during server authentication
|
|
|
fd2893 |
and to use when attempting to build the client certificate chain.
|
|
|
fd2893 |
|
|
|
fd2893 |
-=item B<-purpose, -ignore_critical, -issuer_checks, -crl_check, -crl_check_all, -policy_check, -extended_crl, -x509_strict, -policy -check_ss_sig -no_alt_chains>
|
|
|
fd2893 |
+=item B<-purpose, -ignore_critical, -issuer_checks, -crl_check, -crl_check_all, -policy_check, -extended_crl, -x509_strict, -policy -check_ss_sig, -trusted_first -no_alt_chains>
|
|
|
fd2893 |
|
|
|
fd2893 |
Set various certificate chain valiadition option. See the
|
|
|
fd2893 |
L<B<verify>|verify(1)> manual page for details.
|
|
|
fd2893 |
diff -up openssl-1.0.2i/doc/apps/smime.pod.trusted-first openssl-1.0.2i/doc/apps/smime.pod
|
|
|
fd2893 |
--- openssl-1.0.2i/doc/apps/smime.pod.trusted-first 2016-09-22 12:23:06.000000000 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/doc/apps/smime.pod 2016-09-22 14:01:27.438630405 +0200
|
|
|
fd2893 |
@@ -15,6 +15,9 @@ B<openssl> B<smime>
|
|
|
fd2893 |
[B<-pk7out>]
|
|
|
fd2893 |
[B<-[cipher]>]
|
|
|
fd2893 |
[B<-in file>]
|
|
|
fd2893 |
+[B<-CAfile file>]
|
|
|
fd2893 |
+[B<-CApath dir>]
|
|
|
fd2893 |
+[B<-trusted_first>]
|
|
|
fd2893 |
[B<-no_alt_chains>]
|
|
|
fd2893 |
[B<-certfile file>]
|
|
|
fd2893 |
[B<-signer file>]
|
|
|
fd2893 |
@@ -150,6 +153,12 @@ B<-verify>. This directory must be a sta
|
|
|
fd2893 |
is a hash of each subject name (using B<x509 -hash>) should be linked
|
|
|
fd2893 |
to each certificate.
|
|
|
fd2893 |
|
|
|
fd2893 |
+=item B<-trusted_first>
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+Use certificates in CA file or CA directory over certificates provided
|
|
|
fd2893 |
+in the message when building the trust chain to verify a certificate.
|
|
|
fd2893 |
+This is mainly useful in environments with Bridge CA or Cross-Certified CAs.
|
|
|
fd2893 |
+
|
|
|
fd2893 |
=item B<-md digest>
|
|
|
fd2893 |
|
|
|
fd2893 |
digest algorithm to use when signing or resigning. If not present then the
|
|
|
fd2893 |
diff -up openssl-1.0.2i/doc/apps/s_server.pod.trusted-first openssl-1.0.2i/doc/apps/s_server.pod
|
|
|
fd2893 |
--- openssl-1.0.2i/doc/apps/s_server.pod.trusted-first 2016-09-22 14:01:27.412629801 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/doc/apps/s_server.pod 2016-09-22 14:01:27.438630405 +0200
|
|
|
fd2893 |
@@ -33,6 +33,7 @@ B<openssl> B<s_server>
|
|
|
fd2893 |
[B<-state>]
|
|
|
fd2893 |
[B<-CApath directory>]
|
|
|
fd2893 |
[B<-CAfile filename>]
|
|
|
fd2893 |
+[B<-trusted_first>]
|
|
|
fd2893 |
[B<-no_alt_chains>]
|
|
|
fd2893 |
[B<-nocert>]
|
|
|
fd2893 |
[B<-cipher cipherlist>]
|
|
|
fd2893 |
@@ -178,6 +179,12 @@ and to use when attempting to build the
|
|
|
fd2893 |
is also used in the list of acceptable client CAs passed to the client when
|
|
|
fd2893 |
a certificate is requested.
|
|
|
fd2893 |
|
|
|
fd2893 |
+=item B<-trusted_first>
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+Use certificates in CA file or CA directory before other certificates
|
|
|
fd2893 |
+when building the trust chain to verify client certificates.
|
|
|
fd2893 |
+This is mainly useful in environments with Bridge CA or Cross-Certified CAs.
|
|
|
fd2893 |
+
|
|
|
fd2893 |
=item B<-no_alt_chains>
|
|
|
fd2893 |
|
|
|
fd2893 |
See the L<B<verify>|verify(1)> manual page for details.
|
|
|
fd2893 |
diff -up openssl-1.0.2i/doc/apps/s_time.pod.trusted-first openssl-1.0.2i/doc/apps/s_time.pod
|
|
|
fd2893 |
--- openssl-1.0.2i/doc/apps/s_time.pod.trusted-first 2016-09-22 12:23:06.000000000 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/doc/apps/s_time.pod 2016-09-22 14:01:27.439630429 +0200
|
|
|
fd2893 |
@@ -14,6 +14,7 @@ B<openssl> B<s_time>
|
|
|
fd2893 |
[B<-key filename>]
|
|
|
fd2893 |
[B<-CApath directory>]
|
|
|
fd2893 |
[B<-CAfile filename>]
|
|
|
fd2893 |
+[B<-trusted_first>]
|
|
|
fd2893 |
[B<-reuse>]
|
|
|
fd2893 |
[B<-new>]
|
|
|
fd2893 |
[B<-verify depth>]
|
|
|
fd2893 |
@@ -76,6 +77,12 @@ also used when building the client certi
|
|
|
fd2893 |
A file containing trusted certificates to use during server authentication
|
|
|
fd2893 |
and to use when attempting to build the client certificate chain.
|
|
|
fd2893 |
|
|
|
fd2893 |
+=item B<-trusted_first>
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+Use certificates in CA file or CA directory over the certificates provided
|
|
|
fd2893 |
+by the server when building the trust chain to verify server certificate.
|
|
|
fd2893 |
+This is mainly useful in environments with Bridge CA or Cross-Certified CAs.
|
|
|
fd2893 |
+
|
|
|
fd2893 |
=item B<-new>
|
|
|
fd2893 |
|
|
|
fd2893 |
performs the timing test using a new session ID for each connection.
|
|
|
fd2893 |
diff -up openssl-1.0.2i/doc/apps/ts.pod.trusted-first openssl-1.0.2i/doc/apps/ts.pod
|
|
|
fd2893 |
--- openssl-1.0.2i/doc/apps/ts.pod.trusted-first 2016-09-22 12:23:06.000000000 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/doc/apps/ts.pod 2016-09-22 14:01:27.439630429 +0200
|
|
|
fd2893 |
@@ -46,6 +46,7 @@ B<-verify>
|
|
|
fd2893 |
[B<-token_in>]
|
|
|
fd2893 |
[B<-CApath> trusted_cert_path]
|
|
|
fd2893 |
[B<-CAfile> trusted_certs.pem]
|
|
|
fd2893 |
+[B<-trusted_first>]
|
|
|
fd2893 |
[B<-untrusted> cert_file.pem]
|
|
|
fd2893 |
|
|
|
fd2893 |
=head1 DESCRIPTION
|
|
|
fd2893 |
@@ -324,6 +325,12 @@ L<verify(1)|verify(1)> for additional de
|
|
|
fd2893 |
or B<-CApath> must be specified.
|
|
|
fd2893 |
(Optional)
|
|
|
fd2893 |
|
|
|
fd2893 |
+=item B<-trusted_first>
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+Use certificates in CA file or CA directory before other certificates
|
|
|
fd2893 |
+when building the trust chain to verify certificates.
|
|
|
fd2893 |
+This is mainly useful in environments with Bridge CA or Cross-Certified CAs.
|
|
|
fd2893 |
+
|
|
|
fd2893 |
=item B<-untrusted> cert_file.pem
|
|
|
fd2893 |
|
|
|
fd2893 |
Set of additional untrusted certificates in PEM format which may be
|
|
|
fd2893 |
diff -up openssl-1.0.2i/doc/apps/verify.pod.trusted-first openssl-1.0.2i/doc/apps/verify.pod
|
|
|
fd2893 |
--- openssl-1.0.2i/doc/apps/verify.pod.trusted-first 2016-09-22 12:23:06.000000000 +0200
|
|
|
fd2893 |
+++ openssl-1.0.2i/doc/apps/verify.pod 2016-09-22 14:01:27.439630429 +0200
|
|
|
fd2893 |
@@ -9,6 +9,7 @@ verify - Utility to verify certificates.
|
|
|
fd2893 |
B<openssl> B<verify>
|
|
|
fd2893 |
[B<-CApath directory>]
|
|
|
fd2893 |
[B<-CAfile file>]
|
|
|
fd2893 |
+[B<-trusted_first>]
|
|
|
fd2893 |
[B<-purpose purpose>]
|
|
|
fd2893 |
[B<-policy arg>]
|
|
|
fd2893 |
[B<-ignore_critical>]
|
|
|
fd2893 |
@@ -86,6 +87,12 @@ If a valid CRL cannot be found an error
|
|
|
fd2893 |
A file of untrusted certificates. The file should contain multiple certificates
|
|
|
fd2893 |
in PEM format concatenated together.
|
|
|
fd2893 |
|
|
|
fd2893 |
+=item B<-trusted_first>
|
|
|
fd2893 |
+
|
|
|
fd2893 |
+Use certificates in CA file or CA directory before the certificates in the untrusted
|
|
|
fd2893 |
+file when building the trust chain to verify certificates.
|
|
|
fd2893 |
+This is mainly useful in environments with Bridge CA or Cross-Certified CAs.
|
|
|
fd2893 |
+
|
|
|
fd2893 |
=item B<-purpose purpose>
|
|
|
fd2893 |
|
|
|
fd2893 |
The intended use for the certificate. If this option is not specified,
|