You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Geett Chanddra Singha <ge...@gmail.com> on 2015/01/29 06:45:33 UTC
FIPS Mode enabling on Tomcat 7.00.057
*Hi all,*
I'm getting the following error when enabling FIPS mode on Apache Tomcat:
Jan 28, 2015 5:02:33 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
SEVERE: Failed to initialize the SSLEngine.
java.lang.Exception: error:2D06C06E:FIPS routines:FIPS_mode_set:fingerprint
does not match
at org.apache.tomcat.jni.SSL.fipsModeSet(Native Method)
at
org.apache.catalina.core.AprLifecycleListener.initializeSSL(AprLifecycleListener.java:329)
at
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:137)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99)
at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
Jan 28, 2015 5:02:33 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
SEVERE: Failed to enter FIPS mode
java.lang.Error: Failed to enter FIPS mode
at
org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:146)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at
org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99)
at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
*Steps I followed to configure: *
Added the following in server.xml
<Server port="8006" shutdown="SHUTDOWN">
<!-- Comment these entries out to disable JMX MBeans support used for the
administration web application -->
<Listener className="org.apache.catalina.core.AprLifecycleListener"
SSLEngine="on" FIPSMode="on"/>
--------------------------------------------------------------------------------------------------
1.) Installing tomcat apr:
Download from http://apache.mirror.anlx.net/apr/apr-1.5.1.tar.gz
tar zxvf apr-1.5.1.tar.gz
rm apr-1.5.1.tar.gz
cd apr-1.5.1 *
sudo ./configure
sudo make
sudo make install
export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/local/apr/lib'
2.) Installing tomcat tomcat-native:
Download
http://apache.bytenet.in/tomcat/tomcat-connectors/native/1.1.32/source/tomcat-native-1.1.32-src.tar.gz
tar zxvf tomcat-native-1.1.32-src.tar.gz
rm tomcat-native-1.1.32-src.tar.gz
cd tomcat-native-1.1.32-src/jni/native
JAVA_HOME=/usr/lib/jvm/<JAVA_HOME>
sudo ./configure --with-apr=/usr/local/apr --with-java-home=$JAVA_HOME
sudo make
sudo make install
3.) Adding the following line
CATALINA_OPTS="$CATALINA_OPTS
-Djava.library.path=/usr/local/apr/lib"
4.) Restarting Tomcat
Pl
PlPlease help me resolve this issue and please let me know if i missed any
step.
Regards,
Geet Chandra Singha
Re: FIPS Mode enabling on Tomcat 7.00.057
Posted by Geett Chanddra Singha <ge...@gmail.com>.
Thanks Chris!
I am able to resolve the issue.
On Fri, Jan 30, 2015 at 10:09 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Geet,
>
> On 1/30/15 1:22 AM, Geett Chanddra Singha wrote:
> > Steps followed to build FIPS
> >
> > tar zxf openssl-1.0.1l.tar.gz
> >
> > cd openssl-1.0.1l
> >
> > ./config --prefix=/usr/local
> > --with-fipsdir=/usr/local/ssl/fips-2.0
> >
> > make
> >
> > make install
> >
> > Note: I have installed the FIPS module in /usr/local/ssl/fips-2.0
>
> You have to do "./config fips --with--fipsdir=[...]". You are missing
> the "fips" argument to "config".
>
> After I did the "config", it told me that I needed to first "make
> depend". Then I did a regular "make" and got a FIPS-capable module (as
> tested by doing:
>
> $ cd test
> $ sh ./testfipsssl
>
> (Note that this test fails part way through because it's missing some
> kind of fake certificate... it looks like a problem with the test itself).
>
> I ran the test without building with FIPS and it died right away, so
> I'm confident I ended up with a FIPS-capable module:
>
> $ sh ./testfipsssl
> WARNING: can't open config file: /usr/local/ssl/openssl.cnf
> test ssl3 is forbidden in FIPS mode
> *** IN FIPS MODE ***
> Available compression methods:
> NONE
> 140652183557800:error:140A9129:SSL routines:SSL_CTX_new:only tls
> allowed in fips mode:ssl_lib.c:1715:
> 140652183557800:error:140A9129:SSL routines:SSL_CTX_new:only tls
> allowed in fips mode:ssl_lib.c:1715:
> test ssl2 is forbidden in FIPS mode
> *** IN FIPS MODE ***
> Available compression methods:
> NONE
> 139882949523112:error:140A9129:SSL routines:SSL_CTX_new:only tls
> allowed in fips mode:ssl_lib.c:1715:
> 139882949523112:error:140A9129:SSL routines:SSL_CTX_new:only tls
> allowed in fips mode:ssl_lib.c:1715:
> test tls1
> *** IN FIPS MODE ***
> Available compression methods:
> NONE
> TLSv1, cipher TLSv1/SSLv3 AES256-SHA, 2048 bit RSA
> 1 handshakes of 256 bytes done
> test tls1 with server authentication
> *** IN FIPS MODE ***
> Available compression methods:
> NONE
> server authentication
> depth=0 error=20 /C=UK/O=OpenSSL Group/OU=FOR TESTING PURPOSES
> ONLY/CN=Test Server Cert
> Error string: unable to get local issuer certificate
> ERROR in CLIENT
> 140515612989096:error:14090086:SSL
> routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
> failed:s3_clnt.c:1162:
> TLSv1, cipher (NONE) (NONE)
> 1 handshakes of 256 bytes done
>
> $ cd ..
> $ ./apps/openssl version
> WARNING: can't open config file: /usr/local/ssl/openssl.cnf
> OpenSSL 1.0.1l-fips 15 Jan 2015
>
> (Man... OpenSSL really is a big ball of crap: you have to be in the
> exact right directory for everything to work. It's amazing that these
> guys don't fix stuff like that. I like scripting everything, and
> having to do a "cd" in a script usually means that it's going to be
> hard to do things properly.)
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJUy7PaAAoJEBzwKT+lPKRYAqcQAI+So5gWQYfh166f1V30jrR4
> IqWHGvwxUYjIRPeuwu6V0tTVgAkwcspRiMapLWOIpSojrr+9jysj2N85EOVSpg+r
> yIkc7dJmDgvaQ025u6bhnCby8YwupVmoyQKuiR4CzQb+ZjZIaDgp0l4XEyP/DxTy
> UDD/CnXvJE/Fgp6lwnOcLygOYuPwGq0cDMcJEW5RT9TMfp8T0yLgOoC8NOuYp4q5
> Buywt9adAjNYZR1xREIKgRzEXEalFuI2dA4XyIV55Pye00dsAufsBj/uLhv4xAva
> XU3qbHnHSnycfiipGjW60ZM0zJqLtszx3Q26luElCbv9QqOAyf68+QV4cYVhI2rY
> 6SefnQZ2mCQKDs15+aYyB093zveQxKLkVIHyYsbHLpe0oPBUp0f8cy5UVRZnmtE+
> H8IXxG3jaz6mG15DYF6IXyg/GVlHMS+RQdoD2c0sNN+WtY0g+7kbcNLcrjwvsei0
> nKm6lnWXDUT4u8ggp5h+XDSbf1RzyxMyl6B9EwFW39rgmOnTtYIJjW7N8TxvcxvI
> 5LBEUJUcVSi2kb3tiWNHdcEeT5cnk8Woy3Tyoi+OrdcDoawz7x8o8sroXHgXogxN
> Zm5k6gAB+4xCv8LUVnkRV2qu+MBk6hmX5vEOp8NYf0xKzEuOhYGyxSL4b/5U+6c2
> bbYfRCbqLI/ySkifw55o
> =o/7E
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Thanks & Regards
Geett Chanddra Singha
Re: FIPS Mode enabling on Tomcat 7.00.057
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Geet,
On 1/30/15 1:22 AM, Geett Chanddra Singha wrote:
> Steps followed to build FIPS
>
> tar zxf openssl-1.0.1l.tar.gz
>
> cd openssl-1.0.1l
>
> ./config --prefix=/usr/local
> --with-fipsdir=/usr/local/ssl/fips-2.0
>
> make
>
> make install
>
> Note: I have installed the FIPS module in /usr/local/ssl/fips-2.0
You have to do "./config fips --with--fipsdir=[...]". You are missing
the "fips" argument to "config".
After I did the "config", it told me that I needed to first "make
depend". Then I did a regular "make" and got a FIPS-capable module (as
tested by doing:
$ cd test
$ sh ./testfipsssl
(Note that this test fails part way through because it's missing some
kind of fake certificate... it looks like a problem with the test itself).
I ran the test without building with FIPS and it died right away, so
I'm confident I ended up with a FIPS-capable module:
$ sh ./testfipsssl
WARNING: can't open config file: /usr/local/ssl/openssl.cnf
test ssl3 is forbidden in FIPS mode
*** IN FIPS MODE ***
Available compression methods:
NONE
140652183557800:error:140A9129:SSL routines:SSL_CTX_new:only tls
allowed in fips mode:ssl_lib.c:1715:
140652183557800:error:140A9129:SSL routines:SSL_CTX_new:only tls
allowed in fips mode:ssl_lib.c:1715:
test ssl2 is forbidden in FIPS mode
*** IN FIPS MODE ***
Available compression methods:
NONE
139882949523112:error:140A9129:SSL routines:SSL_CTX_new:only tls
allowed in fips mode:ssl_lib.c:1715:
139882949523112:error:140A9129:SSL routines:SSL_CTX_new:only tls
allowed in fips mode:ssl_lib.c:1715:
test tls1
*** IN FIPS MODE ***
Available compression methods:
NONE
TLSv1, cipher TLSv1/SSLv3 AES256-SHA, 2048 bit RSA
1 handshakes of 256 bytes done
test tls1 with server authentication
*** IN FIPS MODE ***
Available compression methods:
NONE
server authentication
depth=0 error=20 /C=UK/O=OpenSSL Group/OU=FOR TESTING PURPOSES
ONLY/CN=Test Server Cert
Error string: unable to get local issuer certificate
ERROR in CLIENT
140515612989096:error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
failed:s3_clnt.c:1162:
TLSv1, cipher (NONE) (NONE)
1 handshakes of 256 bytes done
$ cd ..
$ ./apps/openssl version
WARNING: can't open config file: /usr/local/ssl/openssl.cnf
OpenSSL 1.0.1l-fips 15 Jan 2015
(Man... OpenSSL really is a big ball of crap: you have to be in the
exact right directory for everything to work. It's amazing that these
guys don't fix stuff like that. I like scripting everything, and
having to do a "cd" in a script usually means that it's going to be
hard to do things properly.)
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
iQIcBAEBCAAGBQJUy7PaAAoJEBzwKT+lPKRYAqcQAI+So5gWQYfh166f1V30jrR4
IqWHGvwxUYjIRPeuwu6V0tTVgAkwcspRiMapLWOIpSojrr+9jysj2N85EOVSpg+r
yIkc7dJmDgvaQ025u6bhnCby8YwupVmoyQKuiR4CzQb+ZjZIaDgp0l4XEyP/DxTy
UDD/CnXvJE/Fgp6lwnOcLygOYuPwGq0cDMcJEW5RT9TMfp8T0yLgOoC8NOuYp4q5
Buywt9adAjNYZR1xREIKgRzEXEalFuI2dA4XyIV55Pye00dsAufsBj/uLhv4xAva
XU3qbHnHSnycfiipGjW60ZM0zJqLtszx3Q26luElCbv9QqOAyf68+QV4cYVhI2rY
6SefnQZ2mCQKDs15+aYyB093zveQxKLkVIHyYsbHLpe0oPBUp0f8cy5UVRZnmtE+
H8IXxG3jaz6mG15DYF6IXyg/GVlHMS+RQdoD2c0sNN+WtY0g+7kbcNLcrjwvsei0
nKm6lnWXDUT4u8ggp5h+XDSbf1RzyxMyl6B9EwFW39rgmOnTtYIJjW7N8TxvcxvI
5LBEUJUcVSi2kb3tiWNHdcEeT5cnk8Woy3Tyoi+OrdcDoawz7x8o8sroXHgXogxN
Zm5k6gAB+4xCv8LUVnkRV2qu+MBk6hmX5vEOp8NYf0xKzEuOhYGyxSL4b/5U+6c2
bbYfRCbqLI/ySkifw55o
=o/7E
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: FIPS Mode enabling on Tomcat 7.00.057
Posted by Geett Chanddra Singha <ge...@gmail.com>.
Thanks Chris!
Please find the inline comments from my side
On 1/29/15 12:45 AM, Geett Chanddra Singha wrote:
> I'm getting the following error when enabling FIPS mode on Apache
> Tomcat:
>
> Jan 28, 2015 5:02:33 PM
> org.apache.catalina.core.AprLifecycleListener lifecycleEvent
>
> SEVERE: Failed to initialize the SSLEngine.
>
> java.lang.Exception: error:2D06C06E:FIPS
> routines:FIPS_mode_set:fingerprint does not match
>
> at org.apache.tomcat.jni.SSL.fipsModeSet(Native Method)
Chris : Looks like your fingerprint doesn't match.
Geet: Could you please explain the meaning of the "FIPS_mode_set:fingerprint
does not match".It will be helpful for me as I am trying for FIPS mode
configuration for the first time.
> *Steps I followed to configure: *
>
> Added the following in server.xml
>
> <Server port="8006" shutdown="SHUTDOWN">
>
>
> <!-- Comment these entries out to disable JMX MBeans support used
> for the
>
> administration web application -->
>
> <Listener
> className="org.apache.catalina.core.AprLifecycleListener"
> SSLEngine="on" FIPSMode="on"/>
>
--------------------------------------------------------------------------------------------------
>
> 1.) Installing tomcat apr:
>
> Download from http://apache.mirror.anlx.net/apr/apr-1.5.1.tar.gz
Chris :What UNIX are you running? Are you sure you have to build this all
yourself?
Geett: I am trying on Linux RHEL.6.0_x64.
Yes, I got the steps from internet.
> tar zxvf apr-1.5.1.tar.gz
>
> rm apr-1.5.1.tar.gz
>
> cd apr-1.5.1 *
>
> sudo ./configure
>
> sudo make
>
> sudo make install
Chris: Why did you build this as root?
Geett: I am trying on Linux RHEL.6.0_x64 test machine.
> export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/local/apr/lib'
>
> 2.) Installing tomcat tomcat-native:
>
> Download
>
>
http://apache.bytenet.in/tomcat/tomcat-connectors/native/1.1.32/source/tomcat-native-1.1.32-src.tar.gz
>
> tar zxvf tomcat-native-1.1.32-src.tar.gz
>
> rm tomcat-native-1.1.32-src.tar.gz
>
> cd tomcat-native-1.1.32-src/jni/native
>
> JAVA_HOME=/usr/lib/jvm/<JAVA_HOME>
>
> sudo ./configure --with-apr=/usr/local/apr
> --with-java-home=$JAVA_HOME
>
> sudo make
>
> sudo make install
>
>
>
> 3.) Adding the following line
>
> CATALINA_OPTS="$CATALINA_OPTS
> -Djava.library.path=/usr/local/apr/lib"
>
> 4.) Restarting Tomcat
>
> Pl
>
> Please help me resolve this issue and please let me know if i
> missed any step.
Chris: I didn't see the part where your built OpenSSL with FIPS. Did you do
that?
Geett:
Steps followed to build FIPS
tar zxf openssl-1.0.1l.tar.gz
cd openssl-1.0.1l
./config --prefix=/usr/local --with-fipsdir=/usr/local/ssl/fips-2.0
make
make install
Note: I have installed the FIPS module in /usr/local/ssl/fips-2.0
Please suggest me to resolve the issue.
Regards,
Geett Chanddra Singha
On Thu, Jan 29, 2015 at 8:59 PM, Christopher Schultz <
chris@christopherschultz.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Geett,
>
> On 1/29/15 12:45 AM, Geett Chanddra Singha wrote:
> > I'm getting the following error when enabling FIPS mode on Apache
> > Tomcat:
> >
> > Jan 28, 2015 5:02:33 PM
> > org.apache.catalina.core.AprLifecycleListener lifecycleEvent
> >
> > SEVERE: Failed to initialize the SSLEngine.
> >
> > java.lang.Exception: error:2D06C06E:FIPS
> > routines:FIPS_mode_set:fingerprint does not match
> >
> > at org.apache.tomcat.jni.SSL.fipsModeSet(Native Method)
>
> Looks like your fingerprint doesn't match.
>
> > *Steps I followed to configure: *
> >
> > Added the following in server.xml
> >
> > <Server port="8006" shutdown="SHUTDOWN">
> >
> >
> > <!-- Comment these entries out to disable JMX MBeans support used
> > for the
> >
> > administration web application -->
> >
> > <Listener
> > className="org.apache.catalina.core.AprLifecycleListener"
> > SSLEngine="on" FIPSMode="on"/>
> >
> --------------------------------------------------------------------------------------------------
> >
> > 1.) Installing tomcat apr:
> >
> > Download from http://apache.mirror.anlx.net/apr/apr-1.5.1.tar.gz
>
> What UNIX are you running? Are you sure you have to build this all
> yourself?
>
> > tar zxvf apr-1.5.1.tar.gz
> >
> > rm apr-1.5.1.tar.gz
> >
> > cd apr-1.5.1 *
> >
> > sudo ./configure
> >
> > sudo make
> >
> > sudo make install
>
> Why did you build this as root?
>
> > export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/local/apr/lib'
> >
> > 2.) Installing tomcat tomcat-native:
> >
> > Download
> >
> >
> http://apache.bytenet.in/tomcat/tomcat-connectors/native/1.1.32/source/tomcat-native-1.1.32-src.tar.gz
> >
> > tar zxvf tomcat-native-1.1.32-src.tar.gz
> >
> > rm tomcat-native-1.1.32-src.tar.gz
> >
> > cd tomcat-native-1.1.32-src/jni/native
> >
> > JAVA_HOME=/usr/lib/jvm/<JAVA_HOME>
> >
> > sudo ./configure --with-apr=/usr/local/apr
> > --with-java-home=$JAVA_HOME
> >
> > sudo make
> >
> > sudo make install
> >
> >
> >
> > 3.) Adding the following line
> >
> > CATALINA_OPTS="$CATALINA_OPTS
> > -Djava.library.path=/usr/local/apr/lib"
> >
> > 4.) Restarting Tomcat
> >
> > Pl
> >
> > Please help me resolve this issue and please let me know if i
> > missed any step.
>
> I didn't see the part where your built OpenSSL with FIPS. Did you do that?
>
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1
> Comment: GPGTools - http://gpgtools.org
>
> iQIcBAEBCAAGBQJUylHjAAoJEBzwKT+lPKRYBacP/2NTeUf4/ozIkSirUPPmDgz+
> hbxyoG8HbMwllLqyO4tjD9+7/iX2VxDwALZIOaU3/x1XitXdheXHeaXubFAqVePH
> TOmG7zoUHZ+wvJwXz5DztpV7GrpK2j3TgaKGPMS8Rjf6hSEgUdNg1Oc7Uqac0TlX
> OwRjEwb8ARAY3OXqZ2IkQsXqJ20qfEwc+7q0/VY+Y3ll4ixKQkQkqFnRi2WU3C4S
> ZGSCPwVIczjC9rM3CsPAXtqXVjAOO18ZJ+6fpHXL4hocWrdjpeuUF/1soVgL+rEC
> 86SwpZ+KNb+BapdbNIkmWCIVqlJGsTlRP0Xi9DGSJ9L9CqS2gCrLr00aAhM+9IaX
> BUbmB7FZZjs299ByU3LDd/HlUiWlyfvb8mPzsLN4fBfWWICpqV5NoUgV/tgLn4l+
> UXBbRiL0pYv2HJTvswNTxBrmNdwiJhf7Iy/F9Dvxp479Tr1UVRV07NsHCSt7MGeg
> AXcyK0GskJd5BZDq1KUYLhugsuTVj8HJ0YMVrzd4/DJEpgpL0JWdUcedYj6Jw9mU
> UWrx4wUz2plUd6E1AURnVTIxoxh4Mm40DuhR+Vj10amRClisMe4CuIrRDs0LvGE7
> OKE0oQk9NW90b2dl2nF61uZHyX00ramVI+7MVv6/L7EoEJ+Hmyq2mAZEJKO4zuXR
> lHlurY8fg3E/hsDM6+gI
> =hB4i
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
--
Thanks & Regards
Geett Chanddra Singha
Re: FIPS Mode enabling on Tomcat 7.00.057
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Geett,
On 1/29/15 12:45 AM, Geett Chanddra Singha wrote:
> I'm getting the following error when enabling FIPS mode on Apache
> Tomcat:
>
> Jan 28, 2015 5:02:33 PM
> org.apache.catalina.core.AprLifecycleListener lifecycleEvent
>
> SEVERE: Failed to initialize the SSLEngine.
>
> java.lang.Exception: error:2D06C06E:FIPS
> routines:FIPS_mode_set:fingerprint does not match
>
> at org.apache.tomcat.jni.SSL.fipsModeSet(Native Method)
Looks like your fingerprint doesn't match.
> *Steps I followed to configure: *
>
> Added the following in server.xml
>
> <Server port="8006" shutdown="SHUTDOWN">
>
>
> <!-- Comment these entries out to disable JMX MBeans support used
> for the
>
> administration web application -->
>
> <Listener
> className="org.apache.catalina.core.AprLifecycleListener"
> SSLEngine="on" FIPSMode="on"/>
> --------------------------------------------------------------------------------------------------
>
> 1.) Installing tomcat apr:
>
> Download from http://apache.mirror.anlx.net/apr/apr-1.5.1.tar.gz
What UNIX are you running? Are you sure you have to build this all
yourself?
> tar zxvf apr-1.5.1.tar.gz
>
> rm apr-1.5.1.tar.gz
>
> cd apr-1.5.1 *
>
> sudo ./configure
>
> sudo make
>
> sudo make install
Why did you build this as root?
> export LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/local/apr/lib'
>
> 2.) Installing tomcat tomcat-native:
>
> Download
>
> http://apache.bytenet.in/tomcat/tomcat-connectors/native/1.1.32/source/tomcat-native-1.1.32-src.tar.gz
>
> tar zxvf tomcat-native-1.1.32-src.tar.gz
>
> rm tomcat-native-1.1.32-src.tar.gz
>
> cd tomcat-native-1.1.32-src/jni/native
>
> JAVA_HOME=/usr/lib/jvm/<JAVA_HOME>
>
> sudo ./configure --with-apr=/usr/local/apr
> --with-java-home=$JAVA_HOME
>
> sudo make
>
> sudo make install
>
>
>
> 3.) Adding the following line
>
> CATALINA_OPTS="$CATALINA_OPTS
> -Djava.library.path=/usr/local/apr/lib"
>
> 4.) Restarting Tomcat
>
> Pl
>
> Please help me resolve this issue and please let me know if i
> missed any step.
I didn't see the part where your built OpenSSL with FIPS. Did you do that?
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
iQIcBAEBCAAGBQJUylHjAAoJEBzwKT+lPKRYBacP/2NTeUf4/ozIkSirUPPmDgz+
hbxyoG8HbMwllLqyO4tjD9+7/iX2VxDwALZIOaU3/x1XitXdheXHeaXubFAqVePH
TOmG7zoUHZ+wvJwXz5DztpV7GrpK2j3TgaKGPMS8Rjf6hSEgUdNg1Oc7Uqac0TlX
OwRjEwb8ARAY3OXqZ2IkQsXqJ20qfEwc+7q0/VY+Y3ll4ixKQkQkqFnRi2WU3C4S
ZGSCPwVIczjC9rM3CsPAXtqXVjAOO18ZJ+6fpHXL4hocWrdjpeuUF/1soVgL+rEC
86SwpZ+KNb+BapdbNIkmWCIVqlJGsTlRP0Xi9DGSJ9L9CqS2gCrLr00aAhM+9IaX
BUbmB7FZZjs299ByU3LDd/HlUiWlyfvb8mPzsLN4fBfWWICpqV5NoUgV/tgLn4l+
UXBbRiL0pYv2HJTvswNTxBrmNdwiJhf7Iy/F9Dvxp479Tr1UVRV07NsHCSt7MGeg
AXcyK0GskJd5BZDq1KUYLhugsuTVj8HJ0YMVrzd4/DJEpgpL0JWdUcedYj6Jw9mU
UWrx4wUz2plUd6E1AURnVTIxoxh4Mm40DuhR+Vj10amRClisMe4CuIrRDs0LvGE7
OKE0oQk9NW90b2dl2nF61uZHyX00ramVI+7MVv6/L7EoEJ+Hmyq2mAZEJKO4zuXR
lHlurY8fg3E/hsDM6+gI
=hB4i
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org