Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can I use wolfSSL without a CA cert? #7752

Closed
4rtemis-4rrow opened this issue Jul 15, 2024 · 2 comments
Closed

can I use wolfSSL without a CA cert? #7752

4rtemis-4rrow opened this issue Jul 15, 2024 · 2 comments
Assignees

Comments

@4rtemis-4rrow
Copy link

Version

latest, preferably

Description

ok so, this isn't a bug oran issue, but I didn't know where else to ask, stack overflow is...... less than helpful

I am working on a program where having bullet proof security is not the top priority, the top priority would be package size, so, I want to skip any sort of CA loading

is that something that wolfSSL allows me to do, or should I look at a different library?

thanks in advance

@dgarske
Copy link
Contributor

dgarske commented Jul 15, 2024

Hi @4rtemis-4rrow ,

The CA certificate is used to verify the peer's certificate. Usually those are loaded with wolfSSL_CTX_load_verify or wolfSSL_CTX_load_verify_locations.

The easiest way is to disable the certificate verification is using something like: wolfSSL_CTX_set_verify(ctx, WOLFSSL_VERIFY_NONE, NULL);. This will not verify the peers certificate. The third argument is an optional callback function that could also be used to override a failure.

Can you tell us more about your project and use-case? Are you the client or server?

Thanks,
David Garske, wolfSSL

@dgarske dgarske self-assigned this Jul 15, 2024
@4rtemis-4rrow
Copy link
Author

thanks for your response @dgarske

it's a POC linux malware, I want to have TLS encryption on it's comms, I will be using the linux/tls.h header file for the encryption, as described in this document, but it's only issue is that it can't do a handshake, so I'm looking at the options I have for the handshake, considering I need it to be as lightweight as possible, I am contemplating either wolfSSL or implementing it manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants