<?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 — Restrictions marked as Critical or Non-critical]]></title>
		<link>https://www.wolfssl.com/forums/topic1908-restrictions-marked-as-critical-or-noncritical.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1908.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Restrictions marked as Critical or Non-critical.]]></description>
		<lastBuildDate>Mon, 29 Aug 2022 22:52:52 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Restrictions marked as Critical or Non-critical]]></title>
			<link>https://www.wolfssl.com/forums/post6728.html#p6728</link>
			<description><![CDATA[<p>Hello Messias,</p><p>You will need to use our custom OID support to mark extensions as critical/non-critical.<br />Check out our example here: <a href="https://github.com/wolfSSL/wolfssl-examples/tree/master/certgen#certificate-generation-and-parsing-with-custom-extensions-example">https://github.com/wolfSSL/wolfssl-exam … ns-example</a><br /><a href="https://github.com/wolfSSL/wolfssl-examples/blob/master/certgen/custom_ext.c">https://github.com/wolfSSL/wolfssl-exam … stom_ext.c</a><br />The second parameter of wc_SetCustomExtension specifies whether the extension is marked as critical or not.</p><p>Thanks,<br />Kareem</p>]]></description>
			<author><![CDATA[null@example.com (kareem_wolfssl)]]></author>
			<pubDate>Mon, 29 Aug 2022 22:52:52 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6728.html#p6728</guid>
		</item>
		<item>
			<title><![CDATA[Restrictions marked as Critical or Non-critical]]></title>
			<link>https://www.wolfssl.com/forums/post6727.html#p6727</link>
			<description><![CDATA[<p>Hello, </p><p>I am working with wolfSSL to generate some Root, Intermediate and Leaf Certificates. I am trying to mark some restrictions as critical and others as non-critical. </p><p>My problem is, in my usce case, the Basic Constraints (OID 2.5.29.19) shall be present and marked as &quot;critical&quot;. The CA component shall be false in a Leaf Certificate and true for a non-Leaf Certificate. The problem is that I can&#039;t mark this extension as &quot;critical&quot;. Also, the Key Usage (OID 2.5.29.15)&nbsp; shall be present but not marked as &quot;critical&quot;. Here is an snippet of a correct certificate that is my goal:</p><p>X509v3 extensions:<br />&nbsp; &nbsp; &nbsp;X509v3 Basic Constraints: critical<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CA:TRUE<br />&nbsp; &nbsp; &nbsp;X509v3 Key Usage: <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Certificate Sign, CRL Sign</p><p>But what I could generate so far with wolfSSL was this:</p><p>X509v3 extensions:<br />&nbsp; &nbsp; &nbsp;X509v3 Basic Constraints:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CA:TRUE<br />&nbsp; &nbsp; &nbsp;X509v3 Key Usage: critical<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Certificate Sign, CRL Sign</p><p>I am using the wc_SetKeyUsage() for the Key Usage; and the variable &quot;isCA = true&quot; for the Basic Constraints</p>]]></description>
			<author><![CDATA[null@example.com (messias.filho)]]></author>
			<pubDate>Mon, 29 Aug 2022 21:34:52 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6727.html#p6727</guid>
		</item>
	</channel>
</rss>
