wolfssl / wolfclu Goto Github PK
View Code? Open in Web Editor NEWThe wolfSSL Command Line Utility wolfCLU
Home Page: https://www.wolfssl.com
License: GNU General Public License v2.0
The wolfSSL Command Line Utility wolfCLU
Home Page: https://www.wolfssl.com
License: GNU General Public License v2.0
Unable to compile wolfCLU after cloning the repository with the given steps in the readme file.
Error in line 550 of wolfCLU/src/x509/clu_x509_sign.c file. Commenting or removing the line 550 compiles the code. Kindly look into the mentioned issue.
After running ./autogen.sh
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: aclocal -I m4 -I config --force -I m4
autoreconf: running: /usr/bin/autoconf --include=m4 --include=config --force
configure.ac:17: warning: The macro `AC_CONFIG_HEADER' is obsolete.
configure.ac:17: You should run autoupdate.
./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
configure.ac:17: the top level
configure.ac:60: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:60: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:60: the top level
autoreconf: running: /usr/bin/autoheader --include=m4 --include=config --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:38: installing 'build-aux/compile'
configure.ac:22: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
autoreconf: Leaving directory '.'
x509-ca-test.sh fails when compiled against wolfSSL v5.6.2-stable
. It works fine for v5.6.0-stable
.
Failure log below:
=====================================
wolfclu 0.1.2: ./test-suite.log
=====================================
# TOTAL: 18
# PASS: 15
# SKIP: 2
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 1
.. contents:: :depth: 2
SKIP: tests/dsa/dsa-test.sh
===========================
grep: warning: stray \ before -
DSA support not compiled into wolfSSL
Error returned: -1.
SKIP tests/dsa/dsa-test.sh (exit status: 77)
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.
Private key does not match with CA
Error returned: -1.
verifying certificate file test_ca.pem
using CA file ./certs/server-cert.pem
CA file is not root CA
Error returned: -1.
verifying certificate file test_ca.pem
using CA file ./certs/ca-cert.pem
Verification Failed
Err (-275): ASN self-signed certificate error
Error returned: -1.
verifying certificate file test_ca.pem
using CA file ./certs/ca-cert.pem
OK
Fail on ./wolfssl ca -config ca.conf -in tmp-ca.csr -out test_ca.pem -extensions usr_cert -md sha512 -days 3650 -cert ./certs/ca-ecc-cert.pem -keyfile ./certs/ca-ecc-key.pem
ERROR tests/x509/x509-ca-test.sh (exit status: 99)
SKIP: tests/x509/CRL-verify-test.sh
===================================
recompile wolfSSL with CRL support
Error returned: -1.
SKIP tests/x509/CRL-verify-test.sh (exit status: 77)
I am trying to compile src/clu_main.c separately, but facing errors as shown below:
wolfssl/wolfCLU/src$ gcc -I/usr/local/include -L/usr/local/lib clu_main.c
/usr/local/bin/ld: /tmp/ccuazmaB.o: in function `main':
clu_main.c:(.text+0x112): undefined reference to `wolfCLU_Log'
/usr/local/bin/ld: clu_main.c:(.text+0x117): undefined reference to `wolfCLU_help'
/usr/local/bin/ld: clu_main.c:(.text+0x11c): undefined reference to `wolfSSL_Init'
/usr/local/bin/ld: clu_main.c:(.text+0x132): undefined reference to `wolfCLU_LogError'
..
(many such functions)
I have added /usr/local/lib to LD_LIBRARY_PATH and run sudo ldconfig
. I have also added /usr/local/include to PATH.
Please suggest how to resolve these errors.
Trying to capture all items from review so far to make sure they are addressed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.