I'm soooooo confused.
cd /etc/pki/tlsAnd the CSR get sent to the non-existant CA... So, fudge it:
mv private/localhost.key private/localhost.key.rpm
mv certs/localhost.crt certs/localhost.crt.rpm
openssl genrsa 2048 -out custom.key
openssl req -new -nodes -subj /O=doug \
-key custom.key -out custom.csr
openssl x509 -noout -text -signkey custom.key \Distribute:
-in custom.csr -out custom.pem
cd private; mv ./custom.key .And, yes, memorize *all* that crap.
ln -s custom.key private.key; cd ..
cd certs; mv ../custom.{csr,pem} .
ln -s custom.pem custom.crt
ln -s custom.pem localhost.crt
service httpd reload
echo | openssl s_client -connect localhost:443 | \
grep subj
openssl pkcs12 -export -name unique \Ready for another puzzle? Tomcat needs another component called a keystore. Beware: This command assumes your goal is to compile all the pkcs12 files in the working directory. Wait-- Don't assume I said something that I didn't: the command does not source *.p12, it evaluates all the files in the directory and if a file is a pkcs12 file, it compiles it. That's why we're in a nearly empty directory.
-in /etc/pki/tls/certs/custom.crt \
-inkey /etc/pki/tls/private/custom.key \
-out custom.p12
keytool -genkeypair -keystore custom.jks \Notice that there is no -in and what was a pkcs12 name is now the jks alias.
-alias unique -dname O=doug
keytool -importkeystore -v -srcstoretype pkcs12 \
-srckeystore custom.p12 -destkeystore custom.jks
maxThreads="???" scheme="https" secre="true"Before you save the file, make sure the stanza you just edited is not commented out by a set of <!-- --> symbols.
keystore="conf/custom.jks" keystorePass="changeit"
clientAuth="false" sslProtocol="TLS" />
echo | openssl s_client -connect localhost:8443 | \
grep subj
<Proxy balancer://cluster-http>In the ProxySet lines we define basic values, the only one of which is interesting is timeout. This determines how long a device has to respond before it considered "down". Next we list the nodes, in this case three.
ProxySet lbmethod=bytraffic nofailover=on
ProxySet stickysession=JSESSIONID timeout=15
BalancerMember http://tomcat1:8080 \
retry=120 loadfactor=1
BalancerMember http://tomcat2:8080 \
retry=120 loadfactor=1
BalancerMember http://tomcat3:8080 \
retry=120 loadfactor=1 lbset=1
</Proxy>
ProxyPass /sample balancer://cluster-http/sample
<Location /balancer-manager>Now you have an interactive, web based, management screen:
SetHandler balancer-manager
</Location>
ProxyPass /balancer-manager/ !
# grep Exec /usr/share/applications/xmms.desktopAnd change the -e to -p. This changes XMMS's behavior from enqueue to play. For some reason, someone decided they wanted to double click to add songs to a manually executing playlist-- Every other player (including Windows Media Player!) uses drop and drag to add songs to the playlist.
Exec=xmms -e %F
# sudo vi /usr/share/applications/xmms.desktop
echo "" | openssl s_client -connect mail.google.com:443 \
2> /dev/null | openssl x509 -noout -text | \
grep After
openssl rsa -noout -check -in localhost.xxx
for J in `find . -type f`; do echo $J; \
openssl rsa -noout -text -in $J 2> /dev/null | grep Pri; \
done
openssl x509 -noout -in localhost.xxx -enddate
for J in `find . -type f`; do echo $J; \
openssl x509 -noout -enddate -in $J 2> /dev/null; \
done
[ `openssl rsa -noout -modulus -in localhost.key` \(Remember that those are back-tics.)
== `openssl x509 -noout -modulus -in localhost.crt` \
] && echo yes || echo no
openssl pkcs12 -info -nodes -in localhost.p12
# yum install tomcat6 tomcat6-admin-webappsThis will snag a quantity of dependencies, but will install with the web manager broken. Before starting Tomcat we will need to "fix" the web manager. While were at it, lets do some reorganizing:
# ls -l /usr/share/tomcat6/ | awk '{print $8" "$9" "$10}Okay... They tried to organize things, but I've never seen anybody put in /usr/share on a production system. Let's go with /opt:
bin
conf -> /etc/tomcat6
lib -> /usr/share/java/tomcat6
logs -> /var/log/tomcat6
temp -> /var/cache/tomcat6/temp
webapps -> /var/lib/tomcat6/webapps
work -> /var/cache/tomcat6/work
# mkdir /opt; cd /opt; ln -s /usr/share/tomcat6 tomcatTime to fix the manager. Web manager will ask for the user the authenticate, even though not user is allowed, by default.
# ln -s tomcat $(cd /usr/share/doc; ls -d tomcat6-*)
# ls -l | awk '{print $8" "$9" "$10}'
tomcat -> /usr/share/tomcat6
tomcat6-6.0.18 -> tomcat
# cd conf; grep manager tomcat-users.xmlOne of the lines should show the user "tomcat" with the role of "manager". Notice the line is commented. Obviously we un-comment the line to allow a manager. We should now be ready:
# service tomcat6 restartHit the manager at something like:
http://tomcat.example.com:8080/manager/html
nomodesetStill no Plymouth, but when Gnome asks the kernel for the correct resolution, the response is "decide yourself". Worked for me. Other possibilities, any one of the following:
vga=795
radeon modeset=0
radeon modeset=1
echo "username ALL=NOEXEC: NOPASSWD: /usr/bin/less" >> /etc/sudoersThe NOEXEC: prevents the "bang hack" and allows full system visibility.