Difference between revisions of "PKI ACME Responder with Cassandra Database"

From Dogtag
Jump to: navigation, search
m (See Also)
m (Initializing Database)
Line 12: Line 12:
 
<pre>
 
<pre>
 
$ cqlsh --cqlshrc=cqlshrc -u pki -p Secret.123 -k acme -f /usr/share/pki/acme/database/cassandra/create.sql
 
$ cqlsh --cqlshrc=cqlshrc -u pki -p Secret.123 -k acme -f /usr/share/pki/acme/database/cassandra/create.sql
 +
</pre>
 +
 +
= Configuring ACME Responder =
 +
 +
To configure PKI ACME responder with a Cassandra database:
 +
 +
<pre>
 +
$ cp /usr/share/pki/acme/database/cassandra/database.conf /etc/pki/pki-tomcat/acme/database.conf
 +
</pre>
 +
 +
The configuration will be stored in /etc/pki/pki-tomcat/acme/database.conf, for example:
 +
 +
<pre>
 +
class=org.dogtagpki.acme.database.CassandraDatabase
 +
url=jdbc:cassandra://localhost.localdomain:9042/acme
 +
user=cassandra
 +
password=cassandra
 
</pre>
 
</pre>
  

Revision as of 03:18, 29 July 2020

Installing JDBC Driver

$ dnf install cassandra-java-driver
$ cd /usr/share/pki/server/common/lib
$ ln -s /usr/share/java/cassandra-java-driver/cassandra-driver-core.jar
$ wget https://github.com/adejanovski/cassandra-jdbc-wrapper/releases/download/3.1.0/cassandra-jdbc-wrapper-3.1.0.jar

Initializing Database

$ cqlsh --cqlshrc=cqlshrc -u pki -p Secret.123 -k acme -f /usr/share/pki/acme/database/cassandra/create.sql

Configuring ACME Responder

To configure PKI ACME responder with a Cassandra database:

$ cp /usr/share/pki/acme/database/cassandra/database.conf /etc/pki/pki-tomcat/acme/database.conf

The configuration will be stored in /etc/pki/pki-tomcat/acme/database.conf, for example:

class=org.dogtagpki.acme.database.CassandraDatabase
url=jdbc:cassandra://localhost.localdomain:9042/acme
user=cassandra
password=cassandra

Removing Database

$ cqlsh --cqlshrc=cqlshrc -u pki -p Secret.123 -k acme -f /usr/share/pki/acme/database/cassandra/drop.sql

See Also