OpenSSL (Apache 2.2 + mod_ssl과 함께 제공되는 버전)을 사용하여 자체 서명 된 SSL 인증서를 만들려고합니다. OpenSSL 바이너리는 C:\Web\Apache2.2\bin
이고, 사용하고있는 설정 파일은 C:\Web\Apache2.2\conf\openssl.cnf
입니다. 나는 다음과 같은 명령을 실행 한 :자체 서명 SSL 인증서를 만들 때 오류가 발생했습니다.
(. 내가 더 읽을 수 있도록 줄 바꿈을 사용합니다)
openssl req -config ..\conf\openssl.cnf -new -out ..\conf\eduardo.csr
-keyout ..\conf\eduardo.pem
# Then I entered country code, province, city, etc.
# This step worked correctly.
openssl rsa -in ..\conf\eduardo.pem -out ..\conf\eduardo.key
# Then I entered my pass phrase.
openssl x509 -in ..\conf\eduardo.csr -out ..\conf\eduardo.cert
-req -signkey ..\conf\eduardo.key -days 1000000
그리고, 마지막 단계를 실행할 때, 내가 가진 다음과 같은 출력 :
Loading 'screen' into random state - done
Signature ok
subject=/C=PE/ST=Lima/L=Lima/...
Getting Private Key
unable to write 'random state' <--
두 번째 명령을 실행했을 때 C:\Web\OpenSSL\bin\.rnd
파일이 생성되었음을 확인했습니다. 그 파일과 관련된 어떤 식 으로든 오류가 있습니까? 무엇이 문제 일 수 있습니까?
추신 : 저는 이미 Google을 사용해 보았습니다. Linux에서만 작동하는 솔루션을 찾았습니다.
가능한 중복 [Windows Vista에서 OpenSSL에 RANDFILE을 작성하려면 어떻게합니까?] (http://stackoverflow.com/questions/2229723/how-do-i-make-openssl-write-the-randfile-on -windows-vista) – jww