Bug 1462599 - Manually enabling nuxwdog throws incorrect password exception
Manually enabling nuxwdog throws incorrect password exception
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pki-core (Show other bugs)
7.4
All Linux
urgent Severity urgent
: rc
: ---
Assigned To: Ade Lee
Asha Akkiangady
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-19 00:00 EDT by Asha Akkiangady
Modified: 2017-08-10 16:39 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-10 16:39:47 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Manually enabling nuxwdog for CA throws incorrect password exception (39.02 KB, text/plain)
2017-06-19 00:00 EDT, Asha Akkiangady
no flags Details

  None (edit)
Description Asha Akkiangady 2017-06-19 00:00:56 EDT
Created attachment 1288990 [details]
Manually enabling nuxwdog for CA throws incorrect password exception

Description of problem:
Manually enabling nuxwdog throws incorrect password exception.

Version-Release number of selected component (if applicable):


How reproducible:
nuxwdog-1.0.3-5.el7.x86_64
pki-ca-10.4.1-9.el7.noarch

Steps to Reproduce:
1. pkispawn a CA instance with internal token.
2. Followed manual process instructions from http://pki.fedoraproject.org/wiki/Nuxwdog 

The manual procedure did not work, CA server failed to start.

I noticed a difference between the manual process instruction to enable nuxwdog and the simple process using pki-server nuxwdog enable:
Manual process asked to create /var/lib/pki/pki-master/conf/nuxwdog.conf like this:
ExeFile /usr/share/java-utils/java-wrapper
ExeArgs /usr/share/java-utils/java-wrapper \
 -DRESTEASY_LIB=/usr/share/java/resteasy \
 -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/lib/java/commons-daemon.jar \
 -Dcatalina.base=/var/lib/pki/pki-master \
 -Dcatalina.home=/usr/share/tomcat \
 -Djava.endorsed.dirs= \
 -Djava.io.tmpdir=/var/lib/pki/pki-master/temp \
 -Djava.util.logging.config.file=/var/lib/pki/pki-master/conf/logging.properties \
 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
 -Djava.security.manager \
 -Djava.security.policy==/var/lib/pki/pki-master/conf/catalina.policy \
 org.apache.catalina.startup.Bootstrap start
TmpDir /var/lib/pki/pki-master/logs/pids 
ChildSecurity 1
ExeOut /var/lib/pki/pki-master/logs/catalina.out
ExeErr /var/lib/pki/pki-master/logs/catalina.out
ExeBackground 1
PidFile /var/lib/pki/pki-master/logs/wd-pki-master.pid
ChildPidFile /var/lib/pki/pki-master/logs/pki-master.pid


Simple process created /var/lib/pki/pki-master/conf/nuxwdog.conf file with following content:
ExeFile /usr/lib/jvm/jre-1.8.0-openjdk/bin/java
ExeArgs /usr/lib/jvm/jre-1.8.0-openjdk/bin/java -DRESTEASY_LIB=/usr/share/java/resteasy-base        -Djava.library.path=/usr/lib64/nuxwdog-jni  -classpath /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar:/usr/share/java/commons-daemon.jar -Dcatalina.base=/var/lib/pki/pki-master -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/lib/pki/pki-master/temp -Djava.util.logging.config.file=/var/lib/pki/pki-master/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager org.apache.catalina.startup.Bootstrap start
TmpDir /var/lib/pki/pki-master/logs/pids 
ChildSecurity 1
ExeOut /var/lib/pki/pki-master/logs/catalina.out
ExeErr /var/lib/pki/pki-master/logs/catalina.out
ExeBackground 1
PidFile /var/lib/pki/pki-master/logs/wd-pki-master.pid
ChildPidFile /var/lib/pki/pki-master/logs/pki-master.pid

 
3. For the manual process I created file /var/lib/pki/pki-master/conf/nuxwdog.conf with the content same as from simple process; now CA start is proceeding and asking for passwords,
# systemctl start pki-tomcatd-nuxwdog@pki-master.service
[pki-master] Please provide the password for internaldb: ************
[pki-master] Please provide the password for internaldb: *********
[pki-master] Please provide the password for replicationdb: *********

# cat /var/lib/pki/pki-master/conf/password.conf 
internal=pS"1V+nx}0Ns
internaldb=Secret123
replicationdb=211285502

Actual results:
Incorrect password exception is thrown. CA debug log attached.

Expected results:
CA should start successfully.

Additional info:
Comment 3 Ade Lee 2017-08-10 16:39:47 EDT
Wiki page updated with current info.

Ie. replaced the nuxwdog.conf contents.

Note You need to log in before you can comment on or make changes to this bug.