#!/bin/bash echo Creating User Koji environment if [ ! -d ~/.koji ]; then mkdir ~/.koji fi if [ ! -f ~/.koji/client.crt ]; then if [ -f ~/.fedora.cert ]; then cp ~/.fedora.cert ~/.koji/client.crt else echo "you need a client cert please download one from https://admin.fedoraproject.org/accounts/gen-cert.cgi" echo "Save it to ~/.koji/client.crt" echo "Then run this script again" exit fi fi if [ -f ~/.fedora-upload-ca.cert ]; then cp ~/.fedora-upload-ca.cert ~/.koji/clientca.crt else wget "http://fedoraproject.org/wiki/PackageMaintainers/BuildSystemClientSetup?action=AttachFile&do=get&target=fedora-upload-ca.cert" -O ~/.koji/clientca.crt fi if [ -f ~/.fedora-server-ca.cert ]; then cp ~/.fedora-server-ca.cert ~/.koji/serverca.crt else wget "http://fedoraproject.org/wiki/PackageMaintainers/BuildSystemClientSetup?action=AttachFile&do=get&target=fedora-server-ca.cert" -O ~/.koji/serverca.crt fi cat > ~/.koji/config < Preferences -> Advanced Click "View Certificates" On "Your Certificates" tab, click "Import" Select fedora-client-cert.p12 Type the export password (if you specified one) You should see your username appear under "Fedora Project" - You should now be able to click the "login" link on the website successfully" openssl pkcs12 -export -in ~/.koji/client.crt -CAfile ~/.koji/clientca.crt -out fedora-client-cert.p12