Tuesday, June 19, 2012
Searching in default maven repository
http://repo1.maven.org/maven2/ is the default repository for Maven 2 & 3, but many times it is hard to find the project artifactId, groupId and version in it.
Monday, June 11, 2012
log4j in maven project
Adding support for log4j is realized via maven dependency. You have to edit pom.xml file, and add these lines:
Thursday, May 3, 2012
Catching database resources leaks with Tomcat - howto
This it a solution of "Cannot get a connection, pool error Timeout waiting for idle object" error message. It guides how to find your resource leak.
Get console output in Tomcat
You need stdout.log & stderr.log in Tomcat in Windows? Here is a guide how to get it.
Wednesday, March 28, 2012
Client authentication with SSL certificates in Tomcat
Place something like this in server.xml file:
Attention: clientAuth parameter, in Tomcat 6.0 can get value "want", so it accepts connections with and wothout certificates. The application could decide what to do with the two types of clients internally. Take attention Tomcat 6.0 COULD NOT understand option clientAuth="optional". I suppose it was valid sometime, but now it is not.
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
sslProtocol="TLS"
keystorePass="pass"
keystoreFile="/data/abcd/someserver/server1.jks"
truststoreFile="/data/abcd/eshop/AbcdRootCa.jks"
truststorePass="pass"
keyAlias="www.google.com"
clientAuth="want"
SSLVerifyClient="optional"
SSLCACertificateFile="/data/abcd/someserver/AbcdRootCA.pem"
/>
Attention: clientAuth parameter, in Tomcat 6.0 can get value "want", so it accepts connections with and wothout certificates. The application could decide what to do with the two types of clients internally. Take attention Tomcat 6.0 COULD NOT understand option clientAuth="optional". I suppose it was valid sometime, but now it is not.
Tuesday, March 27, 2012
Checking certificate validity via CRL with openssl
openssl verify -crl_check -CAfile yoursite-root-ca-c.crt -untrusted signer-ca-c3-chain.crt https-yoursite.com.chain.crt
Subscribe to:
Posts (Atom)