<?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 — error = -188, ASN no signer error to confirm failure]]></title>
		<link>https://www.wolfssl.com/forums/topic1971-error-188-asn-no-signer-error-to-confirm-failure.html</link>
		<atom:link href="https://www.wolfssl.com/forums/feed-rss-topic1971.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in error = -188, ASN no signer error to confirm failure.]]></description>
		<lastBuildDate>Fri, 17 Mar 2023 04:43:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post7023.html#p7023</link>
			<description><![CDATA[<p>Try this. </p><p>Create a callback for the peer verification to bypass the failure. Returning 1 allows the client to accept any certificate, hence bypassing the certificate verification failure.</p><div class="codebox"><pre><code>int wolfssl_verify_cb(int, WOLFSSL_X509_STORE_CTX*)
{
    return 1;
}

void your_function()
{
    // ...
    SSL_CTX_set_verify(ssl_ctx, SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT, wolfssl_verify_cb);
    // ...
}</code></pre></div><p>NOTE: From my experience, wolfSSL uses the callback provided through `<strong>SSL_CTX_set_verify</strong>`, not `<strong>SSL_CTX_set_cert_verify_callback</strong>`. I haven&#039;t dug through the code completely, but those functions set 2 different variables. I believe the CB variable in `<strong>SSL_CTX_set_verify</strong>` is the one that gets called when the verification fails.</p>]]></description>
			<author><![CDATA[null@example.com (johnot)]]></author>
			<pubDate>Fri, 17 Mar 2023 04:43:27 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post7023.html#p7023</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6986.html#p6986</link>
			<description><![CDATA[<p>Ok, so you are now having success with our example client. You can now use that as a template to better understand what you need to do.&nbsp; Since you mentioned embedded, please do consider tiny curl.&nbsp; It just might fit your use case! </p><p>Warm regards, Anthony</p>]]></description>
			<author><![CDATA[null@example.com (anthony)]]></author>
			<pubDate>Wed, 08 Mar 2023 19:50:25 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6986.html#p6986</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6985.html#p6985</link>
			<description><![CDATA[<p>I downloaded wolfssl-5.5.4 and tried ./examples/client/client -h <a href="http://www.wolfssl.com">www.wolfssl.com</a> -p 443 --sys-ca-certs again.</p><div class="codebox"><pre><code>./examples/client/client -h www.wolfssl.com -p 443 --sys-ca-certs
SSL version is TLSv1.2
SSL cipher suite is TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
SSL curve name is SECP256R1</code></pre></div><p>but no progress with my code and github example.</p>]]></description>
			<author><![CDATA[null@example.com (msorage)]]></author>
			<pubDate>Wed, 08 Mar 2023 19:09:56 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6985.html#p6985</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6984.html#p6984</link>
			<description><![CDATA[<p>Hi msorage, </p><p>There is some sort of problem here.&nbsp; Your debug output indicates you only processed 2 certificates. You should have processed all the certificates in the /etc/ssl/certs. </p><p>Please use a debugger to figure why that hasn&#039;t happened. </p><p>Warm regards , Anthony</p>]]></description>
			<author><![CDATA[null@example.com (anthony)]]></author>
			<pubDate>Wed, 08 Mar 2023 18:03:21 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6984.html#p6984</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6983.html#p6983</link>
			<description><![CDATA[<div class="codebox"><pre><code>./examples/client/client -h www.wolfssl.com -p 443 --sys-ca-certs
wolfSSL Entering wolfSSL_Init
wolfSSL Entering wolfCrypt_Init
wolfSSL Entering TLSv1_2_client_method_ex
wolfSSL Entering wolfSSL_CTX_new_ex
wolfSSL Entering wolfSSL_CertManagerNew
wolfSSL Leaving WOLFSSL_CTX_new, return 0
wolfSSL Entering wolfSSL_CTX_use_certificate_chain_file
Getting dynamic buffer
wolfSSL Entering PemToDer
Checking cert signature type
wolfSSL Entering GetExplicitVersion
wolfSSL Entering GetSerialNumber
Got Cert Header
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Algo ID
Getting Cert Name
Getting Cert Name
Getting Cert Name
Getting Cert Name
Got Subject Name
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Key
Not ECDSA cert signature
wolfSSL Entering wolfSSL_CTX_use_PrivateKey_file
Getting dynamic buffer
wolfSSL Entering PemToDer
wolfSSL Entering GetAlgoId
wolfSSL_CTX_load_verify_locations_ex
Getting dynamic buffer
Processing CA PEM file
wolfSSL Entering PemToDer
Adding a CA
wolfSSL Entering GetExplicitVersion
wolfSSL Entering GetSerialNumber
Got Cert Header
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Algo ID
Getting Cert Name
Getting Cert Name
Getting Cert Name
Getting Cert Name
Got Subject Name
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Key
Parsed Past Key
wolfSSL Entering DecodeCertExtensions
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeSubjKeyId
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeAuthKeyId
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeBasicCaConstraint
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeAltNames
    Unsupported name type, skipping
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeExtKeyUsage
wolfSSL Entering GetObjectId()
wolfSSL Entering GetObjectId()
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
    Parsed new CA
    Freeing Parsed CA
    Freeing der CA
        OK Freeing der CA
wolfSSL Leaving AddCA, return 0
   Processed a CA
Processed at least one valid CA. Other stuff OK
wolfSSL_CTX_load_verify_locations_ex
Getting dynamic buffer
Processing CA PEM file
wolfSSL Entering PemToDer
Adding a CA
wolfSSL Entering GetExplicitVersion
wolfSSL Entering GetSerialNumber
Got Cert Header
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Algo ID
Getting Cert Name
Getting Cert Name
Getting Cert Name
Getting Cert Name
Got Subject Name
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
wolfSSL Entering GetObjectId()
Got Key
Parsed Past Key
wolfSSL Entering DecodeCertExtensions
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeSubjKeyId
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeAuthKeyId
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeBasicCaConstraint
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeKeyUsage
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeExtKeyUsage
wolfSSL Entering GetObjectId()
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeNsCertType
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
    Parsed new CA
    Freeing Parsed CA
    Freeing der CA
        OK Freeing der CA
wolfSSL Leaving AddCA, return 0
   Processed a CA
Processed at least one valid CA. Other stuff OK
wolfSSL Entering SSL_new
wolfSSL Leaving SSL_new, return 0
wolfSSL Entering SSL_set_fd
wolfSSL Entering SSL_set_read_fd
wolfSSL Leaving SSL_set_read_fd, return 1
wolfSSL Entering SSL_set_write_fd
wolfSSL Leaving SSL_set_write_fd, return 1
wolfSSL Entering SSL_connect()
wolfSSL Entering SendClientHello
Adding signature algorithms extension
growing output buffer
Signature Algorithms extension to write
Point Formats extension to write
Supported Groups extension to write
Encrypt-Then-Mac extension to write
EMS extension to write
Shrinking output buffer
wolfSSL Leaving SendClientHello, return 0
connect state: CLIENT_HELLO_SENT
growing input buffer
received record layer msg
got HANDSHAKE
wolfSSL Entering DoHandShakeMsg()
wolfSSL Entering DoHandShakeMsgType
processing server hello
wolfSSL Entering DoServerHello
Point Formats extension received
Extended Master Secret extension received
wolfSSL Entering VerifyClientSuite
wolfSSL Leaving DoServerHello, return 0
Shrinking input buffer
wolfSSL Leaving DoHandShakeMsgType(), return 0
wolfSSL Leaving DoHandShakeMsg(), return 0
growing input buffer
received record layer msg
got HANDSHAKE
wolfSSL Entering DoHandShakeMsg()
wolfSSL Entering DoHandShakeMsgType
processing certificate
wolfSSL Entering DoCertificate
wolfSSL Entering ProcessPeerCerts
Loading peer&#039;s cert chain
    Put another cert into chain
    Put another cert into chain
wolfSSL Entering GetExplicitVersion
wolfSSL Entering GetSerialNumber
Got Cert Header
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Algo ID
Getting Cert Name
Getting Cert Name
Getting Cert Name
Getting Cert Name
Got Subject Name
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Key
Parsed Past Key
wolfSSL Entering DecodeCertExtensions
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeKeyUsage
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeExtKeyUsage
wolfSSL Entering GetObjectId()
wolfSSL Entering GetObjectId()
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeBasicCaConstraint
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeSubjKeyId
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeAuthKeyId
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeAuthInfo
wolfSSL Entering GetObjectId()
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeCrlDist
wolfSSL Entering GetObjectId()
Certificate Policy extension not supported yet.
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
No CA signer to verify with
Failed to verify CA from chain
wolfSSL error occurred, error = -188
wolfSSL Entering SendAlert
growing output buffer
Shrinking output buffer
wolfSSL Leaving SendAlert, return 0
Verifying Peer&#039;s cert
wolfSSL Entering GetExplicitVersion
wolfSSL Entering GetSerialNumber
Got Cert Header
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Algo ID
Getting Cert Name
Getting Cert Name
Getting Cert Name
Getting Cert Name
Got Subject Name
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
Got Key
Parsed Past Key
wolfSSL Entering DecodeCertExtensions
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeAltNames
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeKeyUsage
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeExtKeyUsage
wolfSSL Entering GetObjectId()
wolfSSL Entering GetObjectId()
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeSubjKeyId
wolfSSL Entering GetObjectId()
Certificate Policy extension not supported yet.
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeBasicCaConstraint
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeAuthInfo
wolfSSL Entering GetObjectId()
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeAuthKeyId
wolfSSL Entering GetObjectId()
wolfSSL Entering DecodeCrlDist
wolfSSL Entering GetObjectId()
wolfSSL Entering GetAlgoId
wolfSSL Entering GetObjectId()
No CA signer to verify with
Failed to verify Peer&#039;s cert
    No callback override available, fatal
wolfSSL error occurred, error = -188
wolfSSL Entering SendAlert
wolfSSL Leaving ProcessPeerCerts, return -188
wolfSSL Leaving DoCertificate, return -188
wolfSSL Leaving DoHandShakeMsgType(), return -188
wolfSSL Leaving DoHandShakeMsg(), return -188
wolfSSL error occurred, error = -188
wolfSSL error occurred, error = -188
wolfSSL Entering SSL_get_error
wolfSSL Leaving SSL_get_error, return -188
wolfSSL Entering SSL_get_error
wolfSSL Leaving SSL_get_error, return -188
wolfSSL Entering ERR_error_string
wolfSSL_connect error -188, ASN no signer error to confirm failure
wolfSSL Entering SSL_free
CTX ref count not 0 yet, no free
Free&#039;ing client ssl
Shrinking input buffer
wolfSSL Entering ClientSessionToSession
wolfSSL Leaving SSL_free, return 0
wolfSSL Entering SSL_CTX_free
CTX ref count down to 0, doing full free
wolfSSL Entering wolfSSL_CertManagerFree
wolfSSL Leaving SSL_CTX_free, return 0
wolfSSL error: wolfSSL_connect failed</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (msorage)]]></author>
			<pubDate>Wed, 08 Mar 2023 17:25:34 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6983.html#p6983</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6982.html#p6982</link>
			<description><![CDATA[<p>Hi, <br />Please do this and then send over the logs: </p><p>./configure --enable-sys-ca-certs&nbsp; --enable-debug <br />make all <br />./examples/client/client -h <a href="http://www.wolfssl.com">www.wolfssl.com</a> -p 443 --sys-ca-certs</p>]]></description>
			<author><![CDATA[null@example.com (anthony)]]></author>
			<pubDate>Wed, 08 Mar 2023 17:23:07 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6982.html#p6982</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6981.html#p6981</link>
			<description><![CDATA[<p>No problem.<br />which application do you mean?</p><p>Thanks very much!<br />msorage</p>]]></description>
			<author><![CDATA[null@example.com (msorage)]]></author>
			<pubDate>Wed, 08 Mar 2023 17:12:14 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6981.html#p6981</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6980.html#p6980</link>
			<description><![CDATA[<p>Hi msorage, <br />I guess you&#039;re going to have to try again with --enable-debug to get some more verbose logging since I can&#039;t reproduce your issue here.&nbsp; <br />Warm regards, anthony</p>]]></description>
			<author><![CDATA[null@example.com (anthony)]]></author>
			<pubDate>Wed, 08 Mar 2023 17:09:52 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6980.html#p6980</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6979.html#p6979</link>
			<description><![CDATA[<p>Hi Anthony.<br />I&#039;m using Ubuntu 20.04</p><p>Yeah! I have those certs here too:</p><p> </p><div class="codebox"><pre><code>$ ls /etc/ssl/certs | wc -l
254</code></pre></div><p>Best regards,<br />msorage</p>]]></description>
			<author><![CDATA[null@example.com (msorage)]]></author>
			<pubDate>Wed, 08 Mar 2023 16:32:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6979.html#p6979</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6978.html#p6978</link>
			<description><![CDATA[<p>That&#039;s odd.&nbsp; This is my output: </p><div class="codebox"><pre><code>SSL version is TLSv1.2
SSL cipher suite is TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
SSL curve name is SECP256R1</code></pre></div><p>This is where we are looking for the certificates: </p><div class="codebox"><pre><code>    &quot;/etc/ssl/certs&quot;,                   /* Debian, Ubuntu, Gentoo, others */
    &quot;/etc/pki/ca-trust/source/anchors&quot;, /* Fedora, RHEL */
    &quot;/etc/pki/tls/certs&quot;                /* Older RHEL */</code></pre></div><p>What distribution of linux are you using? Can you check the locations specified above to see if there are certificates there? </p><p>Warm regards, Anthony</p>]]></description>
			<author><![CDATA[null@example.com (anthony)]]></author>
			<pubDate>Wed, 08 Mar 2023 14:06:59 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6978.html#p6978</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6977.html#p6977</link>
			<description><![CDATA[<div class="codebox"><pre><code>./configure --enable-sys-ca-certs; make all; sudo make install

./examples/client/client -h www.wolfssl.com -p 443 --sys-ca-certs  

wolfSSL_connect error -188, ASN no signer error to confirm failure
wolfSSL error: wolfSSL_connect failed</code></pre></div><p>the exact same error here</p>]]></description>
			<author><![CDATA[null@example.com (msorage)]]></author>
			<pubDate>Wed, 08 Mar 2023 13:14:51 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6977.html#p6977</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6976.html#p6976</link>
			<description><![CDATA[<p>Hi, <br />Also, please consider tiny-curl. You can find it at <a href="https://www.wolfssl.com/download/">https://www.wolfssl.com/download/</a></p><p>Warm regards, Anthony</p>]]></description>
			<author><![CDATA[null@example.com (anthony)]]></author>
			<pubDate>Wed, 08 Mar 2023 13:10:09 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6976.html#p6976</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6975.html#p6975</link>
			<description><![CDATA[<p>On Linux, this worked for me: </p><div class="codebox"><pre><code>./configure --enable-sys-ca-certs  
make all 
./examples/client/client -h www.wolfssl.com -p 443 --sys-ca-certs </code></pre></div><p>Warm regards, Anthony</p>]]></description>
			<author><![CDATA[null@example.com (anthony)]]></author>
			<pubDate>Wed, 08 Mar 2023 13:08:42 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6975.html#p6975</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6974.html#p6974</link>
			<description><![CDATA[<p>I&#039;m exploring the wolfssl lib on linux first, so I can try on an embedded system later. So curl won&#039;t be a option there <img src="https://www.wolfssl.com/forums/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />I know there are many differences between embedded bare metal and linux, but I consider this a first step to my goal. The same issue occurred with https client example I got from wolfssl repository.<br />I don&#039;t have any clue why this is happening. With openssl I manage to run the application <img src="https://www.wolfssl.com/forums/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (msorage)]]></author>
			<pubDate>Wed, 08 Mar 2023 12:57:33 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6974.html#p6974</guid>
		</item>
		<item>
			<title><![CDATA[Re: error = -188, ASN no signer error to confirm failure]]></title>
			<link>https://www.wolfssl.com/forums/post6973.html#p6973</link>
			<description><![CDATA[<p>Hi, </p><p>May I ask why you are doing this and what you are trying to achieve?&nbsp; Is this an academic or hobby project?&nbsp; We love know what people are doing with wolfSSL. </p><p>Have you considered using curl? You can download the source for curl and build it with wolfSSL underneath.&nbsp; Then you can look at how curl is calling wolfSSL to get a better understanding of what is needed. Or, depending on your needs, curl might be a better fit. </p><p>Warm regards, Anthony</p>]]></description>
			<author><![CDATA[null@example.com (anthony)]]></author>
			<pubDate>Wed, 08 Mar 2023 12:49:25 +0000</pubDate>
			<guid>https://www.wolfssl.com/forums/post6973.html#p6973</guid>
		</item>
	</channel>
</rss>
