OCSP request failing

2011-02-28 Thread pradeepreddy
Hi , I have coded ocsp client with openssl.But when I verify openssl ocsp utility, it is throwing below error: openssl ocsp -reqin ocspreq.der -text Error reading OCSP request 3078063752:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:1319:

fips_premain.c compilation issue with g++

2011-02-28 Thread raghib nasri
Hi, I have installed fips object module 1.2.2 with compatible standard openssl library version 0.9.8r, supposed to be the latest FIPS capable installation. I have written a simple application for fips mode verification. Its working fine when compiling with gcc but i need to use g++ with

RSA Private Key Format Different in FIPS Mode

2011-02-28 Thread Yolanda Liu (liuyu)
Hi, I manually ran openssl genrsa -out key.rsa 2048 in FIPS on and off mode, the generated private keys are in different format. In FIPS off mode: -BEGIN RSA PRIVATE KEY- MIIEpAIBAAKCAQEAwhVeHVTVFcrWJn6d8WJWgQ49lETK7a7rPS8nCxgOHJWmT3bV in FIPS on mode, the rsa key is in the

Re: RSA Private Key Format Different in FIPS Mode

2011-02-28 Thread Dr. Stephen Henson
On Mon, Feb 28, 2011, Yolanda Liu (liuyu) wrote: Hi, I manually ran openssl genrsa -out key.rsa 2048 in FIPS on and off mode, the generated private keys are in different format. In FIPS off mode: -BEGIN RSA PRIVATE KEY-

Base64 Encoding and Decoding error

2011-02-28 Thread Vinay Kumar L
Hi All, I am doing Base64 encoding and decoding of a string testencoding using OpenSSL api *BIO_f_base64, *but when Base64 encoding is done for the same string using OpenSSL command *base64,* the last byte of encoded data will be different than the one generated using *BIO_f_base64 *api.

Re: Base64 Encoding and Decoding error

2011-02-28 Thread Jan Steffens
On Tue, Mar 1, 2011 at 7:00 AM, Vinay Kumar L vinaykuma...@globaledgesoft.com wrote: Encoding of string testencoding using base64 command: #base64 data.txt encode.txt     data.txt - It contains only the string testencoding     encode.txt - It contains encoded data #cat encode.txt