OpenSSL certificate

105 views
Skip to first unread message

Сергей Солодягин

unread,
Apr 8, 2013, 2:41:27 AM4/8/13
to delphi...@googlegroups.com
Hi all,
How to create openssl certificates (cacert.pem, server.crt, server.key)?

Ronald Wyman

unread,
Apr 14, 2013, 6:06:14 PM4/14/13
to delphi...@googlegroups.com
I used OpenSLL from http://www.openssl.org/ with the following batch file.
 
Echo Off
REM uses signed SLL certificate to create key and PEM files
REM for Web Service
REM ----------------------------------------------------------
REM create certificate rquest .csr
REM change -passout & -subj information for requesting company
REM -----------------------------------------------------------------
openssl genrsa -des3 -passout pass:XXXXXX -out infacare.key 2048
openssl req -new -subj "/C=US/ST=PA/L=Trevose/O=<Company Name>/CN=*.domain.com" -key domain.key -out domain.csr
 
I sent the SLL request to RapidSSL https://www.rapidssl.com

Echo send certificate request to rapidssl to create .crt file
pause
REM Convert singed certificate to .PEM file
REM -----------------------------------------
openssl x509 -inform PEM -in domain.crt > domain.pem
 
Echo Off
REM creates SSL unsign certificate, key, and PEM file
REM for DXWeb Service
REM --------------------------------------------------
openssl req -passout pass:XXXX -x509 -days 1001 -newkey rsa:2048 -subj "/C=US/ST=New York/L=New York/O=<CompanyName>/OU=<CompanyName>/CN=localhost" -keyout server.key -out server.crt
openssl x509 -inform PEM -in server.crt > server.pem

Sergey Solodyagin

unread,
Sep 1, 2013, 2:28:59 AM9/1/13
to delphi...@googlegroups.com
Thanks.

понедельник, 8 апреля 2013 г., 10:41:27 UTC+4 пользователь Sergey Solodyagin написал:
Reply all
Reply to author
Forward
0 new messages