Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Extract a public-key from a pem/p7b-Keyfile in PKCS7-format

1,218 views
Skip to first unread message

Jeremy Jackson

unread,
Jul 10, 2001, 5:49:39 PM7/10/01
to

--------------44967A5FAD6E39176C866F62
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Stefan Westner wrote:

> Hello,
>
> is it possible to extract a public key out of a pem/p7b-file and save it as
> p7b?
>

Hmm... I combined a pem cert and pem RSA key with the cat command...
PEM is base64 encoded with a header and footer... just use a text editor
I think.

>
> Thanks
>
> Stefan Westner
>
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> User Support Mailing List openss...@openssl.org
> Automated List Manager majo...@openssl.org

--
Jeremy Jackson
HomeSquared Inc.
Office (760)929-3663
Mobile (619)807-9517

--------------44967A5FAD6E39176C866F62
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Stefan Westner wrote:
<blockquote TYPE=CITE>Hello,
<p>is it possible to extract a public key out of a pem/p7b-file and save
it as
<br>p7b?
<br>&nbsp;</blockquote>
Hmm... I combined a pem cert and pem RSA key with the cat command...
<br>PEM&nbsp;is base64 encoded with a header and footer... just use a text
editor
<br>I think.
<blockquote TYPE=CITE>&nbsp;
<br>Thanks
<p>Stefan Westner
<p>______________________________________________________________________
<br>OpenSSL Project&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://www.openssl.org">http://www.openssl.org</a>
<br>User Support Mailing List&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
openss...@openssl.org
<br>Automated List Manager&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
majo...@openssl.org</blockquote>

<pre>--&nbsp;
Jeremy Jackson
HomeSquared Inc.
Office (760)929-3663
Mobile (619)807-9517</pre>
&nbsp;</html>

--------------44967A5FAD6E39176C866F62--

______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

Stefan Westner

unread,
Jul 11, 2001, 2:21:00 AM7/11/01
to

--------------97203F47B4E59018CEE40DB4

Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Thanks Jeremy

but I don't wanto to use a text editor just an openssl-command which
extracts the key and write it to a file just like IE 5.5 does if you
export a certificate from another person.

Could you help?

Thanks

Stefan Westner

Jeremy Jackson wrote:

> Stefan Westner wrote:
>
>> Hello,
>>
>> is it possible to extract a public key out of a pem/p7b-file and
>> save it as
>> p7b?
>>
>
> Hmm... I combined a pem cert and pem RSA key with the cat command...
> PEM is base64 encoded with a header and footer... just use a text
> editor
> I think.
>
>>
>> Thanks
>>
>> Stefan Westner
>>
>> ______________
>> _______________________________________________________

>> OpenSSL Project
>> http://www.openssl.org
>> User Support Mailing List
>> openss...@openssl.org
>> Automated List Manager
>> majo...@openssl.org
>
> --
> Jeremy Jackson
> HomeSquared Inc.
> Office (760)929-3663
> Mobile (619)807-9517
>
>

--------------97203F47B4E59018CEE40DB4


Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>

Thanks Jeremy
<p>but I don't wanto to use a text editor just an openssl-command which
extracts the key and write it to a file just like IE 5.5 does if you export
a certificate from another person.
<p>Could you help?
<p>Thanks
<p>Stefan Westner
<p>Jeremy Jackson wrote:


<blockquote TYPE=CITE>Stefan Westner wrote:
<blockquote TYPE=CITE>Hello,
<p>is it possible to extract a public key out of a pem/p7b-file and save
it as
<br>p7b?
<br>&nbsp;</blockquote>
Hmm... I combined a pem cert and pem RSA key with the cat command...

<br>PEM is base64 encoded with a header and footer... just use a text editor


<br>I think.
<blockquote TYPE=CITE>&nbsp;
<br>Thanks
<p>Stefan Westner
<p>______________________________________________________________________
<br>OpenSSL Project&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://www.openssl.org">http://www.openssl.org</a>
<br>User Support Mailing List&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
openss...@openssl.org
<br>Automated List Manager&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
majo...@openssl.org</blockquote>

<pre>--&nbsp;
Jeremy Jackson
HomeSquared Inc.
Office (760)929-3663
Mobile (619)807-9517</pre>

&nbsp;</blockquote>
</html>

--------------97203F47B4E59018CEE40DB4--

Jeremy Jackson

unread,
Jul 12, 2001, 2:37:51 PM7/12/01
to

--------------D4077AE9C712966A22AFBB77

Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Stefan Westner wrote:

> Thanks Jeremy
>
> but I don't wanto to use a text editor just an openssl-command which
> extracts the key and write it to a file just like IE 5.5 does if you
> export a certificate from another person.
>
> Could you help?

Sorry I'm a little busy at work... you should at least try using a text
editor to verify my claims... then
if it works you could use sed, awk, perl, or even bash, or any
command-line tool to separate the key part out.

Sorry but I don't have time to actually make a script to do this.

--------------D4077AE9C712966A22AFBB77


Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>

Stefan Westner wrote:
<blockquote TYPE=CITE>Thanks Jeremy


<p>but I don't wanto to use a text editor just an openssl-command which
extracts the key and write it to a file just like IE 5.5 does if you export
a certificate from another person.

<p>Could you help?</blockquote>
Sorry I'm a little busy at work... you should at least try using a text
editor to verify my claims... then
<br>if it works you could use sed, awk, perl, or even bash, or any command-line
tool to separate the key part out.
<p>Sorry but I don't have time to actually make a script to do this.
<blockquote TYPE=CITE>&nbsp;


<p>Thanks
<p>Stefan Westner
<p>Jeremy Jackson wrote:
<blockquote TYPE=CITE>Stefan Westner wrote:
<blockquote TYPE=CITE>Hello,
<p>is it possible to extract a public key out of a pem/p7b-file and save
it as
<br>p7b?
<br>&nbsp;</blockquote>
Hmm... I combined a pem cert and pem RSA key with the cat command...
<br>PEM is base64 encoded with a header and footer... just use a text editor
<br>I think.
<blockquote TYPE=CITE>&nbsp;
<br>Thanks
<p>Stefan Westner
<p>______________________________________________________________________
<br>OpenSSL Project&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="http://www.openssl.org">http://www.openssl.org</a>
<br>User Support Mailing List&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
openss...@openssl.org
<br>Automated List Manager&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
majo...@openssl.org</blockquote>

<pre>--&nbsp;
Jeremy Jackson
HomeSquared Inc.
Office (760)929-3663
Mobile (619)807-9517</pre>
&nbsp;</blockquote>
</blockquote>

<pre>--&nbsp;
Jeremy Jackson
HomeSquared Inc.
Office (760)929-3663
Mobile (619)807-9517</pre>

&nbsp;</html>

--------------D4077AE9C712966A22AFBB77--

0 new messages