Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1287246

Summary: spacecmd: cannot add SSL certs / keys to repo
Product: [Community] Spacewalk Reporter: David Haines <david.haines>
Component: ClientsAssignee: Gennadii Altukhov <galtukho>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.4CC: galtukho, tkasparek
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-16 07:55:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1484117    

Description David Haines 2015-12-01 20:10:53 UTC
Description of problem: Spacewalk supports SSL certificates and keys on a per-repo basis; although their selection is available via the Spacewalk web client, such functionality is not exposed by spacecmd. Adding this will likely implicate the modification of repo_create and repo_details. It may also require the creation of commands that correspond to repo_rename and repo_updateurl.

Comment 1 Gennadii Altukhov 2016-01-11 10:59:53 UTC
Taking...

Comment 2 Gennadii Altukhov 2016-01-20 09:19:21 UTC
spacewalk.git:

e1c5895 1287246 - spacecmd: repo_details show 'None' if repository doesn't have SSL Certtificate
e45dc7a 1287246 - Added fixes to API methods
a4b2a21 1287246 - spacecmd: Added functions to add/edit SSL certificates for repositories
fa8cb26 1287246 - Added new API methods to add new repository with SSL certificates or update existing one

Changes to fix:

0) Added/Changed API Methods to add/set SSL Certificates for repositories:

1) 'repo_change' command was changed, so now it's possible to specify SSL Certificates (but it's not necessary), e.g.:

repo_create: Create a user repository
usage: repo_create <options>

options:
  -n, --name   name of repository
  -u, --url    url of repository

  --ca         SSL CA certificate (not required)
  --cert       SSL Client certificate (not required)
  --key        SSL Client key (not required)

2) added new command 'repo_updatessl', e.g.:

repo_updatessl: Change the SSL certificates of a user repository
usage: repo_updatessl <options>
options:
  --ca         SSL CA certificate (not required)
  --cert       SSL Client certificate (not required)
  --key        SSL Client key (not required)

3) added changes to command 'repo_details', so it can show details about SSL certificates

Comment 3 Tomáš Kašpárek 2016-06-16 07:55:49 UTC
Spacewalk 2.5 was released.

Comment 4 Eric Herget 2017-09-28 18:10:33 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.