0

我创建了一个像这样的自签名证书

#!/bin/bash

EXPIRE=3650

if [ $# -gt 1 ]; then

  EXPIRE=$2  

fi

mkdir -p $1
cd $1

openssl genrsa 2048 > $1.key
openssl req -new -x509 -nodes -sha1 -days $EXPIRE -key $1.key > $1.cert
openssl x509 -noout -fingerprint -text < $1.cert > $1.info

cat $1.cert $1.key > $1.pem
chmod 400 $1.key $1.pem

并将我的 apache vhost 配置为使用此证书。

现在我想知道我必须在客户端存储(chrome 或 firefox)中导入哪个文件来告诉浏览器一切正常!

4

0 回答 0