xref: /third_party/node/test/fixtures/keys/selfsigned-no-keycertsign/https_renew_cert.sh
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/keys/selfsigned-no-keycertsign/
11cb0ef41Sopenharmony_ci#!/usr/bin/env bash
21cb0ef41Sopenharmony_ciset -euo pipefail
31cb0ef41Sopenharmony_cishopt -s inherit_errexit
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_cicd -- "$(dirname -- "${BASH_SOURCE[0]}")"
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciif [ ! -f key.pem ]; then
81cb0ef41Sopenharmony_ci  openssl genrsa -out key.pem 2048
91cb0ef41Sopenharmony_cifi
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ciopenssl req -sha256 -new -key key.pem -subj "/CN=localhost" | \
121cb0ef41Sopenharmony_ci  openssl x509 -req -extfile cert.conf -extensions v3_req -days 3650 -signkey key.pem -out cert.pem
131cb0ef41Sopenharmony_ciopenssl x509 -in cert.pem -noout -text
14

Indexes created Thu Nov 07 10:32:03 CST 2024