63b440
################################################################################
63b440
Name:             pki-core
63b440
################################################################################
63b440
2e2c9c
%global           product_name IDM PKI
2e2c9c
%global           product_id idm-pki
2e2c9c
%undefine         theme
63b440
2e2c9c
# Upstream version number:
2e2c9c
%global           major_version 11
4fb948
%global           minor_version 3
4fb948
%global           update_version 0
63b440
2e2c9c
# Downstream release number:
2e2c9c
# - development/stabilization (unsupported): 0.<n> where n >= 1
2e2c9c
# - GA/update (supported): <n> where n >= 1
2e2c9c
%global           release_number 1
2e2c9c
2e2c9c
# Development phase:
2e2c9c
# - development (unsupported): alpha<n> where n >= 1
2e2c9c
# - stabilization (unsupported): beta<n> where n >= 1
2e2c9c
# - GA/update (supported): <none>
4fb948
#global           phase
2e2c9c
2e2c9c
%undefine         timestamp
2e2c9c
%undefine         commit_id
2e2c9c
2e2c9c
Summary:          %{product_name} Package
63b440
URL:              https://www.dogtagpki.org
63b440
# The entire source code is GPLv2 except for 'pki-tps' which is LGPLv2
63b440
License:          GPLv2 and LGPLv2
2e2c9c
Version:          %{major_version}.%{minor_version}.%{update_version}
2e2c9c
Release:          %{release_number}%{?phase:.}%{?phase}%{?timestamp:.}%{?timestamp}%{?commit_id:.}%{?commit_id}%{?dist}
63b440
63b440
# To create a tarball from a version tag:
63b440
# $ git archive \
63b440
#     --format=tar.gz \
63b440
#     --prefix pki-<version>/ \
63b440
#     -o pki-<version>.tar.gz \
63b440
#     <version tag>
2e2c9c
Source: https://github.com/dogtagpki/pki/archive/v%{version}%{?phase:-}%{?phase}/pki-%{version}%{?phase:-}%{?phase}.tar.gz
63b440
63b440
# To create a patch for all changes since a version tag:
63b440
# $ git format-patch \
63b440
#     --stdout \
63b440
#     <version tag> \
63b440
#     > pki-VERSION-RELEASE.patch
63b440
# Patch: pki-VERSION-RELEASE.patch
63b440
4fb948
%if 0%{?fedora} && 0%{?fedora} > 35
4fb948
ExclusiveArch: %{java_arches}
4fb948
%else
63b440
ExcludeArch: i686
4fb948
%endif
63b440
63b440
################################################################################
4fb948
# PKCS #11 Kit Trust
63b440
################################################################################
63b440
4fb948
%global p11_kit_trust /usr/lib64/pkcs11/p11-kit-trust.so
63b440
63b440
################################################################################
63b440
# Python
63b440
################################################################################
63b440
63b440
%global python_executable /usr/bin/python3
63b440
63b440
################################################################################
63b440
# Java
63b440
################################################################################
63b440
4fb948
%global java_devel java-17-openjdk-devel
4fb948
%global java_headless java-17-openjdk-headless
4fb948
%global java_home %{_jvmdir}/jre-17-openjdk
4fb948
4fb948
################################################################################
4fb948
# Application Server
4fb948
################################################################################
4fb948
4fb948
%global app_server tomcat-9.0
63b440
63b440
################################################################################
63b440
# PKI
63b440
################################################################################
63b440
63b440
# Execute unit tests unless --without test is specified.
63b440
%bcond_without test
63b440
4fb948
# Build the package unless --without <package> is specified.
63b440
4fb948
%bcond_without base
4fb948
%bcond_without server
4fb948
%bcond_without acme
4fb948
%bcond_without ca
4fb948
%bcond_without est
4fb948
%bcond_without kra
63b440
4fb948
# Do not build the following packages for pki-core.
63b440
4fb948
%bcond_with console
4fb948
%bcond_with ocsp
4fb948
%bcond_with tks
4fb948
%bcond_with tps
4fb948
%bcond_with javadoc
4fb948
%bcond_with theme
4fb948
%bcond_with meta
4fb948
%bcond_with tests
4fb948
%bcond_with debug
63b440
63b440
%if ! %{with debug}
63b440
%define debug_package %{nil}
63b440
%endif
63b440
63b440
# ignore unpackaged files from native 'tpsclient'
63b440
# REMINDER:  Remove this '%%define' once 'tpsclient' is rewritten as a Java app
63b440
%define _unpackaged_files_terminate_build 0
63b440
63b440
# The PKI UID and GID are preallocated, see:
63b440
# https://bugzilla.redhat.com/show_bug.cgi?id=476316
63b440
# https://bugzilla.redhat.com/show_bug.cgi?id=476782
63b440
# https://pagure.io/setup/blob/master/f/uidgid
63b440
# /usr/share/doc/setup/uidgid
63b440
%define pki_username pkiuser
63b440
%define pki_uid 17
63b440
%define pki_groupname pkiuser
63b440
%define pki_gid 17
63b440
%define pki_homedir /usr/share/pki
63b440
63b440
%global saveFileContext() \
63b440
if [ -s /etc/selinux/config ]; then \
63b440
     . %{_sysconfdir}/selinux/config; \
63b440
     FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
63b440
     if [ "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT} ]; then \
63b440
          cp -f ${FILE_CONTEXT} ${FILE_CONTEXT}.%{name}; \
63b440
     fi \
63b440
fi;
63b440
63b440
%global relabel() \
63b440
. %{_sysconfdir}/selinux/config; \
63b440
FILE_CONTEXT=%{_sysconfdir}/selinux/%1/contexts/files/file_contexts; \
63b440
selinuxenabled; \
63b440
if [ $? == 0  -a "${SELINUXTYPE}" == %1 -a -f ${FILE_CONTEXT}.%{name} ]; then \
63b440
     fixfiles -C ${FILE_CONTEXT}.%{name} restore; \
63b440
     rm -f ${FILE_CONTEXT}.%name; \
63b440
fi;
63b440
63b440
################################################################################
63b440
# Build Dependencies
63b440
################################################################################
63b440
63b440
BuildRequires:    make
63b440
BuildRequires:    cmake >= 3.0.2
63b440
BuildRequires:    gcc-c++
63b440
BuildRequires:    zip
63b440
BuildRequires:    %{java_devel}
63b440
BuildRequires:    javapackages-tools
4fb948
63b440
BuildRequires:    apache-commons-cli
63b440
BuildRequires:    apache-commons-codec
63b440
BuildRequires:    apache-commons-io
63b440
BuildRequires:    apache-commons-lang3 >= 3.2
63b440
BuildRequires:    apache-commons-logging
63b440
BuildRequires:    apache-commons-net
63b440
BuildRequires:    slf4j
63b440
BuildRequires:    slf4j-jdk14
63b440
BuildRequires:    nspr-devel
63b440
BuildRequires:    nss-devel >= 3.36.1
63b440
63b440
BuildRequires:    openldap-devel
63b440
BuildRequires:    pkgconfig
63b440
BuildRequires:    policycoreutils
63b440
63b440
BuildRequires:    python3-lxml
63b440
BuildRequires:    python3-sphinx
63b440
63b440
BuildRequires:    resteasy >= 3.0.26
63b440
2e2c9c
BuildRequires:    python3 >= 3.9
63b440
BuildRequires:    python3-devel
63b440
BuildRequires:    python3-setuptools
63b440
BuildRequires:    python3-cryptography
63b440
BuildRequires:    python3-lxml
63b440
BuildRequires:    python3-ldap
63b440
BuildRequires:    python3-libselinux
63b440
BuildRequires:    python3-requests >= 2.6.0
63b440
BuildRequires:    python3-six
63b440
63b440
BuildRequires:    junit
63b440
BuildRequires:    jpackage-utils >= 0:1.7.5-10
4fb948
BuildRequires:    jss = 5.3
4fb948
BuildRequires:    tomcatjss = 8.3
4fb948
BuildRequires:    ldapjdk = 5.3
63b440
63b440
BuildRequires:    systemd-units
63b440
63b440
%if 0%{?rhel} && ! 0%{?eln}
2e2c9c
BuildRequires:    pki-servlet-engine >= 9.0.31
63b440
%else
2e2c9c
BuildRequires:    tomcat >= 1:9.0.31
63b440
%endif
63b440
63b440
# additional build requirements needed to build native 'tpsclient'
63b440
# REMINDER:  Revisit these once 'tpsclient' is rewritten as a Java app
63b440
BuildRequires:    apr-devel
63b440
BuildRequires:    apr-util-devel
63b440
BuildRequires:    cyrus-sasl-devel
63b440
BuildRequires:    httpd-devel >= 2.4.2
63b440
BuildRequires:    systemd
63b440
BuildRequires:    zlib
63b440
BuildRequires:    zlib-devel
63b440
63b440
# build dependency to build man pages
63b440
BuildRequires:    golang-github-cpuguy83-md2man
63b440
63b440
# pki-healthcheck depends on the following library
63b440
%if 0%{?rhel}
63b440
BuildRequires:    ipa-healthcheck-core
63b440
%else
63b440
BuildRequires:    freeipa-healthcheck-core
63b440
%endif
63b440
63b440
# PKICertImport depends on certutil and openssl
63b440
BuildRequires:    nss-tools
63b440
BuildRequires:    openssl
63b440
63b440
# description for top-level package (if there is a separate meta package)
63b440
%if "%{name}" != "%{product_id}"
63b440
%description
63b440
63b440
%{product_name} is an enterprise software system designed
63b440
to manage enterprise Public Key Infrastructure deployments.
63b440
63b440
%{product_name} consists of the following components:
63b440
63b440
  * Automatic Certificate Management Environment (ACME) Responder
63b440
  * Certificate Authority (CA)
63b440
  * Key Recovery Authority (KRA)
63b440
  * Online Certificate Status Protocol (OCSP) Manager
63b440
  * Token Key Service (TKS)
63b440
  * Token Processing Service (TPS)
63b440
63b440
%endif
63b440
63b440
%if %{with meta}
63b440
%if "%{name}" != "%{product_id}"
63b440
################################################################################
63b440
%package -n       %{product_id}
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Package
63b440
%endif
63b440
2e2c9c
Obsoletes:        pki-symkey < %{version}
4fb948
Obsoletes:        %{product_id}-symkey < %{version}
63b440
Obsoletes:        pki-console < %{version}
63b440
Obsoletes:        pki-console-theme < %{version}
63b440
Obsoletes:        idm-console-framework < 2.0
63b440
63b440
# Make certain that this 'meta' package requires the latest version(s)
63b440
# of ALL PKI theme packages
2e2c9c
Requires:         %{product_id}-theme = %{version}-%{release}
63b440
63b440
# Make certain that this 'meta' package requires the latest version(s)
63b440
# of ALL PKI core packages
63b440
Requires:         %{product_id}-acme = %{version}-%{release}
63b440
Requires:         %{product_id}-ca = %{version}-%{release}
4fb948
Requires:         %{product_id}-est = %{version}-%{release}
63b440
Requires:         %{product_id}-kra = %{version}-%{release}
63b440
Requires:         %{product_id}-ocsp = %{version}-%{release}
63b440
Requires:         %{product_id}-tks = %{version}-%{release}
63b440
Requires:         %{product_id}-tps = %{version}-%{release}
63b440
63b440
Requires:         %{product_id}-javadoc = %{version}-%{release}
63b440
63b440
# Make certain that this 'meta' package requires the latest version(s)
63b440
# of ALL PKI clients -- except for s390/s390x where 'esc' is not built
63b440
%ifnarch s390 s390x
63b440
Requires:         esc >= 1.1.1
63b440
%endif
63b440
63b440
# description for top-level package (unless there is a separate meta package)
63b440
%if "%{name}" == "%{product_id}"
63b440
%description
63b440
%else
63b440
%description -n   %{product_id}
63b440
%endif
63b440
63b440
%{product_name} is an enterprise software system designed
63b440
to manage enterprise Public Key Infrastructure deployments.
63b440
63b440
%{product_name} consists of the following components:
63b440
63b440
  * Automatic Certificate Management Environment (ACME) Responder
63b440
  * Certificate Authority (CA)
63b440
  * Key Recovery Authority (KRA)
63b440
  * Online Certificate Status Protocol (OCSP) Manager
63b440
  * Token Key Service (TKS)
63b440
  * Token Processing Service (TPS)
63b440
63b440
# with meta
63b440
%endif
63b440
63b440
%if %{with base}
63b440
################################################################################
63b440
%package -n       %{product_id}-base
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Base Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-base < %{version}-%{release}
63b440
Provides:         pki-base = %{version}-%{release}
63b440
63b440
Requires:         nss >= 3.36.1
63b440
63b440
Requires:         python3-pki = %{version}-%{release}
63b440
Requires(post):   python3-pki = %{version}-%{release}
63b440
63b440
# Ensure we end up with a useful installation
63b440
Conflicts:        pki-javadoc < %{version}
63b440
Conflicts:        pki-server-theme < %{version}
2e2c9c
Conflicts:        %{product_id}-theme < %{version}
63b440
63b440
%description -n   %{product_id}-base
63b440
This package provides default configuration files for %{product_name} client.
63b440
63b440
################################################################################
63b440
%package -n       python3-%{product_id}
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Python 3 Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        python3-pki < %{version}-%{release}
63b440
Provides:         python3-pki = %{version}-%{release}
63b440
63b440
Obsoletes:        pki-base-python3 < %{version}-%{release}
63b440
Provides:         pki-base-python3 = %{version}-%{release}
63b440
63b440
%{?python_provide:%python_provide python3-pki}
63b440
63b440
Requires:         %{product_id}-base = %{version}-%{release}
2e2c9c
Requires:         python3 >= 3.9
63b440
Requires:         python3-cryptography
63b440
Requires:         python3-ldap
63b440
Requires:         python3-lxml
63b440
Requires:         python3-requests >= 2.6.0
63b440
Requires:         python3-six
63b440
63b440
%description -n   python3-%{product_id}
63b440
This package provides common and client library for Python 3.
63b440
63b440
################################################################################
2e2c9c
%package -n       %{product_id}-java
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Base Java Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-base-java < %{version}-%{release}
63b440
Provides:         pki-base-java = %{version}-%{release}
63b440
2e2c9c
Obsoletes:        %{product_id}-base-java < %{version}-%{release}
2e2c9c
Provides:         %{product_id}-base-java = %{version}-%{release}
2e2c9c
63b440
Requires:         %{java_headless}
63b440
Requires:         apache-commons-cli
63b440
Requires:         apache-commons-codec
63b440
Requires:         apache-commons-io
63b440
Requires:         apache-commons-lang3 >= 3.2
63b440
Requires:         apache-commons-logging
63b440
Requires:         apache-commons-net
63b440
Requires:         slf4j
63b440
Requires:         slf4j-jdk14
63b440
Requires:         jpackage-utils >= 0:1.7.5-10
4fb948
Requires:         jss = 5.3
4fb948
Requires:         ldapjdk = 5.3
63b440
Requires:         %{product_id}-base = %{version}-%{release}
63b440
Requires:         resteasy-client >= 3.0.17-1
63b440
Requires:         resteasy-core >= 3.0.17-1
63b440
Requires:         resteasy-jackson2-provider >= 3.0.17-1
63b440
2e2c9c
%description -n   %{product_id}-java
63b440
This package provides common and client libraries for Java.
63b440
63b440
################################################################################
63b440
%package -n       %{product_id}-tools
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Tools Package
63b440
63b440
Obsoletes:        pki-tools < %{version}-%{release}
63b440
Provides:         pki-tools = %{version}-%{release}
63b440
63b440
Requires:         openldap-clients
63b440
Requires:         nss-tools >= 3.36.1
2e2c9c
Requires:         %{product_id}-java = %{version}-%{release}
63b440
Requires:         p11-kit-trust
63b440
63b440
# PKICertImport depends on certutil and openssl
63b440
Requires:         nss-tools
63b440
Requires:         openssl
63b440
63b440
%description -n   %{product_id}-tools
63b440
This package provides tools that can be used to help make
63b440
%{product_name} into a more complete and robust PKI solution.
63b440
2e2c9c
The utility "tpsclient" is a test tool that interacts with TPS.
2e2c9c
This tool is useful to test TPS server without risking an actual smart card.
2e2c9c
63b440
# with base
63b440
%endif
63b440
63b440
%if %{with server}
63b440
################################################################################
63b440
%package -n       %{product_id}-server
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Server Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-server < %{version}-%{release}
63b440
Provides:         pki-server = %{version}-%{release}
63b440
63b440
Requires:         hostname
63b440
63b440
Requires:         policycoreutils
63b440
Requires:         procps-ng
63b440
Requires:         openldap-clients
63b440
Requires:         openssl
63b440
Requires:         %{product_id}-tools = %{version}-%{release}
63b440
63b440
Requires:         keyutils
63b440
63b440
Requires:         policycoreutils-python-utils
63b440
63b440
Requires:         python3-lxml
63b440
Requires:         python3-libselinux
63b440
Requires:         python3-policycoreutils
63b440
63b440
Requires:         selinux-policy-targeted >= 3.13.1-159
63b440
63b440
%if 0%{?rhel} && ! 0%{?eln}
2e2c9c
Requires:         pki-servlet-engine >= 9.0.31
63b440
%else
2e2c9c
Requires:         tomcat >= 1:9.0.31
63b440
%endif
63b440
63b440
Requires:         systemd
63b440
Requires(post):   systemd-units
63b440
Requires(postun): systemd-units
63b440
Requires(pre):    shadow-utils
4fb948
Requires:         tomcatjss = 8.3
63b440
63b440
# pki-healthcheck depends on the following library
63b440
%if 0%{?rhel}
63b440
Requires:         ipa-healthcheck-core
63b440
%else
63b440
Requires:         freeipa-healthcheck-core
63b440
%endif
63b440
63b440
# https://pagure.io/freeipa/issue/7742
63b440
%if 0%{?rhel}
63b440
Conflicts:        ipa-server < 4.7.1
63b440
%else
63b440
Conflicts:        freeipa-server < 4.7.1
63b440
%endif
63b440
63b440
Provides:         bundled(js-backbone) = 1.4.0
63b440
Provides:         bundled(js-bootstrap) = 3.4.1
63b440
Provides:         bundled(js-jquery) = 3.5.1
63b440
Provides:         bundled(js-jquery-i18n-properties) = 1.2.7
63b440
Provides:         bundled(js-patternfly) = 3.59.2
63b440
Provides:         bundled(js-underscore) = 1.9.2
63b440
63b440
%description -n   %{product_id}-server
63b440
This package provides libraries and utilities needed by %{product_name} services.
63b440
63b440
# with server
63b440
%endif
63b440
63b440
%if %{with acme}
63b440
################################################################################
63b440
%package -n       %{product_id}-acme
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} ACME Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-acme < %{version}-%{release}
63b440
Provides:         pki-acme = %{version}-%{release}
63b440
63b440
Requires:         %{product_id}-server = %{version}-%{release}
63b440
63b440
%description -n   %{product_id}-acme
63b440
%{product_name} ACME responder is a service that provides an automatic certificate
63b440
management via ACME v2 protocol defined in RFC 8555.
63b440
63b440
# with acme
63b440
%endif
63b440
63b440
%if %{with ca}
63b440
################################################################################
63b440
%package -n       %{product_id}-ca
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} CA Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-ca < %{version}-%{release}
63b440
Provides:         pki-ca = %{version}-%{release}
63b440
63b440
Requires:         %{product_id}-server = %{version}-%{release}
63b440
Requires(post):   systemd-units
63b440
Requires(postun): systemd-units
63b440
63b440
%description -n   %{product_id}-ca
63b440
%{product_name} Certificate Authority (CA) is a required subsystem which issues,
63b440
renews, revokes, and publishes certificates as well as compiling and
63b440
publishing Certificate Revocation Lists (CRLs).
63b440
63b440
The Certificate Authority can be configured as a self-signing Certificate
63b440
Authority, where it is the root CA, or it can act as a subordinate CA,
63b440
where it obtains its own signing certificate from a public CA.
63b440
63b440
# with ca
63b440
%endif
63b440
4fb948
%if %{with est}
4fb948
################################################################################
4fb948
%package -n       %{product_id}-est
4fb948
################################################################################
4fb948
4fb948
Summary:          %{product_name} EST Package
4fb948
BuildArch:        noarch
4fb948
4fb948
Obsoletes:        pki-est < %{version}-%{release}
4fb948
Provides:         pki-est = %{version}-%{release}
4fb948
4fb948
Requires:         %{product_id}-server = %{version}-%{release}
4fb948
4fb948
%description -n   %{product_id}-est
4fb948
%{product_name} EST subsystem provides an Enrollment over
4fb948
Secure Transport (RFC 7030) service.
4fb948
4fb948
# with est
4fb948
%endif
4fb948
63b440
%if %{with kra}
63b440
################################################################################
63b440
%package -n       %{product_id}-kra
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} KRA Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-kra < %{version}-%{release}
63b440
Provides:         pki-kra = %{version}-%{release}
63b440
63b440
Requires:         %{product_id}-server = %{version}-%{release}
63b440
Requires(post):   systemd-units
63b440
Requires(postun): systemd-units
63b440
63b440
%description -n   %{product_id}-kra
63b440
%{product_name} Key Recovery Authority (KRA) is an optional subsystem that can act
63b440
as a key archival facility.  When configured in conjunction with the
63b440
Certificate Authority (CA), the KRA stores private encryption keys as part of
63b440
the certificate enrollment process.  The key archival mechanism is triggered
63b440
when a user enrolls in the PKI and creates the certificate request.  Using the
63b440
Certificate Request Message Format (CRMF) request format, a request is
63b440
generated for the user's private encryption key.  This key is then stored in
63b440
the KRA which is configured to store keys in an encrypted format that can only
63b440
be decrypted by several agents requesting the key at one time, providing for
63b440
protection of the public encryption keys for the users in the PKI deployment.
63b440
63b440
Note that the KRA archives encryption keys; it does NOT archive signing keys,
63b440
since such archival would undermine non-repudiation properties of signing keys.
63b440
63b440
# with kra
63b440
%endif
63b440
63b440
%if %{with ocsp}
63b440
################################################################################
63b440
%package -n       %{product_id}-ocsp
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} OCSP Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-ocsp < %{version}-%{release}
63b440
Provides:         pki-ocsp = %{version}-%{release}
63b440
63b440
Requires:         %{product_id}-server = %{version}-%{release}
63b440
Requires(post):   systemd-units
63b440
Requires(postun): systemd-units
63b440
63b440
%description -n   %{product_id}-ocsp
63b440
%{product_name} Online Certificate Status Protocol (OCSP) Manager is an optional
63b440
subsystem that can act as a stand-alone OCSP service.  The OCSP Manager
63b440
performs the task of an online certificate validation authority by enabling
63b440
OCSP-compliant clients to do real-time verification of certificates.  Note
63b440
that an online certificate-validation authority is often referred to as an
63b440
OCSP Responder.
63b440
63b440
Although the Certificate Authority (CA) is already configured with an
63b440
internal OCSP service.  An external OCSP Responder is offered as a separate
63b440
subsystem in case the user wants the OCSP service provided outside of a
63b440
firewall while the CA resides inside of a firewall, or to take the load of
63b440
requests off of the CA.
63b440
63b440
The OCSP Manager can receive Certificate Revocation Lists (CRLs) from
63b440
multiple CA servers, and clients can query the OCSP Manager for the
63b440
revocation status of certificates issued by all of these CA servers.
63b440
63b440
When an instance of OCSP Manager is set up with an instance of CA, and
63b440
publishing is set up to this OCSP Manager, CRLs are published to it
63b440
whenever they are issued or updated.
63b440
63b440
# with ocsp
63b440
%endif
63b440
63b440
%if %{with tks}
63b440
################################################################################
63b440
%package -n       %{product_id}-tks
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} TKS Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-tks < %{version}-%{release}
63b440
Provides:         pki-tks = %{version}-%{release}
63b440
63b440
Requires:         %{product_id}-server = %{version}-%{release}
63b440
Requires(post):   systemd-units
63b440
Requires(postun): systemd-units
63b440
63b440
%description -n   %{product_id}-tks
63b440
%{product_name} Token Key Service (TKS) is an optional subsystem that manages the
63b440
master key(s) and the transport key(s) required to generate and distribute
63b440
keys for hardware tokens.  TKS provides the security between tokens and an
63b440
instance of Token Processing System (TPS), where the security relies upon the
63b440
relationship between the master key and the token keys.  A TPS communicates
63b440
with a TKS over SSL using client authentication.
63b440
63b440
TKS helps establish a secure channel (signed and encrypted) between the token
63b440
and the TPS, provides proof of presence of the security token during
63b440
enrollment, and supports key changeover when the master key changes on the
63b440
TKS.  Tokens with older keys will get new token keys.
63b440
63b440
Because of the sensitivity of the data that TKS manages, TKS should be set up
63b440
behind the firewall with restricted access.
63b440
63b440
# with tks
63b440
%endif
63b440
63b440
%if %{with tps}
63b440
################################################################################
63b440
%package -n       %{product_id}-tps
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} TPS Package
2e2c9c
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-tps < %{version}-%{release}
63b440
Provides:         pki-tps = %{version}-%{release}
63b440
63b440
Requires:         %{product_id}-server = %{version}-%{release}
63b440
Requires(post):   systemd-units
63b440
Requires(postun): systemd-units
63b440
63b440
# additional runtime requirements needed to run native 'tpsclient'
63b440
# REMINDER:  Revisit these once 'tpsclient' is rewritten as a Java app
63b440
63b440
Requires:         nss-tools >= 3.36.1
63b440
Requires:         openldap-clients
63b440
63b440
%description -n   %{product_id}-tps
63b440
%{product_name} Token Processing System (TPS) is an optional subsystem that acts
63b440
as a Registration Authority (RA) for authenticating and processing
63b440
enrollment requests, PIN reset requests, and formatting requests from
63b440
the Enterprise Security Client (ESC).
63b440
63b440
TPS is designed to communicate with tokens that conform to
63b440
Global Platform's Open Platform Specification.
63b440
63b440
TPS communicates over SSL with various PKI backend subsystems (including
63b440
the Certificate Authority (CA), the Key Recovery Authority (KRA), and the
63b440
Token Key Service (TKS)) to fulfill the user's requests.
63b440
63b440
TPS also interacts with the token database, an LDAP server that stores
63b440
information about individual tokens.
63b440
63b440
# with tps
63b440
%endif
63b440
63b440
%if %{with javadoc}
63b440
################################################################################
63b440
%package -n       %{product_id}-javadoc
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Javadoc Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-javadoc < %{version}-%{release}
63b440
Provides:         pki-javadoc = %{version}-%{release}
63b440
63b440
# Ensure we end up with a useful installation
63b440
Conflicts:        pki-base < %{version}
63b440
Conflicts:        pki-server-theme < %{version}
2e2c9c
Conflicts:        %{product_id}-theme < %{version}
63b440
63b440
%description -n   %{product_id}-javadoc
63b440
This package provides %{product_name} API documentation.
63b440
63b440
# with javadoc
63b440
%endif
63b440
63b440
%if %{with console}
63b440
################################################################################
63b440
%package -n       %{product_id}-console
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Console Package
63b440
BuildArch:        noarch
63b440
63b440
BuildRequires:    idm-console-framework >= 2.0
63b440
63b440
Obsoletes:        pki-console < %{version}-%{release}
63b440
Provides:         pki-console = %{version}-%{release}
63b440
63b440
Requires:         idm-console-framework >= 2.0
2e2c9c
Requires:         %{product_id}-java = %{version}-%{release}
63b440
Requires:         %{product_id}-console-theme = %{version}-%{release}
63b440
63b440
%description -n   %{product_id}-console
63b440
%{product_name} Console is a Java application used to administer %{product_name} Server.
63b440
63b440
# with console
63b440
%endif
63b440
63b440
%if %{with theme}
63b440
################################################################################
2e2c9c
%package -n       %{product_id}-theme
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Server Theme Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-server-theme < %{version}-%{release}
63b440
Provides:         pki-server-theme = %{version}-%{release}
63b440
2e2c9c
Obsoletes:        %{product_id}-server-theme < %{version}-%{release}
2e2c9c
Provides:         %{product_id}-server-theme = %{version}-%{release}
2e2c9c
63b440
# Ensure we end up with a useful installation
63b440
Conflicts:        pki-base < %{version}
63b440
Conflicts:        pki-javadoc < %{version}
63b440
2e2c9c
%description -n   %{product_id}-theme
2e2c9c
This package provides theme files for %{product_name}.
63b440
63b440
%if %{with console}
63b440
################################################################################
63b440
%package -n       %{product_id}-console-theme
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Console Theme Package
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-console-theme < %{version}-%{release}
63b440
Provides:         pki-console-theme = %{version}-%{release}
63b440
63b440
# Ensure we end up with a useful installation
63b440
Conflicts:        pki-base < %{version}
63b440
Conflicts:        pki-server-theme < %{version}
63b440
Conflicts:        pki-javadoc < %{version}
2e2c9c
Conflicts:        %{product_id}-theme < %{version}
63b440
63b440
%description -n   %{product_id}-console-theme
63b440
This package provides theme files for %{product_name} Console.
63b440
63b440
# with console
63b440
%endif
63b440
63b440
# with theme
63b440
%endif
63b440
63b440
%if %{with tests}
63b440
################################################################################
63b440
%package -n       %{product_id}-tests
63b440
################################################################################
63b440
63b440
Summary:          %{product_name} Tests
63b440
BuildArch:        noarch
63b440
63b440
Obsoletes:        pki-tests < %{version}-%{release}
63b440
Provides:         pki-tests = %{version}-%{release}
63b440
63b440
Requires:         python3-pylint
63b440
Requires:         python3-flake8
63b440
63b440
%description -n   %{product_id}-tests
63b440
This package provides test suite for %{product_name}.
63b440
63b440
# with tests
63b440
%endif
63b440
63b440
################################################################################
63b440
%prep
63b440
################################################################################
63b440
2e2c9c
%autosetup -n pki-%{version}%{?phase:-}%{?phase} -p 1
63b440
63b440
################################################################################
63b440
%build
63b440
################################################################################
63b440
4fb948
# Set build flags for CMake
4fb948
# (see /usr/lib/rpm/macros.d/macros.cmake)
4fb948
%set_build_flags
4fb948
4fb948
pkgs=base\
4fb948
%{?with_server:,server}\
4fb948
%{?with_ca:,ca}\
4fb948
%{?with_est:,est}\
4fb948
%{?with_kra:,kra}\
4fb948
%{?with_ocsp:,ocsp}\
4fb948
%{?with_tks:,tks}\
4fb948
%{?with_tps:,tps}\
4fb948
%{?with_acme:,acme}\
4fb948
%{?with_javadoc:,javadoc}\
4fb948
%{?with_theme:,theme}\
4fb948
%{?with_meta:,meta}\
4fb948
%{?with_tests:,tests}\
4fb948
%{?with_debug:,debug}
4fb948
4fb948
./build.sh \
4fb948
    %{?_verbose:-v} \
4fb948
    --product-name="%{product_name}" \
4fb948
    --product-id=%{product_id} \
4fb948
%if %{with theme}
4fb948
    --theme=%{theme} \
4fb948
%endif
4fb948
    --work-dir=%{_vpath_builddir} \
4fb948
    --prefix-dir=%{_prefix} \
4fb948
    --include-dir=%{_includedir} \
4fb948
    --lib-dir=%{_libdir} \
4fb948
    --sysconf-dir=%{_sysconfdir} \
4fb948
    --share-dir=%{_datadir} \
4fb948
    --cmake=%{__cmake} \
4fb948
    --java-home=%{java_home} \
4fb948
    --jni-dir=%{_jnidir} \
4fb948
    --unit-dir=%{_unitdir} \
4fb948
    --python=%{python_executable} \
4fb948
    --with-pkgs=$pkgs \
4fb948
    %{?with_console:--with-console} \
4fb948
    %{!?with_test:--without-test} \
4fb948
    dist
63b440
63b440
################################################################################
63b440
%install
63b440
################################################################################
63b440
4fb948
./build.sh \
4fb948
    %{?_verbose:-v} \
4fb948
    --work-dir=%{_vpath_builddir} \
4fb948
    --install-dir=%{buildroot} \
63b440
    install
63b440
63b440
%if %{with server}
63b440
63b440
%pre -n %{product_id}-server
63b440
getent group %{pki_groupname} >/dev/null || groupadd -f -g %{pki_gid} -r %{pki_groupname}
63b440
if ! getent passwd %{pki_username} >/dev/null ; then
63b440
    useradd -r -u %{pki_uid} -g %{pki_groupname} -d %{pki_homedir} -s /sbin/nologin -c "Certificate System" %{pki_username}
63b440
fi
63b440
exit 0
63b440
63b440
# with server
63b440
%endif
63b440
63b440
%if %{with base}
63b440
63b440
%post -n %{product_id}-base
63b440
63b440
if [ $1 -eq 1 ]
63b440
then
63b440
    # On RPM installation create system upgrade tracker
63b440
    echo "Configuration-Version: %{version}" > %{_sysconfdir}/pki/pki.version
63b440
63b440
else
63b440
    # On RPM upgrade run system upgrade
63b440
    echo "Upgrading PKI system configuration at `/bin/date`." >> /var/log/pki/pki-upgrade-%{version}.log
63b440
    /sbin/pki-upgrade 2>&1 | tee -a /var/log/pki/pki-upgrade-%{version}.log
63b440
    echo >> /var/log/pki/pki-upgrade-%{version}.log
63b440
fi
63b440
63b440
%postun -n %{product_id}-base
63b440
63b440
if [ $1 -eq 0 ]
63b440
then
63b440
    # On RPM uninstallation remove system upgrade tracker
63b440
    rm -f %{_sysconfdir}/pki/pki.version
63b440
fi
63b440
63b440
# with base
63b440
%endif
63b440
63b440
%if %{with server}
63b440
63b440
%post -n %{product_id}-server
63b440
# CVE-2021-3551
63b440
# Remove world access from existing installation logs
63b440
find /var/log/pki -maxdepth 1 -type f -exec chmod o-rwx {} \;
63b440
63b440
# Reload systemd daemons on upgrade only
63b440
if [ "$1" == "2" ]
63b440
then
63b440
    systemctl daemon-reload
63b440
fi
63b440
63b440
# with server
63b440
%endif
63b440
63b440
%if %{with meta}
63b440
%if "%{name}" != "%{product_id}"
63b440
################################################################################
63b440
%files -n %{product_id}
63b440
################################################################################
63b440
%else
63b440
%files
63b440
%endif
63b440
63b440
%doc %{_datadir}/doc/pki/README
63b440
63b440
# with meta
63b440
%endif
63b440
63b440
%if %{with base}
63b440
################################################################################
63b440
%files -n %{product_id}-base
63b440
################################################################################
63b440
63b440
%license base/common/LICENSE
63b440
%license base/common/LICENSE.LESSER
63b440
%doc %{_datadir}/doc/pki-base/html
63b440
%dir %{_datadir}/pki
63b440
%{_datadir}/pki/VERSION
63b440
%{_datadir}/pki/pom.xml
63b440
%dir %{_datadir}/pki/etc
63b440
%{_datadir}/pki/etc/pki.conf
63b440
%{_datadir}/pki/etc/logging.properties
63b440
%dir %{_datadir}/pki/lib
63b440
%dir %{_datadir}/pki/scripts
63b440
%{_datadir}/pki/scripts/config
63b440
%{_datadir}/pki/upgrade/
63b440
%{_datadir}/pki/key/templates
63b440
%dir %{_sysconfdir}/pki
63b440
%config(noreplace) %{_sysconfdir}/pki/pki.conf
63b440
%dir %{_localstatedir}/log/pki
63b440
%{_sbindir}/pki-upgrade
63b440
%{_mandir}/man1/pki-python-client.1.gz
63b440
%{_mandir}/man5/pki-logging.5.gz
63b440
%{_mandir}/man8/pki-upgrade.8.gz
63b440
63b440
################################################################################
2e2c9c
%files -n %{product_id}-java
63b440
################################################################################
63b440
63b440
%license base/common/LICENSE
63b440
%license base/common/LICENSE.LESSER
63b440
%{_datadir}/pki/examples/java/
63b440
%{_datadir}/pki/lib/*.jar
63b440
%dir %{_javadir}/pki
63b440
%{_javadir}/pki/pki-certsrv.jar
63b440
63b440
################################################################################
63b440
%files -n python3-%{product_id}
63b440
################################################################################
63b440
63b440
%license base/common/LICENSE
63b440
%license base/common/LICENSE.LESSER
63b440
%if %{with server}
63b440
%exclude %{python3_sitelib}/pki/server
63b440
%endif
63b440
%{python3_sitelib}/pki
63b440
63b440
################################################################################
63b440
%files -n %{product_id}-tools
63b440
################################################################################
63b440
63b440
%license base/tools/LICENSE
63b440
%doc base/tools/doc/README
63b440
%{_bindir}/p12tool
2e2c9c
%{_bindir}/p7tool
63b440
%{_bindir}/pistool
63b440
%{_bindir}/pki
63b440
%{_bindir}/revoker
63b440
%{_bindir}/setpin
63b440
%{_bindir}/sslget
63b440
%{_bindir}/tkstool
2e2c9c
%{_bindir}/tpsclient
63b440
%{_bindir}/AtoB
63b440
%{_bindir}/AuditVerify
63b440
%{_bindir}/BtoA
63b440
%{_bindir}/CMCEnroll
63b440
%{_bindir}/CMCRequest
63b440
%{_bindir}/CMCResponse
63b440
%{_bindir}/CMCRevoke
63b440
%{_bindir}/CMCSharedToken
63b440
%{_bindir}/CRMFPopClient
63b440
%{_bindir}/DRMTool
63b440
%{_bindir}/ExtJoiner
63b440
%{_bindir}/GenExtKeyUsage
63b440
%{_bindir}/GenIssuerAltNameExt
63b440
%{_bindir}/GenSubjectAltNameExt
63b440
%{_bindir}/HttpClient
63b440
%{_bindir}/KRATool
63b440
%{_bindir}/OCSPClient
63b440
%{_bindir}/PKCS10Client
63b440
%{_bindir}/PKCS12Export
63b440
%{_bindir}/PKICertImport
63b440
%{_bindir}/PrettyPrintCert
63b440
%{_bindir}/PrettyPrintCrl
63b440
%{_bindir}/TokenInfo
63b440
%{_javadir}/pki/pki-tools.jar
63b440
%{_datadir}/pki/tools/
63b440
%{_datadir}/pki/lib/p11-kit-trust.so
2e2c9c
%{_libdir}/tps/libtps.so
63b440
%{_mandir}/man1/AtoB.1.gz
63b440
%{_mandir}/man1/AuditVerify.1.gz
63b440
%{_mandir}/man1/BtoA.1.gz
63b440
%{_mandir}/man1/CMCEnroll.1.gz
63b440
%{_mandir}/man1/CMCRequest.1.gz
63b440
%{_mandir}/man1/CMCSharedToken.1.gz
63b440
%{_mandir}/man1/CMCResponse.1.gz
63b440
%{_mandir}/man1/DRMTool.1.gz
63b440
%{_mandir}/man1/KRATool.1.gz
63b440
%{_mandir}/man1/PrettyPrintCert.1.gz
63b440
%{_mandir}/man1/PrettyPrintCrl.1.gz
63b440
%{_mandir}/man1/pki.1.gz
63b440
%{_mandir}/man1/pki-audit.1.gz
63b440
%{_mandir}/man1/pki-ca-cert.1.gz
63b440
%{_mandir}/man1/pki-ca-kraconnector.1.gz
63b440
%{_mandir}/man1/pki-ca-profile.1.gz
63b440
%{_mandir}/man1/pki-client.1.gz
63b440
%{_mandir}/man1/pki-group.1.gz
63b440
%{_mandir}/man1/pki-group-member.1.gz
63b440
%{_mandir}/man1/pki-kra-key.1.gz
63b440
%{_mandir}/man1/pki-pkcs12-cert.1.gz
63b440
%{_mandir}/man1/pki-pkcs12-key.1.gz
63b440
%{_mandir}/man1/pki-pkcs12.1.gz
63b440
%{_mandir}/man1/pki-securitydomain.1.gz
63b440
%{_mandir}/man1/pki-tps-profile.1.gz
63b440
%{_mandir}/man1/pki-user.1.gz
63b440
%{_mandir}/man1/pki-user-cert.1.gz
63b440
%{_mandir}/man1/pki-user-membership.1.gz
63b440
%{_mandir}/man1/PKCS10Client.1.gz
63b440
%{_mandir}/man1/PKICertImport.1.gz
2e2c9c
%{_mandir}/man1/tpsclient.1.gz
63b440
63b440
# with base
63b440
%endif
63b440
63b440
%if %{with server}
63b440
################################################################################
63b440
%files -n %{product_id}-server
63b440
################################################################################
63b440
63b440
%license base/common/THIRD_PARTY_LICENSES
63b440
%license base/server/LICENSE
63b440
%doc base/server/README
63b440
%attr(755,-,-) %dir %{_sysconfdir}/sysconfig/pki
63b440
%attr(755,-,-) %dir %{_sysconfdir}/sysconfig/pki/tomcat
63b440
%{_sbindir}/pkispawn
63b440
%{_sbindir}/pkidestroy
63b440
%{_sbindir}/pki-server
63b440
%{_sbindir}/pki-server-upgrade
63b440
%{_sbindir}/pki-healthcheck
63b440
%{python3_sitelib}/pki/server/
63b440
%{python3_sitelib}/pkihealthcheck-*.egg-info/
63b440
%config(noreplace) %{_sysconfdir}/pki/healthcheck.conf
63b440
63b440
%{_datadir}/pki/etc/tomcat.conf
63b440
%dir %{_datadir}/pki/deployment
63b440
%{_datadir}/pki/deployment/config/
63b440
%{_datadir}/pki/scripts/operations
63b440
%{_bindir}/pkidaemon
63b440
%{_bindir}/pki-server-nuxwdog
63b440
%dir %{_sysconfdir}/systemd/system/pki-tomcatd.target.wants
63b440
%attr(644,-,-) %{_unitdir}/pki-tomcatd@.service
63b440
%attr(644,-,-) %{_unitdir}/pki-tomcatd.target
63b440
%dir %{_sysconfdir}/systemd/system/pki-tomcatd-nuxwdog.target.wants
63b440
%attr(644,-,-) %{_unitdir}/pki-tomcatd-nuxwdog@.service
63b440
%attr(644,-,-) %{_unitdir}/pki-tomcatd-nuxwdog.target
63b440
%{_javadir}/pki/pki-cms.jar
63b440
%{_javadir}/pki/pki-tomcat.jar
63b440
%dir %{_sharedstatedir}/pki
63b440
%{_mandir}/man1/pkidaemon.1.gz
63b440
%{_mandir}/man5/pki_default.cfg.5.gz
63b440
%{_mandir}/man5/pki_healthcheck.conf.5.gz
63b440
%{_mandir}/man5/pki-server-logging.5.gz
63b440
%{_mandir}/man8/pki-server-upgrade.8.gz
63b440
%{_mandir}/man8/pkidestroy.8.gz
63b440
%{_mandir}/man8/pkispawn.8.gz
63b440
%{_mandir}/man8/pki-server.8.gz
63b440
%{_mandir}/man8/pki-server-acme.8.gz
4fb948
%{_mandir}/man8/pki-server-est.8.gz
63b440
%{_mandir}/man8/pki-server-instance.8.gz
63b440
%{_mandir}/man8/pki-server-subsystem.8.gz
63b440
%{_mandir}/man8/pki-server-nuxwdog.8.gz
63b440
%{_mandir}/man8/pki-server-migrate.8.gz
63b440
%{_mandir}/man8/pki-server-cert.8.gz
63b440
%{_mandir}/man8/pki-server-ca.8.gz
63b440
%{_mandir}/man8/pki-server-kra.8.gz
63b440
%{_mandir}/man8/pki-server-ocsp.8.gz
63b440
%{_mandir}/man8/pki-server-tks.8.gz
63b440
%{_mandir}/man8/pki-server-tps.8.gz
63b440
%{_mandir}/man8/pki-healthcheck.8.gz
63b440
%{_datadir}/pki/setup/
63b440
%{_datadir}/pki/server/
63b440
63b440
# with server
63b440
%endif
63b440
63b440
%if %{with acme}
63b440
################################################################################
63b440
%files -n %{product_id}-acme
63b440
################################################################################
63b440
63b440
%{_javadir}/pki/pki-acme.jar
63b440
%{_datadir}/pki/acme/
63b440
63b440
# with acme
63b440
%endif
63b440
63b440
%if %{with ca}
63b440
################################################################################
63b440
%files -n %{product_id}-ca
63b440
################################################################################
63b440
63b440
%license base/ca/LICENSE
63b440
%{_javadir}/pki/pki-ca.jar
63b440
%{_datadir}/pki/ca/
63b440
63b440
# with ca
63b440
%endif
63b440
4fb948
%if %{with est}
4fb948
################################################################################
4fb948
%files -n %{product_id}-est
4fb948
################################################################################
4fb948
4fb948
%{_javadir}/pki/pki-est.jar
4fb948
%{_datadir}/pki/est/
4fb948
4fb948
# with est
4fb948
%endif
4fb948
63b440
%if %{with kra}
63b440
################################################################################
63b440
%files -n %{product_id}-kra
63b440
################################################################################
63b440
63b440
%license base/kra/LICENSE
63b440
%{_javadir}/pki/pki-kra.jar
63b440
%{_datadir}/pki/kra/
63b440
63b440
# with kra
63b440
%endif
63b440
63b440
%if %{with ocsp}
63b440
################################################################################
63b440
%files -n %{product_id}-ocsp
63b440
################################################################################
63b440
63b440
%license base/ocsp/LICENSE
63b440
%{_javadir}/pki/pki-ocsp.jar
63b440
%{_datadir}/pki/ocsp/
63b440
63b440
# with ocsp
63b440
%endif
63b440
63b440
%if %{with tks}
63b440
################################################################################
63b440
%files -n %{product_id}-tks
63b440
################################################################################
63b440
63b440
%license base/tks/LICENSE
63b440
%{_javadir}/pki/pki-tks.jar
63b440
%{_datadir}/pki/tks/
63b440
63b440
# with tks
63b440
%endif
63b440
63b440
%if %{with tps}
63b440
################################################################################
63b440
%files -n %{product_id}-tps
63b440
################################################################################
63b440
63b440
%license base/tps/LICENSE
63b440
%{_javadir}/pki/pki-tps.jar
63b440
%{_datadir}/pki/tps/
63b440
%{_mandir}/man5/pki-tps-connector.5.gz
63b440
%{_mandir}/man5/pki-tps-profile.5.gz
63b440
63b440
# with tps
63b440
%endif
63b440
63b440
%if %{with javadoc}
63b440
################################################################################
63b440
%files -n %{product_id}-javadoc
63b440
################################################################################
63b440
63b440
%{_javadocdir}/pki/
63b440
63b440
# with javadoc
63b440
%endif
63b440
63b440
%if %{with console}
63b440
################################################################################
63b440
%files -n %{product_id}-console
63b440
################################################################################
63b440
63b440
%license base/console/LICENSE
63b440
%{_bindir}/pkiconsole
63b440
%{_javadir}/pki/pki-console.jar
63b440
63b440
# with console
63b440
%endif
63b440
63b440
%if %{with theme}
63b440
################################################################################
2e2c9c
%files -n %{product_id}-theme
63b440
################################################################################
63b440
63b440
%license themes/%{theme}/common-ui/LICENSE
63b440
%dir %{_datadir}/pki
63b440
%{_datadir}/pki/CS_SERVER_VERSION
63b440
%{_datadir}/pki/common-ui/
63b440
%{_datadir}/pki/server/webapps/pki/ca
63b440
%{_datadir}/pki/server/webapps/pki/css
63b440
%{_datadir}/pki/server/webapps/pki/esc
63b440
%{_datadir}/pki/server/webapps/pki/fonts
63b440
%{_datadir}/pki/server/webapps/pki/images
63b440
%{_datadir}/pki/server/webapps/pki/kra
63b440
%{_datadir}/pki/server/webapps/pki/ocsp
63b440
%{_datadir}/pki/server/webapps/pki/pki.properties
63b440
%{_datadir}/pki/server/webapps/pki/tks
63b440
63b440
%if %{with console}
63b440
################################################################################
63b440
%files -n %{product_id}-console-theme
63b440
################################################################################
63b440
63b440
%license themes/%{theme}/console-ui/LICENSE
63b440
%{_javadir}/pki/pki-console-theme.jar
63b440
63b440
# with console
63b440
%endif
63b440
63b440
# with theme
63b440
%endif
63b440
63b440
%if %{with tests}
63b440
################################################################################
63b440
%files -n %{product_id}-tests
63b440
################################################################################
63b440
63b440
%{_datadir}/pki/tests/
63b440
63b440
# with tests
63b440
%endif
63b440
63b440
################################################################################
63b440
%changelog
4fb948
* Mon Jan 30 2023 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.3.0-1
4fb948
- Rebase to PKI 11.3.0
4fb948
- Bug #2091993 - IdM Install fails on RHEL 8.5 Beta when DISA STIG is applied
4fb948
- Bug #2122409 - pki-tomcat/kra unable to decrypt when using RSA-OAEP padding in RHEL9 with FIPS enabled
4fb948
4fb948
* Wed Nov 30 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.3.0-0.2.beta1
4fb948
- Rebase to PKI 11.3.0-beta1
4fb948
- Bug #1849834 - [RFE] Provide EST Responder (RFC 7030)
4fb948
- Bug #1883477 - [RFE] Automatic expired certificate purging
4fb948
- Bug #2091999 - Error displayed should be user friendly in case RSNv3 certificate serial number collision
4fb948
- Bug #2106452 - softhsm2: Unable to create cert: Private key not found
4fb948
- Bug #2106459 - CVE-2022-2393 pki-core: Improper authentication/authorization with caServerKeygen_DirUserCert profile
4fb948
2e2c9c
* Thu Aug 04 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.2.1-1
2e2c9c
- Rebase to PKI 11.2.1
2e2c9c
- Bug #2107336 - CVE-2022-2414 pki-core: access to external entities when parsing XML can lead to XXE [rhel-9.1.0]
2e2c9c
2e2c9c
* Fri Jul 01 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.2.0-1
2e2c9c
- Rebase to PKI 11.2.0
2e2c9c
- Bug #2084639 ipa cert-request ssl error
2e2c9c
- Bug #2099312 SKI field is not reflected back in generated CSR
2e2c9c
- Bug #2095197 PKI cert-fix operation failing
2e2c9c
2e2c9c
* Fri May 06 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.2.0-0.4.beta3
2e2c9c
- Rebase to PKI 11.2.0-beta3
2e2c9c
- Bug #2062808 Drop SHA-1 use from authentication challenges [rhel-9.1.0]
2e2c9c
2e2c9c
* Mon May 02 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.2.0-0.3.beta2
2e2c9c
- Rebase to PKI 11.2.0-beta2
2e2c9c
- Rename packages to idm-pki
2e2c9c
2e2c9c
* Mon Apr 18 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.2.0-0.2.beta1
2e2c9c
- Rebase to PKI 11.2.0-beta1
63b440
63b440
* Wed Jan 19 2022 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.0.3-1
63b440
- Bug #2033109 Invalid certificates with creation of subCA (pkispawn single step)[rhel-9.0.0]
63b440
- Bug #2013141 kra-key-retrieve failed to accept xml input format to generate .p12 key through cli
63b440
- Bug #2029838 SHA1withRSA being listed in signing certificates while approving certificate via Agent page in browser
63b440
63b440
* Thu Dec 02 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.0.1-3
63b440
- Change gcc compiler flags to fix annobin gating failures
63b440
63b440
* Tue Nov 23 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.0.1-2
63b440
- Rebase to PKI 11.0.1
63b440
63b440
* Tue Oct 05 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.0.0-1
63b440
- Rebase to PKI 11.0.0
63b440
63b440
* Thu Sep 30 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.0.0-0.6.beta1
63b440
- Rebase to PKI 11.0.0-beta1
63b440
- Bug #1999052 - pki instance creation fails for IPA server
63b440
63b440
* Thu Sep 09 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.0.0-0.5.alpha1
63b440
- Drop BuildRequires and Requires on glassfish-jaxb-api and jaxb-impl
63b440
  Resolves #2002594
63b440
63b440
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 11.0.0-0.4.alpha1
63b440
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
63b440
  Related: rhbz#1991688
63b440
63b440
* Thu Jul  1 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.0.0-0.3
63b440
- Drop sudo dependency
63b440
63b440
* Tue Jun 29 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.0.0-0.2
63b440
- Resolves: rhbz#1975406 - IPA installation fails during pki-tomcatd setup.
63b440
63b440
* Fri Jun 25 2021 Red Hat PKI Team <rhcs-maint@redhat.com> - 11.0.0-0.1
63b440
- Rebase to PKI 11.0.0-alpha1
63b440
63b440
* Tue May 18 2021 Red Hat PKI Team <rhcs-maint@redhat.com> 10.11.0-0.1
63b440
- Rebase to PKI 10.11.0-alpha1