Introduction to Qca

Qca aims to provide a straightforward and cross-platform crypto API, using Qt datatypes and conventions. Qca separates the API from the implementation, using plugins known as Providers.

This package is known to build and work properly using an LFS-8.3 platform.

Package Information

Qca Dependencies


make-ca-0.8, CMake-3.12.1, Qt-5.11.1, and Which-2.21


Cyrus SASL-2.1.26, GnuPG-2.2.9, libgcrypt-1.8.3, libgpg-error-1.32, NSS-3.38, NSPR-4.19, OpenSSL-1.0.2p Libraries, p11-kit-0.23.13, Doxygen-1.8.14, and Which-2.21

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/qca

Installation of Qca

Fix the location of the CA certificates:

sed -i '[email protected]@ca-bundle.crt@' CMakeLists.txt

Install Qca by running the following commands:

mkdir build &&
cd    build &&

cmake -DCMAKE_INSTALL_PREFIX=$QT5DIR                             \
      -DCMAKE_BUILD_TYPE=Release                                 \
      -DQCA_MAN_INSTALL_DIR:PATH=/usr/share/man                  \
      -DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0             \
      -DOPENSSL_SSL_LIBRARY=/usr/lib/openssl-1.0/libssl.so       \
      -DOPENSSL_CRYPTO_LIBRARY=/usr/lib/openssl-1.0/libcrypto.so \
      ..                                                         &&


To test the results, issue make test.

Now, as the root user:

make install

Command Explanations

-DCMAKE_BUILD_TYPE=Release: This switch is used to apply a higher level of compiler optimizations.

-DQCA_MAN_INSTALL_DIR:PATH=/usr/share/man: Install the qca man page in the normal location.


Installed Programs: mozcerts-qt5 and qcatool-qt5
Installed Libraries: libqca-qt5.so
Installed Directories: $QT5DIR/include/Qca-qt5, $QT5DIR/lib/cmake/Qca-qt5, and $QT5DIR/lib/qca-qt5

Short Descriptions


is a command line tool for converting certdata.txt into outfile.pem files.


is a command line tool for performing various cryptographic operations with Qca.


is the Qt Cryptography Architecture (Qca) library.

Last updated on 2018-08-21 13:14:23 -0700