1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
5 # Usage: ./cert-gen.sh <externalIP>
8 echo "ERROR: A floating IP must be supplied."
9 echo "Usage: $0 <externalIP>"
15 distinguished_name = $1
16 x509_extensions = v3_req
20 CN = arvados-test-cert
23 keyUsage = keyEncipherment, dataEncipherment, digitalSignature
24 extendedKeyUsage = serverAuth
25 subjectAltName = @alt_names
30 openssl req -newkey rsa:2048 -nodes -keyout ./config/ssl/key -x509 -days 365 -out ./config/ssl/cert -config ssl.conf