rbruenig / qperf

qperf is a performance measurement tool for QUIC similar to iperf
GNU General Public License v3.0
49 stars 8 forks source link

failed to load certificate:server.crt:No such file or directory #11

Closed h2cw2l closed 3 years ago

h2cw2l commented 3 years ago

image

How to solve this ?

Any reply will be appreciated.

davidfdzp commented 2 years ago

I solved it this way: ~/build-qperf$ openssl genrsa -des3 -out server.key 1024 Enter something as password, e.g. 0000

Then: ~/build-qperf$ openssl req -new -key server.key -out server.csr Enter required data.

~/build-qperf$ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt Enter required data.

Source: https://www.thegeekstuff.com/2009/07/Linux-Apache-mod-ssl-generate-key-csr-crt-file/

rbruenig commented 2 years ago

Hi, sorry for the late reply. I see this is already closed, but for future reference (will also add this to readme).

You can create the needed TLS files with the following one-liner:

openssl req -x509 -newkey rsa:4096 -keyout server.key -out server.crt -sha256 -days 365 -nodes -subj "/C=US/ST=Oregon/L=Portland/O=Company Name/OU=Org/CN=www.example.com"