<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[wolfSSL - Embedded SSL Library — wc_KeyPemToDer to Converts a public key in PEM format to DER format.]]></title>
		<link>https://www.wolfssl.com/forums/topic1950-wckeypemtoder-to-converts-a-public-key-in-pem-format-to-der-format.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1950.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in wc_KeyPemToDer to Converts a public key in PEM format to DER format..]]></description>
		<lastBuildDate>Tue, 27 Dec 2022 17:43:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: wc_KeyPemToDer to Converts a public key in PEM format to DER format.]]></title>
			<link>https://www.wolfssl.com/forums/post6891.html#p6891</link>
			<description><![CDATA[<p>Hi Bassem,</p><p>wc_KeyPemToDer is meant for private keys, you&#039;re getting -162 (ASN_NO_PEM_HEADER) for your public key as it specifically checks for private key headers only.&nbsp; For public keys, you can use wc_PubKeyPemToDer.&nbsp; You can also use wc_PemToDer as a general PEM to DER conversion function.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Tue, 27 Dec 2022 17:43:32 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6891.html#p6891</guid>
		</item>
		<item>
			<title><![CDATA[wc_KeyPemToDer to Converts a public key in PEM format to DER format.]]></title>
			<link>https://www.wolfssl.com/forums/post6890.html#p6890</link>
			<description><![CDATA[<p>Hi, <br />i have a TCP/IP server and clients implemented in C. The server has a database of the authorized clients&#039; public keys, which are stored in pem format. I am using RSA keypairs so that the client signs the data with the private key and the server can verify it using the public key. I used wc_KeyPemToDer to convert the keys to DER format. The function works only for the private key but returns the -162 when applying it to the public key. <br />Do you have any recommendation to convert the public key to DER format. </p><p>Best regards.<br />Bassem Trifa.</p>]]></description>
			<author><![CDATA[null@example.com (bassem.trifa)]]></author>
			<pubDate>Fri, 23 Dec 2022 12:29:23 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6890.html#p6890</guid>
		</item>
	</channel>
</rss>
