Giter Club home page Giter Club logo

wolfssl / wolfclu Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 22.0 1.26 MB

The wolfSSL Command Line Utility wolfCLU

Home Page: https://www.wolfssl.com

License: GNU General Public License v2.0

Makefile 0.28% Shell 8.03% C 72.78% M4 18.09% Roff 0.77% Standard ML 0.05%
certificate-generation cli command-line-tool cryptography encryption key-generation openssl openssl-alternative openssl-tools security signature-verification wolfcrypt wolfssl x509

wolfclu's People

Contributors

bigbrett avatar cconlon avatar connerdev avatar dgarske avatar douzzer avatar ejohnstown avatar embhorn avatar haydenroche5 avatar jacobbarthelmeh avatar kaleb-himes avatar kojo1 avatar lealem47 avatar levirak avatar sparkidev avatar toddouska avatar yota22721 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wolfclu's Issues

unable to compile wolfCLU

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.

Warnings in autotools

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 with wolfSSL v5.6.2-stable

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)


Unable to compile C file

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.

Keeping track of items that still need addressed

Trying to capture all items from review so far to make sure they are addressed.

  • Remove all fopen/fclose in preference of either WOLFSSL_BIO's or XFOPEN/XFCLOSE
  • Portability with dynamic buffer declarations (change to dynamic heap allocations instead of on stack)
  • Optimization of writing out to files (make sure is not written in DER then re written in PEM)
  • Optimization of reduction in XMEMSET's used on buffers
  • Fix for use of scanf and sanity checks around it's inputs
  • Refactor of wolfCLU_hexToBin to reduce it's complexity and number of arguments
  • Use ret checks and fall threw in function rather than wolfCLU_freeBins
  • Pass through the code to remove magic numbers i.e case 0 in clu_main.c and existing set of keyType value
  • add debug mode (#4)
  • add Wall flag (#3)
  • refactor of free_things* functions such as the one in clu_certgen_rsa.c
  • update all file license headers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.