Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.bin to .p7b
piposarcade Offline
Haxorware Enthusiast
***

Posts: 74
Threads: 21
Joined: Feb 2011
Reputation: 3
#1
.bin to .p7b
how I can convert a 2 mb.bin file in p7b?

Thanks
(This post was last modified: 30-11-2012, 05:56 PM by piposarcade.)
30-11-2012, 05:47 PM
Find Reply
ABMJR Away
DOCSIS Genius
*****

Posts: 1,516
Threads: 16
Joined: Dec 2009
Reputation: 79
#2
RE: .bin to .p7b
I havent done this in a while..but maybe this..

Quote:To Convert Certificate Formats

To convert certificate formats, use openssl.exe, as follows:

To convert binary-only PKCS7 (.p7 .p7a .p7b .p7c) files as output from Windows Internet Explorer Certificate Manager, with single or multiple certificate content, and generate human readable text content in the output file:

openssl pkcs7 -inform DER -in filename.p7b -text -print_certs -out outfilename.pem

For example:

openssl pkcs7 -inform DER -in IECert.p7b -text -print_certs -out IECert.pem

To convert binary-only PKCS7 files as output from Windows Internet Explorer Certificate Manager, with single or multiple certificate content, and generate only binary content in the output file leave out the “-text” element:


openssl pkcs7 -inform DER -in filename.p7b -text -print_certs -out outfilename.pem

Example:

openssl pkcs7 -inform DER -in IECert.p7b -text -print_certs -out IECert.pem

When handling many certificates in one file you might encounter issues of space being taken for the descriptive text content. In these circumstances you may wish to remove the text content, however this is not recommended for normal use as it make handling of the certificates harder because their content is not immediately viewable.

Some applications do not accept X509v3 certificates when accompanied by a text description within the certificate file. You can overcome this for most applications, by editing the certificate to trim the text sections, but take care to leave intact the lines beginning and terminating the binary certificate data.
To convert PEM to PKCS#12 (to install in a Web browser or for storage):
If your PEM-format certificate and key are both in one file, use:

openssl pkcs12 -export -in pem-cert-and-key-file -out pkcs12-cert-and-key-file

If they are in separate files, use:

openssl pkcs12 -export -in pem-cert-file -inkey pem-key-file -out pkcs12-cert-and-key-file

Both these commands put the certificate and keyfile into one file. If you intend to store your private key and certificate together in this fashion you should apply a pass phrase to the resultant file.

To convert PKCS#12 to PEM:

openssl pkcs12 -in pkcs-12-cert-and-key-file -out pem-cert-and-key-file

To convert ASN.1 PEM files to DER PEM :
If the PEM file contains DSA keys, use:

openssl dsa -inform PEM -outform DER -in pem-file -out der-file

If it contains RSA Keys, use:

openssl rsa -inform PEM -outform DER -in pem-file -out der-file

To convert DER (.cer in most implementations) to PEM:
If the DER file contains DSA keys, use :

openssl dsa -inform DER -outform PEM -in der-file -out pem-file

If it contains RSA Keys, use:

openssl rsa -inform DER -outform PEM -in der-file -out pem-file

Multiple PEM Format Certificates

Normally there is only one certificate in a file. OpenSSL generally assumes this is the case, so it ignores any after the first when handling server and client certificates.

However, a file can contain multiple PEM and PKCS7 format certificates. This is useful for storing a bundle of the root certificates of the CAs you trust, or a certificate verification chain. To use the certificates, you will need to split the file into one file per certificate.

You can split the file using a text editor, but you must take care to not change the data for each individual certificate. Each certificate takes the following format and is terminated by the END CERTIFICATE line:

optional-header-info
------BEGIN optional-text CERTIFICATE-----
...
------END optional-text CERTIFICATE-----

As long as you do not change or break up the data within the BEGIN and END lines, the certificate itself is complete. A certificate is rendered useless unless it retains its binary composition that was created when it was originally signed.
Knowledge=Power
30-11-2012, 07:16 PM
Find Reply
piposarcade Offline
Haxorware Enthusiast
***

Posts: 74
Threads: 21
Joined: Feb 2011
Reputation: 3
#3
RE: .bin to .p7b
It is possible with this method

http://www.sbhacker.net/forum/topic/3718...mage-file/

and then rename the extention to. P7b ?

30-11-2012, 08:04 PM
Find Reply
ABMJR Away
DOCSIS Genius
*****

Posts: 1,516
Threads: 16
Joined: Dec 2009
Reputation: 79
#4
RE: .bin to .p7b
I forgot that I did that post..yes..
Knowledge=Power
30-11-2012, 09:08 PM
Find Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)