2017-06-05 19:22:20 -07:00
|
|
|
#!/bin/bash
|
2023-03-28 23:48:58 +01:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
2023-08-11 09:12:13 -04:00
|
|
|
# SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 23:48:58 +01:00
|
|
|
|
2017-06-05 19:22:20 -07:00
|
|
|
set -e
|
|
|
|
|
|
|
|
openssl req -new -sha256 -nodes -out ../key/ourdomain.csr -newkey rsa:2048 -keyout ../key/ourdomain.key -config ../key/ourdomain.cfg
|
|
|
|
openssl ca -batch -config myca.conf -notext -in ../key/ourdomain.csr -out ../key/ourdomain.cer
|
|
|
|
rm ../key/ourdomain.csr
|
2023-11-07 14:57:52 -05:00
|
|
|
|
|
|
|
openssl req -new -sha256 -nodes -out ../key/ourdomain_server.csr -newkey rsa:2048 -keyout ../key/ourdomain_server.key -config ../key/ourdomain_server.cfg
|
|
|
|
openssl ca -batch -config myca.conf -notext -in ../key/ourdomain_server.csr -out ../key/ourdomain_server.cer -extensions v3_req -extfile ../key/ourdomain_server.cfg
|
|
|
|
rm ../key/ourdomain_server.csr
|