Questions tagged [wolfssl]

wolfSSL (formerly CyaSSL) is a lightweight, portable, C-based SSL/TLS library targeting embedded and RTOS environments

wolfSSL (formerly CyaSSL) is a lightweight, portable, C-based SSL/TLS library targeting embedded and RTOS environments.

Their website is located at wolfSSL Embedded SSL Library.

64 questions
1
vote
1 answer

wolfssl C# wrapper client gives System.EntryPointNotFoundException for CTX_set_psk_client_callback

WolfSSL documentation provides different PSK example for C# and C++ client examples are different. Following URL provides PSK client C++ example. https://github.com/wolfSSL/wolfssl-examples/blob/master/psk/client-psk.c In C++ PSK client example,…
Dhan
  • 11
  • 6
1
vote
1 answer

DTLS `HelloVerifyRequest`/`HelloRetryRequest` in WolfSSL

The cookie exchange initiated by HelloVerifyRequest described in section 4.2.1 of RFC 6347 is essential to DoS-protection in DTLS. Unless I'm overlooking something, the WolfSSL documentation does not really describe how to enable this cookie…
gspr
  • 11,144
  • 3
  • 41
  • 74
1
vote
1 answer

wolfSSL base layer info

I know that wolfSSL is the successor of yaSSL. But I would like to know what is the base layer of wolfSSL/yaSSL developed from. Whether wolfSSL uses openSSL or LwIP functions internally in embedded systems (FreeRTOS, ARM)? Best regards, Iyaps.
quest s20g
  • 11
  • 4
1
vote
1 answer

Could not parse PKCS7 certificate using WolfSSL but same could be parsed by OpenSSL

I'm trying to parse PKCS7 certificate using WolfSSL but its returning ERROR_CODE: -140 (ASN_PARSE_E) But i was able to parse the same certificate using OpenSSL. I have Base64 encoded PKCS7 file which am decoding to receive a DER format PKCS7 cert.…
LIJIN T V
  • 81
  • 8
1
vote
0 answers

compilation error in asn.h in wolfssl upgrade for windows

I am facing an issue while upgrading wolfssl to 4.4.0 in internal tool. Any help/hints would be highly appreciated. Below are the steps/process followed to do so - wolfssl-4.4.0 code copied to tool/main project. wolfssl-4.4.0 added as a project in…
Nitin
  • 13
  • 4
1
vote
1 answer

Unable to make ssh connection to Cisco IOS device using wolfssh library

Trying to connect to a cisco ios device using wolfssh library. Following is the code snippet used to connect WOLFSSH_CTX* ctx = NULL; WOLFSSH* ssh = NULL; SOCKET_T sockFd = WOLFSSH_SOCKET_INVALID; SOCKADDR_IN_T clientAddr; …
Antarus
  • 1,573
  • 2
  • 15
  • 32
1
vote
1 answer

wolfSSL - DTLS negotiation fails when client and server use different versions

I'm using the DTLS example server provided with the wolfSSL 4.1.0 and I'm using an openSSL client. Client instances can use either DTLS 1.0 or 1.2. If I set both on the server and client the same DTLS version everything goes fine. If I set the…
alfven
  • 147
  • 8
1
vote
1 answer

certificate sanity check using wolfssl

I need to test if a ECC certificate in PEM format is of good shape in C using the wolfssl library. I do not want to test any further information only if it is a certificate and not any random Base64 encoded bytes between the -----BEGIN…
Ulli
  • 127
  • 1
  • 7
1
vote
2 answers

configuration issue with WolfSSL and ATECC508A

We are using the ATECC508A to support WolfSSL on a Renesas RX600 CPU (sorry - customer spec). We are trying to do TLS 1.3 on an IoT device. Software ECC mode using WolfSSL - works fine. ATECC hardware supported mode - fails with error -248 (0xF4…
Freedlight
  • 33
  • 5
1
vote
1 answer

How to static build and include wolfssl on Windows?

I would like to build and integrate wolfssl statically in a c++ Windows project. I've tried to follow the official tutorial, but this seems to give a .dll, which is, correct me if I am wrong, dynamic. Is there any solution to build a .lib and…
user11089058
1
vote
2 answers

wc_RsaSSL_Verify returns BAD_FUNC_ARG, and I can't tell why

I am trying to RSA public key decrypt a signed file using wolfcrypt - yes, I may or may not be abusing the "sign/verify" power of RSA to encrypt a separate AES key using the private key and decrypt using the public key. Unfortunately, I am stuck at…
zkabitz
  • 41
  • 8
1
vote
1 answer

Tls handshake fails even though ciphersuites in common

I am experiencing some trouble while making a secure connection to www.howsmyssl.com/a/check. I am using wolfSSL to connect, however, the handshake always fails (FATAL ERROR alert 40). I tried to sniff the network to look into the packets to see…
Lennart
  • 383
  • 4
  • 16
1
vote
1 answer

how to build wolfssl shared lib on ubuntu x64?

on ubuntu x64, I try to compile the wolfssl steps: ./configure --enable-static --enable-shared --enable-openssh --enable-opensslextra make But there is no shared lib generated. It only works on 32bit system. why?
myd620
  • 111
  • 1
  • 1
  • 5
1
vote
1 answer

makefile always calling the last target

This is my makefile. #starts here #Openssl constants Openssl_include=-I/usr/local/openssl/include Openssl_lib=-L/usr/local/openssl/lib -lcrypto -ldl #Wolfssl constants Wolfssl_include=-I/usr/local/wolfssl/include -LLIBDIR…
sg777
  • 159
  • 6
1
vote
2 answers

SoftConsole 4.0 "bad instruction" assembler

Using MicroSemi SoftConsole 4.0 to try to get a FreeRTOS demo project compiled and running, and I've come across an error "bad instruction '[every line of code]'". Basically, the entire file is not being assembled for some reason. My Console looks…
Justin
  • 33
  • 1
  • 6