xin@ubuntu:/opt/lampp/etc/ssl.crt$ sudo openssl req -x509 -nodes -days 36500 -newkey rsa:2048 -keyout ./server.key -out ./server.crt Can't load /home/xin/.rnd into RNG 139698234061248:error:2406F079:random number generator:RAND_load_file:Cannot open file:../crypto/rand/randfile.c:88:Filename=/home/xin/.rnd Generating a RSA private key ........+++++ .....................+++++ writing new private key to './server.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:CN State or Province Name (full name) [Some-State]:Shandong Locality Name (eg, city) []:Zaozhuang Organization Name (eg, company) [Internet Widgits Pty Ltd]: Organizational Unit Name (eg, section) []: Common Name (e.g. server FQDN or YOUR name) []:localhost Email Address []:1583810565@qq.com