Re: openssl FIPS on linux
this issue has been solved, below are my steps:
1) compile and install openssl0.9.8o
1-1) type "./config fipscanisterbuild"
1-2) type "make"
1-3) type "make install", the openssl with fips will be installed at "usr/local/ssl/fips" as default
2) add "/usr/local/ssl/fips/bin" to the environment variable PATH.
3) modify Makefile to this:
XX = g++
FIPSLD=fipsld
CFLAGS = -I/usr/local/ssl/fips/include
LDFLAGS = -lstdc++ -L/usr/local/ssl/fips/lib -Wl, -Bstatic -lssl -lcrypto -Wl, -Bdynamic -ldl
TARGET = ./test
%.o : %.cpp
$(XX) $(CFLAGS) -c $< -o $@ -g
SOURCES = $(wildcard *.c *.cpp)
OBJS = $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCES)))
$(TARGET) : $(OBJS)
$(FIPSLD) $(OBJS) -o $(TARGET) $(LDFLAGS)
chmod a+x $(TARGET)
clean:
rm $(OBJS)
4) make with "make CC=fipsld FIPSLD_CC=gcc"
That is all, hope it will be helpful.