Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh
taskd
taskd.generate.client.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File taskd.generate.client.sh of Package taskd
#!/bin/bash set -e CERTTOOL=certtool VARS=$1 NAME=$2 test -n "${NAME}" || exit 1 unset BITS unset ORGANIZATION unset CN . "${VARS}" t=`mktemp` trap "rm -f \"${t}\"" EXIT # Create a client key. $CERTTOOL \ --generate-privkey \ --bits "$BITS" \ --outfile "${NAME}.key.pem" chmod 600 "${NAME}.key.pem" # Sign a client cert with the key. tee "${t}" <<EOF organization = $ORGANIZATION cn = $CN tls_www_client encryption_key signing_key EOF $CERTTOOL \ --generate-certificate \ --load-privkey "${NAME}.key.pem" \ --load-ca-certificate ca.cert.pem \ --load-ca-privkey ca.key.pem \ --template "${t}" \ --outfile "${NAME}.cert.pem" chmod 600 "${NAME}.cert.pem"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor