Thanks for the instruction.

Would you be willing to file a PKI TRAC Ticket on this:

In general, we triage these tickets on a weekly basis, and assign it to an appropriate release.

For this specific ticket, although an actual fix may be a ways off, we generally try to get this type of information documented as a workaround in the near term.

-- Matt

On 09/02/15 02:43, Aleksey Chudov wrote:
Below is quick instruction of how to run pki-tomcatd-nuxwdog@pki-tomcat.service as pkiuser:pkiuser in case it will be useful for someone

systemctl stop pki-tomcatd-nuxwdog@pki-tomcat.service

groupadd -r systemd-ask-password

usermod -a -G systemd-ask-password pkiuser

echo "d /run/systemd/ask-password 0775 root systemd-ask-password -" > /etc/tmpfiles.d/systemd-ask-password.conf

/usr/bin/systemd-tmpfiles --create systemd-ask-password.conf

mkdir /etc/systemd/system/pki-tomcatd-nuxwdog@.service.d/

cat << EOF > /etc/systemd/system/pki-tomcatd-nuxwdog@.service.d/override.conf

systemctl daemon-reload

find /var/lib/pki/ /var/log/pki/ /etc/pki/pki-*/ -exec chown pkiuser:pkiuser {} +

systemctl start pki-tomcatd-nuxwdog@pki-tomcat.service

On Wed, Sep 2, 2015 at 11:05 AM, Aleksey Chudov <> wrote:
One big difference in starting PKI under nuxwdog control is that pki-tomcatd@pki-tomcat.service starts PKI as pkiuser:pkiuser but pki-tomcatd-nuxwdog@pki-tomcat.service starts PKI as root:root. Running PKI as root user is bad idea.

On Thu, Aug 27, 2015 at 2:33 PM, Aleksey Chudov <> wrote:
To begin with I have updated to version 10.2.6 from F22 testing to get pki-server man pages.

Enabling nuxwdog solves the problem. Thank you!

On Wed, Aug 26, 2015 at 10:06 PM, Ade Lee <> wrote:

password prompting in CS 8.1 worked because of a utility program called nuxwdog which would prompt for passwords.

We have done some work to get nuxwdog working with the latest Dogtag code, but there is some setup required.
Fortunately, all that setup has been encapsulated in the pki-server utility.

For details, man pki-server , man pki-server-instance and man pki-server-nuxwdog.

The specific command would be:
pki-server instance-nuxwdog-enable <instance_id ie. pki-tomcat>

You should then be prompted for the passwords, and can remove your password.conf file.

On Wed, 2015-08-26 at 21:49 +0300, Aleksey Chudov wrote:
I'm looking at removing at least nss password but both nss and 389 passwords will be better.

Actually PKI prompts for password but I don't see the prompt because of systemd.

To reproduce

systemctl stop pki-tomcatd@pki-tomcat.service
sed -i.bak '/internal=/d' /etc/pki/pki-tomcat/password.conf
systemctl start pki-tomcatd@pki-tomcat.service

Aug 26 21:37:33 srv333 server[8889]: Enter password for Internal Key Storage Token

[26/Aug/2015:21:37:52][localhost-startStop-1]: Got token Internal Key Storage Token by name
[26/Aug/2015:21:37:52][localhost-startStop-1]: SigningUnit init: debug org.mozilla.jss.util.IncorrectPasswordException
Invalid Password
        at com.netscape.cmscore.apps.CMSEngine.initSubsystem(
        at com.netscape.cmscore.apps.CMSEngine.initSubsystems(
        at com.netscape.cmscore.apps.CMSEngine.init(
        at com.netscape.certsrv.apps.CMS.init(
        at com.netscape.certsrv.apps.CMS.start(
        at com.netscape.cms.servlet.base.CMSStartServlet.init(
        at javax.servlet.GenericServlet.init(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at Method)
        at org.apache.catalina.core.StandardWrapper.initServlet(
        at org.apache.catalina.core.StandardWrapper.loadServlet(
        at org.apache.catalina.core.StandardWrapper.load(
        at org.apache.catalina.core.StandardContext.loadOnStartup(
        at org.apache.catalina.core.StandardContext.startInternal(
        at org.apache.catalina.util.LifecycleBase.start(
        at org.apache.catalina.core.ContainerBase.addChildInternal(
        at org.apache.catalina.core.ContainerBase.access$000(
        at org.apache.catalina.core.ContainerBase$
        at org.apache.catalina.core.ContainerBase$
        at Method)
        at org.apache.catalina.core.ContainerBase.addChild(
        at org.apache.catalina.core.StandardHost.addChild(
        at org.apache.catalina.startup.HostConfig.deployDescriptor(
        at org.apache.catalina.startup.HostConfig$
        at java.util.concurrent.Executors$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
[26/Aug/2015:21:37:52][localhost-startStop-1]: CMSEngine.shutdown()

On Wed, Aug 26, 2015 at 8:09 PM, Dave Sirrine <> wrote:


Did removing the password from the file not cause the system to prompt you for the password at startup. Also, are you looking at doing both nss and 389 passwords?

-- David

On Aug 26, 2015 5:58 AM, "Aleksey Chudov" <> wrote:

The password.conf file stores system passwords in plaintext, and I prefer to enter system passwords manually and to remove the password file.

I have found original documentation But it is for older version on PKI and does not work with systemd.

How to setup PKI CA to ask for NSS DB password at startup?

Packages versions (I have rebuilt F22 packages for CentOS 7):
# rpm -qa | grep pki


Pki-users mailing list

Pki-users mailing list

Pki-users mailing list