Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

nx_secure_tls_trusted_certificate_add Stops the debugger like its at a break point.

$
0
0

Hello Forum,

Im working on a tls client connection and working on adding a ICA and CA to the CA store.  I have gone though the following and not had any errors.

nx_secure_tls_session_packet_buffer_set

nx_secure_x509_certificate_initialize

but at the nx_secure_tls_trusted_certificate_add, the debugger hangs up in the protected code area.  I cant stop it from acting like its hitting a break point. Whats worse is I cant get out of it and return to normal code execution.  Im not sure what to do and what might be causing it to hang up.  Im thinking it maybe the CA or maybe the way I converted the CA to a usable array.  But I totally guessing.  I set the CA array as a static global in my subroutine Im calling the cert_add from.  Im using a Let’s Encrypt Authority X3 (IdenTrust cross-signed) which is pem format.  I am also doing the root CA which is from identrust.  I then converted it to a DER format using openssl on a linux machine. "openssl x509 -inform PEM -in lets-encrypt-x3.pem -outform DER -out lets-encrypt-x3.der".  From there I used bin2c to convert it to a format I could plug into my code as an array.  Maybe there is an issue with the way I converted the cert might be the only thing I can think of?  Anyone else see an issue with this process or have an idea why the code might keep breaking in the nx_secure_tls_trusted_certificate_add.c file?  

 Thanks

Matt

 

(Please visit the site to view this file)


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>