FIPS Module enabling without installing Openssl 3 on Windows
Aima Maqsood <[email protected]>
| Newsgroups | gmane.comp.encryption.openssl.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Guys,
Hope you are doing great, I am writing this to inform you that I have been
facing issues while loading the FIPS provider. I didn't install the *Openssl
3.0.8* on the machine instead, compiled it on *JENKINS Server*.
Commands to compile the OpenSSL 3.0.8 version on JENKINS Server:
@echo Configuring the compilation environment
*perl Configure VC-WIN32 --prefix="%WORKSPACE%\Delivery\x86" enable-fips*
@echo Building FIPS capable OpenSSL DLLs
*nmake*
@echo Running self test
*nmake test*
@echo Copying files to the delivery folder (prefix)
*nmake install*
These files were generated in the respective folders:
*bin *----- libcrypto-3.dll, libcrypto-3.pdb, libssl-3.dll, libssl-3.pdb,
openssl.exe
*html* ----- having all the API
*include *---- openssl ---- All header files
*lib *--- *engines-3* ---- capi.dll, loader-attic.dll, padlock.dll
|----- *ossl-modules* ---fips.dll, legacy.dll, fips.pdb, legacy.pdb
|------libcrypto.lib, libssl.lib
I created a console application, and added the Openssl compiled files in
Project Properties:
1. Added the include/openssl folder in *C/C++ -- General --- Additional
Include Directories*
[image: image.png]
2. Added libraries (lib) folder in *Linker -- General -- Additional Library
Directories*
[image: image.png]
3. Write down the libraries name in *Linker --- Input ---- Additional
Dependencies*:
[image: image.png]
Then manually created a folder of OpenSSL in C:\Program Files (x86), and
created further two folders:
*config* -- have 2 files ---- * fipsmodule.cnf, openssl.cnf*
*ossl-modules* ---- have dll files as ------* fips.dll, fips.pdb,
legacy.dll, legacy.pdb *
Then created the System Environment Variables and refer these path in it:
[image: image.png]
I created the fipsmodule.cnf file after running the openssl.exe on command
prompt using this command:
openssl fipsinstall -module "path\to\fips.dll" -out "path\to\fips.cnf"
I am also sharing my openssl.cnf file and fipsmodule.cnf file to check if
there is any mistake or something else?
I am doing this stuff in Windows and Visual Studio.
Please kindly guide me how can I load the FIPS Provider in my Application
without installing OPENSSL on my machine? And at which location or path I
need to keep all these files (dll, .cnf)?
Hope to hear from you soon.
--
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion on the web visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/c24b1550-868f-424f-82ae-125099ed8423n%40openssl.org.
openssl.cnf
(application/octet-stream, 12 KB) - not displayed
fipsmodule.cnf
(application/octet-stream, 351 B) - not displayed