<?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 — [SOLVED] How to verify a certificate key pair?]]></title>
		<link>https://www.wolfssl.com/forums/topic1402-solved-how-to-verify-a-certificate-key-pair.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1402.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in [SOLVED] How to verify a certificate key pair?.]]></description>
		<lastBuildDate>Tue, 09 Jul 2019 12:44:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] How to verify a certificate key pair?]]></title>
			<link>https://www.wolfssl.com/forums/post4745.html#p4745</link>
			<description><![CDATA[<p>Alfred,</p><p>My pleasure!</p><p>Cheers,</p><p>KH</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Tue, 09 Jul 2019 12:44:24 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4745.html#p4745</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to verify a certificate key pair?]]></title>
			<link>https://www.wolfssl.com/forums/post4741.html#p4741</link>
			<description><![CDATA[<p>Hi Kaleb,</p><p>I have used the code to verify my certificate files. It&#039;s great.</p><p>Thank you for your quick response,<br />Alfred</p>]]></description>
			<author><![CDATA[null@example.com (Alfred Zhou)]]></author>
			<pubDate>Tue, 09 Jul 2019 06:42:43 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4741.html#p4741</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] How to verify a certificate key pair?]]></title>
			<link>https://www.wolfssl.com/forums/post4738.html#p4738</link>
			<description><![CDATA[<p>Hi Alfred,</p><p>You can use:</p><div class="codebox"><pre><code>wolfSSL_CTX_use_PrivateKey_[file | buffer](); // to load the private key
wolfSSL_CTX_use_certificate_[file | buffer](); // to load the certificate
wolfSSL_CTX_check_private_key(); // checks that the private key matches the public key in the cert, returns WOLFSSL_SUCCESS or WOLFSSL_FAILURE</code></pre></div><div class="codebox"><pre><code>/* Check private against public in certificate for match                         
*                                                                               
* ctx  WOLFSSL_CTX structure to check private key in                            
*                                                                               
* Returns SSL_SUCCESS on good private key and SSL_FAILURE if miss matched. */
int wolfSSL_CTX_check_private_key(const WOLFSSL_CTX* ctx);</code></pre></div><p>If you have any issues let me know and I&#039;ll put together a quick example.</p><br /><p>Warm Regards,</p><p>KH</p>]]></description>
			<author><![CDATA[null@example.com (Kaleb J. Himes)]]></author>
			<pubDate>Mon, 08 Jul 2019 23:29:02 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4738.html#p4738</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] How to verify a certificate key pair?]]></title>
			<link>https://www.wolfssl.com/forums/post4737.html#p4737</link>
			<description><![CDATA[<p>Hi,</p><p>I have generated a private key file as private.pem. I have received a CA signed public key file as public.der. Well how can I use API in C++ project verify these two files valid and matching each other? After verification, I will use the key pair as outgoing certificate in my demo application.</p><p>PS: The private key is usually RSAKey and could also be other type like ECC key. For RSAKey, can I use the sample code in function in source file &quot;openssl_evpSig_test in wolfssl\wolfcrypt\test\test.c&quot;?</p><p>Thanks,<br />Alfred</p>]]></description>
			<author><![CDATA[null@example.com (Alfred Zhou)]]></author>
			<pubDate>Mon, 08 Jul 2019 06:34:18 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post4737.html#p4737</guid>
		</item>
	</channel>
</rss>
