tweak names of keys in new user bundle

This commit is contained in:
Trevor Batley 2024-10-05 17:28:10 +10:00
parent b205fa4dda
commit 87099540c8

View File

@ -75,16 +75,16 @@ trap cleanup EXIT
pushd $WORK_DIR
mkdir -p .koji
cp $KOJI_PKI_DIR/$NEW_USER.pem $WORK_DIR/.koji/client.crt
cp $KOJI_PKI_DIR/$NEW_USER.pem $WORK_DIR/.koji/koji_$NEW_USER.pem
cp $KOJI_PKI_DIR/koji_ca_bundle.pem $WORK_DIR/.koji/koji_ca_bundle.pem
cp $KOJI_PKI_DIR/certs/"$NEW_USER"_browser_cert.p12 $WORK_DIR/.koji/.
cp $KOJI_PKI_DIR/certs/"$NEW_USER"_browser_cert.p12 $WORK_DIR/.koji/koji_"$NEW_USER"_browser_cert.p12
cat > $WORK_DIR/.koji/config <<- EOT
[koji]
server = $KOJI_URL/kojihub
weburl = $KOJI_URL/koji
topurl = $KOJI_URL/kojifiles
topdir = $KOJI_DIR
cert = ~/.koji/client.crt
cert = ~/.koji/koji_$NEW_USER.pem
serverca = ~/.koji/koji_ca_bundle.pem
anon_retry = true
authtype = ssl