mirror of
https://github.com/ruby/ruby.git
synced 2026-01-28 13:04:22 +00:00
The private key is replaced with a public known test key published at [RFC 9500]. Also lifetime has been extended to 10 years from 4 years. [RFC 9500]: https://www.rfc-editor.org/rfc/rfc9500.html https://github.com/ruby/net-http/commit/4ab6c4a500
16 lines
543 B
Makefile
16 lines
543 B
Makefile
all:
|
|
|
|
regen_certs:
|
|
touch server.key
|
|
make server.crt
|
|
|
|
cacert.pem: server.key
|
|
openssl req -new -x509 -days 3650 -key server.key -out cacert.pem -subj "/C=JP/ST=Shimane/L=Matz-e city/O=Ruby Core Team/CN=Ruby Test CA/emailAddress=security@ruby-lang.org"
|
|
|
|
server.csr:
|
|
openssl req -new -key server.key -out server.csr -subj "/C=JP/ST=Shimane/O=Ruby Core Team/OU=Ruby Test/CN=localhost"
|
|
|
|
server.crt: server.csr cacert.pem
|
|
openssl x509 -days 3650 -CA cacert.pem -CAkey server.key -set_serial 00 -in server.csr -req -out server.crt
|
|
rm server.csr
|