If you're using a Java program, you should also be using the Java
keystore, which has an integrated PKCS12 parser.

However, it's possible you may need to use an OpenSSL 0.9.8k instance
to work with it.  (The error message states that it's expecting a
PKCS12 header, but the file that you passed on the command line
doesn't have one.  This can be caused by the PKCS12 file having been
PEM-encoded; you can use '-inform PEM' if this is the case.)

-Kyle H

On Tue, Jun 16, 2009 at 10:38 PM, Hanu Kiran N<kiran...@gmail.com> wrote:
>
> Hi,
>
> Im  using openssl 0.9.7a in  Redhat  RHEL4 and using this command in my java
> program.. which throws the following ERROR>3460.
>
> I have tried with other previous versions of openssl like 0.9.6c/0.9.6b ,
> but resulted in same ERROR>3460.
>
> We are trying to install CA & RA applications in Redhat using openssl . Plz
> provide us the solution  ASAP.
>
>
> ---------------------------------------------------------------
>
> /usr/bin/openssl pkcs12 -in /tmp/p12_in33768.tmp -clcerts -nokeys -out
> /tmp/ss_in33769.tmp -passin pass:XXXXXXX
>
> ERROR>3460:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too
> long:asn1_lib.c:140:
>
>
> Regards
> Hanu Kiran N
> Project Executive
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to