| |
@@ -402,9 +402,12 @@
|
| |
|
| |
|
| |
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)
|
| |
- # If this is a user cert, and we have a matching .key file in the same
|
| |
- # directory, then generate a pkcs12 bundle file with the cert and key.
|
| |
write_pkcs12(crt_path, key_path, ca_crt_path, pkcs12_path, force)
|
| |
print('wrote %s for kojiweb - protect this private file' % pkcs12_path)
|
| |
print('to import %s into browser, the password is "koji"' % pkcs12_path)
|
| |
Add a docstring for the
bundle_user_browser_cert()
method, and remove a comment I accidentally copy-and-pasted from thesign()
method that calls thisbundle_user_browser_cert()
method.