-----开始证书----- MIIE ...... 1Ozy -----结束证书----- -----开始RSA私钥----- Proc-Type:4,ENCRYPTED DEK-Info:DES-EDE3-CBC,0950752701CB74AF
OmaLd ... hWh8GKd ----- END RSA私钥-----
答案 0 :(得分:1)
I answered my questions
Openssl> req -x509 -days 365 -newkey rsa:2048 -keyout any.pem -out any.pem
(pass phrase = secret)
Openssl> req -new -key -any.pem -out server.csr
Openssl> x509 -req -in server.csr -signkey any.pem -out rootcert.pem
答案 1 :(得分:0)
小更新以及如何运行
由于错误:140006379889088:error:02001002:system library:fopen:No such file or directory:crypto/bio/bss_file.c:74:fopen('-any.pem','r')
openssl req -x509 -days 365 -newkey rsa:2048 -keyout any.pem -out any.pem
openssl req -new -key any.pem -out server.csr #no more -any.pem
openssl x509 -req -in server.csr -signkey any.pem -out rootcert.pem