From 84267d31e72bec7c79df4b0de79d67088f83ce4c Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Apr 08 2020 18:08:45 +0000 Subject: koji-ssl-admin: add docstring for bundle_user_browser_cert() --- diff --git a/src/bin/koji-ssl-admin b/src/bin/koji-ssl-admin index 4dfd994..21e61b9 100755 --- a/src/bin/koji-ssl-admin +++ b/src/bin/koji-ssl-admin @@ -402,6 +402,11 @@ def sign(args): def bundle_user_browser_cert(crt_path, key_path, ca_crt_path, force): + """ + Combine a user's public .crt file and matching .key file into one file. + + Use the .pkcs12 bundle file to log into Kojiweb. + """ pkcs12_path = re.sub(r'\.key$', '_browser_cert.p12', key_path) write_pkcs12(crt_path, key_path, ca_crt_path, pkcs12_path, force) print('wrote %s for kojiweb - protect this private file' % pkcs12_path)