Git Product home page Git Product logo

go-wolfssl's Introduction

wolfSSL Golang Wrapper

This repository contains a very light wrapper around wolfSSL for GO, a server/client example, and some example wolfCrypt applications.

Usage

To use the wolfSSL go module, first build and install wolfSSL as shown below.

git clone https://github.com/wolfSSL/wolfssl
./autogen.sh
./configure
make
sudo make install

Then run the command below to build and install the wrapper module.

go get -u github.com/wolfssl/go-wolfssl 

Building with configure options

If building wolfSSL with a non-empty configure, you'll have to run the ./generateOptions.sh executable to customize go-wolfssl to the same feature set as wolfSSL. This executable will generate an options.go file that will keep go-wolfssl and wolfSSL in sync. generateOptions should be run any time you change your wolfSSL configure options.

Example: To use go-wolfssl without ECC, first build wolfSSL as shown below:

./configure --disable-ecc
make
sudo make install

Then go to the go-wolfssl directory and if the path to your wolfSSL directory is ../wolfssl, just run:

./generateOptions.sh

If you have a different path to your wolfSSL directory, run the executable with the right path:

./generateOptions ../files/wolfSSL

options.go is now generated and go-wolfssl can be run with ECC disabled!

Running the TLS Server/Client example

The example .go files are located in the client and server directories.

To build the server, run :

cd examples/server
go build server.go

To build the client, run :

cd examples/client
go build client.go

NOTE: Make sure to run both the server and client from within their directories or change the certificate and key paths in the code so that the files are found.

See examples/README.md for details on building/running the other examples.

NOTE: If you have wolfSSL installed in a non-standard location, edit the CFLAGS and LDFLAGS specifications in the *.go source files to correspond to your custom installation path.

Support

For inquiries, suggestions and feedback please contact [email protected].

go-wolfssl's People

Contributors

cconlon avatar dgarske avatar jacobbarthelmeh avatar lealem47 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

go-wolfssl's Issues

Could not determine kind of name for C.WC_SHA512_DIGEST_SIZE

  • go version: go1.20.1 linux/amd64
  • os: Ubuntu 20.04 LTS

Install Wolfssl

git clone https://github.com/wolfSSL/wolfssl
./autogen.sh
./configure
make
sudo make install

Build Failed

I followed the instructions for installation, but encountered the following issue.

ๅœ–็‰‡

Does this support DTLS?

I was unable to find any references to DTLS in this repo, but just in case, does go-wolfssl support DTLS or not?

Windows Support

It seems like the cgo directives in the code assume Linux. Is there a way to get this working on Windows?

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.