Skip to content

Building SSCEP

Endi S. Dewata edited this page Nov 3, 2021 · 4 revisions

Building Upstream SSCEP Binaries

To build upstream SSCEP binaries:

$ dnf install -y autoconf automake libtool openssl-devel
$ git clone -b v0.9.0 https://github.com/certnanny/sscep.git
$ cd sscep
$ ./bootstrap.sh
$ ./configure
$ make
$ make install

The sscep executable will be installed in /usr/local/bin.

The mkrequest will not be installed, but it can be used directly from SSCEP source directory:

$ <SSCEP source dir>/mkrequest

Building Upstream SSCEP RPM Packages

To build upstream SSCEP RPM packages:

$ dnf install -y autoconf automake libtool openssl-devel rpm-build
$ mkdir -p ~/rpmbuild/SOURCES
$ curl -JLOSs https://github.com/certnanny/sscep/archive/v0.9.0/tags/sscep-0.9.0.tar.gz
$ mv sscep-0.9.0.tar.gz ~/rpmbuild/SOURCES
$ curl -JLOSs https://raw.githubusercontent.com/certnanny/sscep/v0.9.0/scripts/sscep.spec
$ sed -i '/%build/ a ./bootstrap.sh' sscep.spec
$ rpmbuild -ba sscep.spec
$ dnf localinstall -y `find ~/rpmbuild/RPMS -name *.rpm`

The sscep executable will be installed in /usr/bin.

The mkrequest will not be included, so it needs to be installed separately:

$ curl -JLOSs https://raw.githubusercontent.com/certnanny/sscep/v0.9.0/mkrequest
$ chmod +x mkrequest
$ ./mkrequest

Building Downsteam SSCEP RPM Packages

To build downstream SSCEP RPM packages:

$ git clone -b v0.10.0-pki https://github.com/certnanny/sscep.git
$ cd sscep
$ mkdir -p ~/rpmbuild/SOURCES
$ git archive --format=tar.gz --prefix sscep-0.10.0/ -o ~/rpmbuild/SOURCES/sscep-0.10.0.tar.gz v0.10.0-pki
$ dnf builddep scripts/sscep.spec
$ rpmbuild -ba scripts/sscep.spec
$ dnf localinstall -y `find ~/rpmbuild/RPMS -name *.rpm`

The sscep and mkrequest executables will be installed in /usr/bin.

Clone this wiki locally