Are you using fipslink.pl to statically link FIPS module to your
application/dll? If not, I believe you need to use it to comply to
OpenSSL FIPS security policy.
> Thanks,
> Rajesh.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org
Hi All,
i am very new to OpenSSL build ...
I have build the static build of FIPS Capable OpenSSL as mentioned in user guide 1.2.
I have used following commands on VS2005 Command Prompt...
Build FIPS Module : ms\do_fips no-asm
Set Confiugration : perl Configure VC-WIN32 --with-fipslibdir="..\openssl-0.9.8l\out32dll"
For not using Assembler : ms\do_ms
Static Build : nmake -f ms\nt.mak InstallStatic
All this seems to work but the issue is that when i link libeay32.lib and ssleay32.lib in application and when i am calling FIPS_mode_set() function to set/reset FIPS Mode.
I am seeing following link error ...
error LNK2019: unresolved external symbol _FIPS_mode referenced in function
Can some one please let me know if i am missing anything...
when i am looking at the do_fips.bat file; it internally calls ntdll.mak - i am not sure if fips module is always creating Dynamic mode where as my application links them static...quick reply would be really helpful ....
Thanks,Rajesh.
> Hi All,
>
> i am very new to OpenSSL build ...
>
> I have build the static build of FIPS Capable OpenSSL as mentioned in user
> guide 1.2.
>
> I have used following commands on VS2005 Command Prompt...
>
> *Build FIPS Module : ms\do_fips no-asm*
> *
> *
> *Set Confiugration : perl Configure VC-WIN32
> --with-fipslibdir="..\openssl-0.9.8l\out32dll"*
> *
That looks like you aren't linking to the validated module: you *must* use the
1.2 sources to build the module and link against that or the result is not
FIPS 140-2 compliant.
Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
> I had a problem after building as well, I built the fips-mode (version 1.2)
> of openssl on LInux via running "./config fipscanisterbuild" and then
> "make", this builds fine, and "make test" works, only fipscanister.o
> doesn't have the strings that fipsld expects, when I run "strings
> fipscanister.o | fgrep HMAC" all I see is "HMAC: digest not allowed in FIPS
> mode". The other strings I got before with fips openssl 1.1 which have the
> hash values (e.g. "HMAC-SHA1(fips_premain.c)=
> 6a08d15c578f1258246181bf52134ae974aa5a80") are not present. This causes
> fipsld to fail, any suggestions appreciated.
>
Looks like you are using the old (1.1) version of fipsld: you need the 1.2
version.
>
> Are you using fipslink.pl to statically link FIPS module to your
> application/dll? If not, I believe you need to use it to comply to
> OpenSSL FIPS security policy.
>
You don't need to use fipslink.pl or fipsld but if you don't you have to
provide equivalent functionality in your own linker script.
Hi All,i am very new to OpenSSL build ...I have build the static build of FIPS Capable OpenSSL as mentioned in user guide 1.2.I have used following commands on VS2005 Command Prompt...
Build FIPS Module : ms\do_fips no-asm
Set Confiugration : perl Configure VC-WIN32 --with-fipslibdir="..\openssl-0.9.8l\out32dll"
For not using Assembler : ms\do_msStatic Build : nmake -f ms\nt.mak InstallStaticAll this seems to work but the issue is that when i link libeay32.lib and ssleay32.lib in application and when i am calling FIPS_mode_set() function to set/reset FIPS Mode.I am seeing following link error ...error LNK2019: unresolved external symbol _FIPS_mode referenced in functionCan some one please let me know if i am missing anything...when i am looking at the do_fips.bat file; it internally calls ntdll.mak - i am not sure if fips module is always creating Dynamic mode where as my application links them static...quick reply would be really helpful ....Thanks,Rajesh.
Please do not print this email unless it is absolutely necessary.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
Right. Wondering if anyone has tried this with VS 2008. Is this
documented anywhere else except for UserGuide? I have an application
working fine with dynamically linked libeay32.dll and might want to
try out static linking.
On Tue, Oct 12, 2010, rajesh kumar wrote:
> Hi All,
>
> i am very new to OpenSSL build ...
>
> I have build the static build of FIPS Capable OpenSSL as mentioned in user
> guide 1.2.
>
> I have used following commands on VS2005 Command Prompt...
>
> *Build FIPS Module : ms\do_fips no-asm*
> *
> *
> *Set Confiugration : perl Configure VC-WIN32
> --with-fipslibdir="..\openssl-0.9.8l\out32dll"*
> *
That looks like you aren't linking to the validated module: you *must* use the
1.2 sources to build the module and link against that or the result is not
FIPS 140-2 compliant.
Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
> Steve,
>
> I have made changes in nt.mak file to not pass -DZLIB option in cFlags and
> now i am able to compile and build static build of OpenSSL.
>
> Now i face the same issue as mentioned earlier -- "error LNK2019: unresolved
> external symbol _FIPS_mode_set referenced in function"
>
> In detail this is what i have done...
>
> - I have following Folder structure; Source is downloaded from OpenSSL.org
>
> OpenSSL Version 0.9.8.o - C:\OPENSSL_BUILD\openssl-0.9.8o
> FIPS Module Version 1.2 - C:\OPENSSL_BUILD\openssl-fips-1.2
>
> - I have done following steps to build OpenSSL as mentioned in User Guide
>
> >From VS 2005 Command Window
>
> - cd C:\OPENSSL_BUILD\openssl-fips-1.2
> - ms\do_fips no-asm - this is to build FIPS Module
> - cd C:\OPENSSL_BUILD\openssl-0.9.8o
> - perl Configure VC-WIN32
> --with-fipslibdir="C:\OPENSSL_BUILD\openssl-fips-1.2\out32dll"
> - nmake -f ms\nt.mak - to build static OpenSSL
>
> can some one please let me know if i am missing anything..
>
The user guide says you should do:
perl Configure VC-WIN32 fips --with-fipslibdir=c:\fips\path