I would like to know how to create a server.pem file for the boringssl bssl tool.
thanks!
Thanks, but i've tried using:
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
to generate a self-signed certificate then tried:
./eg server -key key.pem -accept 8080
but it gives an error:
"Failed to load cert chain: key.pem"
I also tried the .pem files supplied with the tests, but no luck.
Thanks, Eric - that did it. This works for me:
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
cat cert.pem key.pem > server.pem
./bssl server -key server.pem -accept 8080
./bssl client -connect 127.0.0.1:8080