wolfSSL / wolfTPM

wolfTPM is a highly portable TPM 2.0 library, designed for embedded use.
https://www.wolfssl.com
GNU General Public License v2.0
230 stars 56 forks source link

Fix for CSharp `SetCustomExtension` #239

Closed anhu closed 1 year ago

anhu commented 1 year ago

Tested with the CSharp wrapper tests and inspected the CSR.

# wolfSSL
./configure --enable-wolftpm --enable-certgen --enable-asn=template \
    CFLAGS="-DWOLFSSL_CUSTOM_OID -DHAVE_OID_ENCODING"
make && sudo make install

# wolfTPM
./configure --enable-swtpm --enable-debug
make && sudo make install
cd wrapper/CSharp
mcs wolfTPM.cs wolfTPM-tests.cs -r:/usr/lib/cli/nunit.framework-2.6.3/nunit.framework.dll -t:library
LD_LIBRARY_PATH=../../src/.libs/ nunit-console wolfTPM.dll
openssl req -inform pem -in csr_customExt.pem -text

Fixes ZD14713

anhu commented 1 year ago

Please do not merge. Still waiting for customer feedback.

anhu commented 1 year ago

I have tested @dgarske 's lastest change. It works as expected and I approve.

dgarske commented 1 year ago

Going to go ahead and merge. I believe this fix solves things for the customer.