Показать полную графическую версию : Как создать сертификат?
password
14-01-2003, 10:40
Уважаемые, не подскажите ли как самому создать свой сертификат?
vasketsov
14-01-2003, 14:26
password
самому создать свой сертификат
Так не бывает.
Как его проверять будут?
С какой стати они ему будут доверять?
Короче, его покупают либо генерят тем, что куплено, если это допустимо политикой, например, в интранете работает сервер сертификатов.
password
15-01-2003, 11:37
Спасибо, вопрос снимается.
Very brief introduction to create a CA and a CERT
Author: Gregory Neil Shapiro
To make certificate authority:
mkdir CA
cd CA
mkdir certs crl newcerts private
echo "01" > serial
cp /dev/null index.txt
cp /usr/local/openssl/openssl.cnf.sample openssl.cnf
vi openssl.cnf (set values)
openssl req -new -x509 -keyout private/cakey.pem -out cacert.pem -days 365 -config openssl.cnf
To make a new certificate:
cd CA (same directory created above)
openssl req -nodes -new -x509 -keyout newreq.pem -out newreq.pem -days 365 -config openssl.cnf
(certificate and private key in file newreq.pem) To sign new certificate with certificate authority:
cd CA (same directory created above)
openssl x509 -x509toreq -in newreq.pem -signkey newreq.pem -out tmp.pem
openssl ca -config openssl.cnf -policy policy_anything -out newcert.pem -infiles tmp.pem
rm -f tmp.pem
(newcert.pem contains signed certificate, newreq.pem still contains unsigned certificate and private key)
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.