|
Packit |
40b132 |
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
Packit |
40b132 |
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
Packit |
40b132 |
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
This directory contains both sample applications and performance evaluation
|
|
Packit |
40b132 |
applications.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
SAMPLE APPLICATIONS
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
Currently, there are two performance applications: libpkix_buildThreads and
|
|
Packit |
40b132 |
nss_threads. And three sample applications: dumpcert, dumpcrl and
|
|
Packit |
40b132 |
validateChain..
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
============================================================================
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
USAGE: dumpcert <certFile>
|
|
Packit |
40b132 |
Parses a certificate located at <certFile> and displays it.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
Source: <root>/tests/sample_apps/dumpcert.c
|
|
Packit |
40b132 |
Binary: <root>/bin/sample_apps/dumpcert
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
============================================================================
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
USAGE: dumpcrl <crlFile>
|
|
Packit |
40b132 |
Parses a CRL located at <crlFile> and displays it.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
Source: <root>/tests/sample_apps/dumpcrl.c
|
|
Packit |
40b132 |
Binary: <root>/bin/sample_apps/dumpcrl
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
============================================================================
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
USAGE: validateChain <trustedCert> <cert_1> <cert_2> ... <cert_n>
|
|
Packit |
40b132 |
Validates a chain of n certificates using the given trust anchor.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
Source: <root>/tests/sample_apps/validateChain.c
|
|
Packit |
40b132 |
Binary: <root>/bin/sample_apps/validateChain
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
============================================================================
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
PERFORMANCE EVALUATION APPLICATIONS
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
============================================================================
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
USAGE: libpkix_buildthreads <duration> <threads> <eecertNickname>
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
Sets up and runs a PKIX_BuildChain call for the number of seconds
|
|
Packit |
40b132 |
specified by <duration> using the number of threads specified by
|
|
Packit |
40b132 |
<threads>. This application assumes that the NSS certutil application
|
|
Packit |
40b132 |
has already been run to create the NSS databases and that the
|
|
Packit |
40b132 |
various nicknames on the command line have been associated with
|
|
Packit |
40b132 |
certificates in the NSS databases. The NSS databases MUST reside
|
|
Packit |
40b132 |
in the directory where this file is located and MUST be named
|
|
Packit |
40b132 |
"cert8.db", "key3.db", and "secmod.db". There must exist a nickname
|
|
Packit |
40b132 |
in the databases which has been marked as trusted.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
Source: <root>/perf/libpkix_buildthreads/libpkix_buildthreads.c
|
|
Packit |
40b132 |
Binary: <root>/perf/libpkix_buildthreads/*.OBJ/libpkix_buildthreads
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
============================================================================
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
USAGE: nssThreads <duration> <threads> <eecertNickname>
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
Sets up and runs a CERT_VerifyCertificate call for the number of
|
|
Packit |
40b132 |
seconds specified by <duration> using the number of threads specified
|
|
Packit |
40b132 |
by <threads>. This application assumes that the NSS certutil
|
|
Packit |
40b132 |
application has already been run to create the NSS databases and that
|
|
Packit |
40b132 |
the various nicknames on the command line have been associated with
|
|
Packit |
40b132 |
certificates in the NSS databases. The NSS databases MUST reside
|
|
Packit |
40b132 |
in the directory where this file is located and MUST be named
|
|
Packit |
40b132 |
"cert8.db", "key3.db", and "secmod.db". There must exist a nickname in
|
|
Packit |
40b132 |
the databases which has been marked as trusted.
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
Source: <root>/perf/nss_threads/nss_threads.c
|
|
Packit |
40b132 |
Binary: <root>/perf/nss_threads/*.OBJ/nss_threads
|
|
Packit |
40b132 |
|
|
Packit |
40b132 |
============================================================================
|
|
Packit |
40b132 |
|