You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
I was looking into creating csr for OpCSR for my ESP32 platform. However I was getting CSR length 0 when I call P256Keypair::NewCertificateSigningRequest. Then I looked into definition of it, it has written something like below.
Proposed Solution
According to mbedtls API description mbedtls_x509write_csr_pem API return error code, not length. For length, we need to write something like below.
Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.87. Please mark this comment with 👍 or 👎 to give our bot feedback!
Thanks @nileshvora-sls , you are right about the return code. I'll push a fix for it.
The code was originally written to use mbedtls_x509write_csr() API, which returns the length. But in some iteration of the PR it got changed to PEM format.
Problem
I was looking into creating csr for OpCSR for my ESP32 platform. However I was getting CSR length 0 when I call P256Keypair::NewCertificateSigningRequest. Then I looked into definition of it, it has written something like below.
Proposed Solution
According to mbedtls API description mbedtls_x509write_csr_pem API return error code, not length. For length, we need to write something like below.
The text was updated successfully, but these errors were encountered: