linux - openssl erro after machine restart decryption failed or bad record mac -


using openssl 0.9.8 in c++ application .

things working fine , following errors encountered. no change in code, certificate or in peer application done.

error:1408f119:ssl routines:ssl3_get_record:decryption failed or bad record mac:s3_pkt.c:426: error:1408f10b:ssl routines:ssl3_get_record:wrong version number:s3_pkt.c:288: error:1408f096:ssl routines:ssl3_get_record:encrypted length long:s3_pkt.c:346:  m/c details:linux awtah.dispatchserver1 3.6.11-1.fc16.i686 #1 smp mon dec 17 21:36:23 utc 2012 i686 i686 i386 gnu/linux 

these error random. though application uses it’s own opnesssl 0.9.8 , m/c have 1.0.0j-fips.

-bash-4.2# openssl version -a openssl 1.0.0j-fips 10 may 2012 built on: tue may 15 18:44:01 utc 2012 platform: linux-elf options:  bn(64,32) md2(int) rc4(8x,mmx) des(ptr,risc1,16,long) blowfish(idx) compiler: gcc -fpic -dopenssl_pic -dzlib -dopenssl_threads -d_reentrant -ddso_dlfcn -dhave_dlfcn_h -dkrb5_mit -dl_endian -dtermio -wall -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4  -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -wa,--noexecstack -dopenssl_bn_asm_part_words -dopenssl_ia32_sse2 -dopenssl_bn_asm_mont -dsha1_asm -dsha256_asm -dsha512_asm -dmd5_asm -drmd160_asm -daes_asm -dwhirlpool_asm openssldir: "/etc/pki/tls" engines:  aesni dynamic 

on reinstalling 1.0.0j-fips on machine error got fixed.

now same application on fedora 14, after reboot have encountered above problem.

linux 3upcawt605 2.6.35.6-45.fc14.i686 #1 smp mon oct 18 23:56:17 utc 2010 i686 i686 i386 gnu/linux 

any pointer root cause of problem or how fix this. open ssl installed on second m/c

built on: wed sep  7 18:59:14 utc 2011 platform: linux-elf options:  bn(64,32) md2(int) rc4(8x,mmx) des(ptr,risc1,16,long) blowfish(idx) compiler: gcc -fpic -dopenssl_pic -dzlib -dopenssl_threads -d_reentrant -ddso_dlfcn -dhave_dlfcn_h -dkrb5_mit -dl_endian -dtermio -wall -o2 -g -pipe -wall -wp,-d_fortify_source=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -wa,--noexecstack -dopenssl_bn_asm_part_words -dopenssl_ia32_sse2 -dopenssl_bn_asm_mont -dsha1_asm -dsha256_asm -dsha512_asm -dmd5_asm -drmd160_asm -daes_asm -dwhirlpool_asm openssldir: "/etc/pki/tls" engines:  aesni dynamic 

the cbc padding check seems failing.that can triggered elements changing data in network,or library expecting , got else.for multi-threading environments callbacks of lock should registered openssl library.

for instance library behavior ,in cant except re-creating ssl context , starting beginning on error.

some machines support instruction sets accelerating library encryption/decryption,you may want disable instructions exporting openssl environment variables.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

c++ - End of file on pipe magic during open -