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

s_server command #133

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

s_server command #133

wants to merge 3 commits into from

Conversation

gengithub17
Copy link

Enable s_server command in wolfCLU.

You can use these options:
-port : Port to listen on, default value is 11111.
-key : Server Private file. Essensial option.
-noVerify : Disable client cert check.
-cert : Server Certificate file. Essensial option if you don't use -noVerify option.
-CAfile : Certificate Authority file. Essensial option.
-version : SSL/TLS version.
-naccept : Number of times to accept.(default 1)
-www : The response is in HTML format.
-readyFile : Create server ready file.

To pass the unit test, a new option has also been added to s_client command.
-disable_stdin_check : Stop calling checkStdin.

@wolfSSL-Bot
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@JacobBarthelmeh JacobBarthelmeh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should fail gracefully and avoid segfault

$ ./wolfssl s_server -port 11111 -cert ~/Documents/wolfssl/certs/server-cert.pem -key ~/Documents/wolfssl/certs/server-key.pem 
can't load ca file, Please run from wolfSSL home dir
Segmentation fault (core dumped)

Running a couple options so far all segfaulted if the -readyfile flag is not used.

@gengithub17 gengithub17 removed their assignment Oct 14, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants