wolfssl 5.7.6
wolfclu 0.1.7
wolfssl built with
./autogen.sh
./configure --prefix=/usr --enable-all
I also tried to compile wolfssl with --enable-asn=original, but it didn't look like it changed anything.
similar to #127
PASS: tests/rand/rand-test.sh
ERROR: tests/x509/x509-req-test.sh
PASS: tests/pkcs/pkcs7-test.sh
ERROR: tests/x509/x509-ca-test.sh
PASS: tests/pkey/pkey-test.sh
PASS: tests/pkey/ecparam-test.sh
PASS: tests/server/server-test.sh
PASS: tests/pkcs/pkcs12-test.sh
PASS: tests/hash/hash-test.sh
PASS: tests/x509/CRL-verify-test.sh
PASS: tests/client/client-test.sh
PASS: tests/pkey/rsa-test.sh
PASS: tests/x509/x509-verify-test.sh
PASS: tests/dsa/dsa-test.sh
PASS: tests/dh/dh-test.sh
PASS: tests/encrypt/enc-test.sh
PASS: tests/genkey_sign_ver/genkey-sign-ver-test.sh
ERROR: tests/x509/x509-process-test.sh
PASS: tests/dgst/dgst-test.sh
PASS: tests/bench/bench-test.sh
============================================================================
Testsuite summary for wolfclu 0.1.7
============================================================================
# TOTAL: 20
# PASS: 17
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 3
============================================================================
See ./test-suite.log for debugging.
Some test(s) failed. Please report this to http://www.wolfssl.com,
together with the test-suite.log file (gzipped) and your system
information. Thanks.
============================================================================
ERROR: tests/x509/x509-ca-test.sh
=================================
grep: warning: stray \ before -
./wolfssl ca
-in CSR file input
-out file to output to
-keyfile file to read private key from
-cert file to read CA from
-extensions section in config file to parse extensions from
-md type of hash i.e sha256
-inform type PEM/DER of CSR input
-config file to read configuration from
-days number of days for certificate to be valid
-selfsign sign with key associated with cert
./wolfssl ca
-in CSR file input
-out file to output to
-keyfile file to read private key from
-cert file to read CA from
-extensions section in config file to parse extensions from
-md type of hash i.e sha256
-inform type PEM/DER of CSR input
-config file to read configuration from
-days number of days for certificate to be valid
-selfsign sign with key associated with cert
Unable to open config file ca-example.conf
Unable to create a signer struct
Error returned: -1.
Issue creating structure to use
Error ./src/x509.c:5343: ASN parsing error, invalid input (-140)
Error returned: -1.
Issue creating structure to use
Error ./src/x509.c:5343: ASN parsing error, invalid input (-140)
Error returned: -1.
Fail on ./wolfssl ca -config ca.conf -in tmp-ca.csr -out test_ca.pem -md sha256 -selfsign -keyfile ./certs/server-key.pem
ERROR tests/x509/x509-ca-test.sh (exit status: 99)
ERROR: tests/x509/x509-process-test.sh
======================================
grep: warning: stray \ before -
TEST 1: VALID
TEST 1.a
testing: ./wolfssl -x509 -inform pem -outform pem -in certs/ca-cert.pem -out test.pem
Checking certificate test.pem's signature.
Verified OK
TEST 1.b
TEST 1.c
testing: ./wolfssl -x509 -inform pem -outform der -in certs/ca-cert.pem -out test.der
Checking certificate test.der's signature.
Verified OK
TEST 1.d
testing: ./wolfssl -x509 -inform der -outform pem -in certs/ca-cert.der
TEST 1.e
testing: ./wolfssl -x509 -inform der -outform der -in certs/ca-cert.der -out test.der
Checking certificate test.der's signature.
Verified OK
TEST 1.f
testing: ./wolfssl -x509 -inform der -text -noout -in certs/ca-cert.der
TEST 1.g
testing: ./wolfssl -x509 -inform der -pubkey -noout -in certs/ca-cert.der
TEST 1.h
testing: ./wolfssl -x509 -inform der -outform pem -in certs/ca-cert.der -out test.pem
Checking certificate test.pem's signature.
Verified OK
TEST 1.i
testing: ./wolfssl -x509 -in combined.pem -out process_x509.pem
testing: ./wolfssl -x509 -in process_x509.pem -text
testing: ./wolfssl -x509 -in ./certs/ca-cert.pem -text
TEST 2: INVALID INPUT
TEST 2.a
testing: ./wolfssl -x509 -inform pem -inform der
ERROR: argument found twice: "-inform"
Error returned: -1.
TEST 2.b
testing: ./wolfssl -x509 -outform pem -outform der
ERROR: argument found twice: "-outform"
Error returned: -1.
TEST 2.c
testing: ./wolfssl -x509 -inform -inform
ERROR: argument found twice: "-inform"
Error returned: -1.
TEST 2.d
testing: ./wolfssl -x509 -outform -outform
ERROR: argument found twice: "-outform"
Error returned: -1.
TEST 2.e
testing: ./wolfssl -x509 -inform pem -inform der -inform
ERROR: argument found twice: "-inform"
Error returned: -1.
TEST 2.f
testing: ./wolfssl -x509 -outform pem -outform der -outform
ERROR: argument found twice: "-outform"
Error returned: -1.
TEST 2.g
testing: ./wolfssl -x509 -inform pem -outform der -inform
ERROR: argument found twice: "-inform"
Error returned: -1.
TEST 2.h
testing: ./wolfssl -x509 -outform pem -inform der -outform
ERROR: argument found twice: "-outform"
Error returned: -1.
TEST 2.i
testing: ./wolfssl -x509 -inform
Usage: -inform [PEM/DER/RAW]
missing inform required argument
Error returned: -1.
TEST 2.j
testing: ./wolfssl -x509 -outform
Usage: -outform [PEM/DER/RAW]
missing outform required argument
Error returned: -1.
TEST 2.k
testing: ./wolfssl -x509 -outform pem -outform der -noout
ERROR: argument found twice: "-outform"
Error returned: -1.
TEST 2.l
testing: ./wolfssl -x509 -outform -outform -noout
ERROR: argument found twice: "-outform"
Error returned: -1.
TEST 2.m
testing: ./wolfssl -x509 -outform pem -outform der -outform -noout
ERROR: argument found twice: "-outform"
Error returned: -1.
TEST 2.n
testing: ./wolfssl -x509 -inform pem -outform der -inform -noout
ERROR: argument found twice: "-inform"
Error returned: -1.
TEST 2.o
testing: ./wolfssl -x509 -outform pem -inform der -outform -noout
ERROR: argument found twice: "-outform"
Error returned: -1.
TEST 2.p
testing: ./wolfssl -x509 -outform -noout
Usage: -outform [PEM/DER/RAW]
"-noout" is not a valid output format
Error returned: -1.
TEST3: VALID INPUT FILES
TEST 3.a
testing: ./wolfssl -x509 -inform der -in certs/ca-cert.der -outform pem -out tmp.pem
RESULT: 0
RESULT OF DIFF: 0
TEST 3.b
testing: ./wolfssl -x509 -inform pem -outform der -in certs/ca-cert.pem -out x509_tmp.der
RESULT: 0
RESULT OF DIFF: 0
TEST 3.c
testing: ./wolfssl -x509 -in certs/server-cert.pem -subject -noout
TEST 3.d
testing: ./wolfssl -x509 -in certs/server-cert.pem -issuer -noout
TEST 3.e
testing: ./wolfssl -x509 -in certs/ca-cert.pem -serial -noout
TEST 3.f
testing: ./wolfssl -x509 -in certs/server-cert.pem -serial -noout
TEST 3.g
testing: ./wolfssl -x509 -in certs/server-cert.pem -dates -noout
TEST 3.h
testing: ./wolfssl -x509 -in certs/server-cert.pem -email -noout
TEST 3.i
testing: ./wolfssl -x509 -in certs/server-cert.pem -fingerprint -noout
TEST 3.j
testing: ./wolfssl -x509 -in certs/server-cert.pem -purpose -noout
TEST 3.k
testing: ./wolfssl -x509 -in certs/server-cert.pem -hash -noout
TEST 3.l
testing: ./wolfssl -x509 -in x509-process-tmp.cert -email -noout
unable to parse input file
Error wolfcrypt/src/asn.c:23967: ASN parsing error, invalid input (-140)
Error returned: -1.
Failed when expected to pass
ERROR tests/x509/x509-process-test.sh (exit status: 99)
ERROR: tests/x509/x509-req-test.sh
==================================
grep: warning: stray \ before -
unable to parse input file
Error wolfcrypt/src/asn.c:23967: ASN parsing error, invalid input (-140)
Error returned: -1.
found unexpected result
Got :
Expected : Subject: O=wolfSSL, C=US, ST=WA, L=Seattle, CN=wolfSSL, OU=org-unit
ERROR tests/x509/x509-req-test.sh (exit status: 99)
wolfssl 5.7.6
wolfclu 0.1.7
wolfssl built with
I also tried to compile wolfssl with
--enable-asn=original, but it didn't look like it changed anything.similar to #127