Please visit https://github.com/openssl/openssl to get pkg and install.
$ mkdir testdata $ openssl genrsa -out ./testdata/server.key 2048
$ openssl req -new -x509 -key ./testdata/server.key -out ./testdata/server.pem -days 365