在Linux上使用certutil实现证书锁定,可以通过以下步骤:
sudo apt-get install libnss3-tools
certutil -N -d sql:/path/to/certdir
其中,/path/to/certdir
是证书数据库存储路径。
certutil -A -n "Certificate Name" -t "C,," -d sql:/path/to/certdir -i /path/to/certificate.crt
其中,"Certificate Name"
是证书名称,/path/to/certdir
是证书数据库存储路径,/path/to/certificate.crt
是证书文件路径。
certutil -M -n "Certificate Name" -t ",," -d sql:/path/to/certdir
其中,"Certificate Name"
是证书名称,/path/to/certdir
是证书数据库存储路径。
通过以上步骤,就可以使用certutil在Linux上实现证书锁定。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>