Nginx configure https to display unsafe links

use openssl to automatically generate keys locally, and access tests show insecure connections. How to solve this problem?
configuration file is as follows:
server {

    listen      443;
    server_name  localhost;
    **ssl on;                                
    ssl_certificate ssl/server.crt;        
    ssl_certificate_key ssl/server.key;    
    ssl_protocols SSLv2 SSLv3 TLSv1;
    ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
    ssl_prefer_server_ciphers on;**
    -sharpcharset koi8-r;

    -sharpaccess_log  logs/host.access.log  main;

    location / {
        root   html;
        index  index.html index.htm;
    }

}
access test results are as follows:

Mar.04,2021

because you don't have a certificate configured, you can learn that Let's Encrypt, can get a free certificate

Menu