Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
2210541a 02/22/2024 12:53 PM Pablo Méndez Hernández

Make it possible to run `katello-ssl-tool` concurrently for different hosts

The use of a postrun script file in a "shared" location made it impossible before this fix.

```
Traceback (most recent call last):
File "/bin/katello-ssl-tool", line 11, in <module>...

ae06319a 02/22/2024 11:25 AM Evgeni Golov

cleanup

def233ee 02/22/2024 11:25 AM Evgeni Golov

ensure glibc-langpack-en is present

cddac51a 02/22/2024 11:25 AM Evgeni Golov

install docbook-utils from powertools on EL8

63ed688d 02/22/2024 11:25 AM Evgeni Golov

make test.sh work on EL9

0deedaab 02/22/2024 11:25 AM Evgeni Golov

stop testing on centos 7, start testing on centos stream 9

6f6818c5 02/22/2024 11:25 AM Evgeni Golov

drop Python 2.7 from tests, add 3.9

2.7 was EL7 which we do not support anymore
3.9 is EL9

571cae6c 03/14/2022 01:12 PM Eric Helms

Fixes #34604 - Revert "Revert "Switch from genrsa to genpkey""

This reverts commit e17529ebfc0590ff6140ab33bc19f67b95e8cbaa.

genrsa is deprecated and genpkey is the replacement. Additionally,
FIPS enablement enforces this.

737150f4 12/09/2021 04:55 PM Eric Helms

Bump version to 2.9.0

e17529eb 11/22/2021 01:42 PM Evgeni Golov

Revert "Switch from genrsa to genpkey"

This reverts commit 363f0e118c2b4b672f1ae8bcd3a08f0d0a0c72e5.

I left the CRYPTO change in sslToolConfig.py in, as it doesn't seem to
break anything.

75664538 11/18/2021 06:50 PM Ewoud Kohl van Wijngaarden

Remove trivial unused test functions

517040c0 11/18/2021 06:50 PM Ewoud Kohl van Wijngaarden

Rewrite RPM version comparison code

3ea13d8f 11/18/2021 04:41 PM Eric Helms

Release 2.8.1

73794b5f 11/18/2021 04:18 PM Evgeni Golov

drop checksum_type

nothing seems to use it since the original import of the code in
996da43f313ad4b500c104a8bbacb85324e4fc27

450dfbab 11/18/2021 04:18 PM Evgeni Golov

use latest centos containers from quay

2c52b49c 11/18/2021 04:18 PM Evgeni Golov

don't fail decoding data from RPM

some versions of the RPM bindings will return strings, some bytes, some
unicode… And only some of these know decode().
So let's just catch that AttributeError and assume there is nothing to
decode if it's raised.

Fixes running certs tools on EL 8.5+ which got a "fixed" RPM....

363f0e11 09/30/2021 10:00 AM Eric Helms

Switch from genrsa to genpkey

The openssl genrsa command is deprecated and does not work in all cases,
for example genrsa does not work on FIPS enabled EL8 hosts. This
switches to using genpkey and aes256 for crypto rather than the
deprecated des3.

0f70b4ff 09/30/2021 10:00 AM Eric Helms

Do not set the RPM digest algorithm

Hard coding the RPM digest alogrithm used can lead to RPMs that
do not work on some platforms like a FIPS enabled EL8 system. This
drops the parameter and lets the system dictate the values. This
change originally existed to support EL5 systems that needed the...

16a18c63 06/04/2021 12:22 PM Eric Helms

Release 2.8.0

366d56f0 06/02/2021 12:16 AM Eric Helms

Do not generate certificates in text format

Prior to this change certificates were generated in text format
which means they included as a header the x509 metadata information
rather than just the PEM encoded certificate. For some applications
this text based format can break them. In other cases, such as...

bf754746 09/14/2020 05:43 PM Ewoud Kohl van Wijngaarden

Remove unused exception

945ad3e7 09/14/2020 05:41 PM Ewoud Kohl van Wijngaarden

Remove unused getTarballFilename function

e2d3a1db9bbbaffcec447b2006091aee2c372160 removed the last caller of this
function.

5ce25ce2 09/14/2020 05:39 PM Ewoud Kohl van Wijngaarden

Remove incSerial

This method effectively does int(hex(n), 16) + 1 with additional
safeguards. However, since n is already an int, it's entirely redundant
and it can be simplified to n = n + 1.

6e10e756 09/11/2020 01:44 PM Eric Helms

Release 2.7.3

13375fae 09/11/2020 01:43 PM Evgeni Golov

don't use eval() to convert hex strings to integers

3464954c 09/11/2020 12:08 PM Eric Helms

Bump version to 2.7.2

c2252455 09/11/2020 12:08 PM Evgeni Golov

add a bad-serial test

ab9c6b50 09/11/2020 12:08 PM Evgeni Golov

generate correct serials on Python 3

fixSerial is supposed to make the serial have an even number of digits.

On Python2 dividing by an integer yields a different result than a
float:

>>> 5/2.0
2.5
>>> 5/2
2

But the same does not hold true for Python3:...

f7626f50 06/09/2020 08:05 PM Eric Helms

Bump version to 2.7.1

ef4da5c8 06/09/2020 08:04 PM Eric Helms

Bump version to 2.6.2

c6b1f382 06/04/2020 01:19 PM Ewoud Kohl van Wijngaarden

Add README

ec22861c 06/04/2020 01:19 PM Ewoud Kohl van Wijngaarden

Switch to Github Actions

cb892734 06/01/2020 11:44 AM Ewoud Kohl van Wijngaarden

Close file descriptors when possible

236f05f9 05/28/2020 09:02 PM Ewoud Kohl van Wijngaarden

Remove unused functions

8fff543e 05/28/2020 09:01 PM Ewoud Kohl van Wijngaarden

Drop unique and setIntersection functions

1e855f29 05/28/2020 09:01 PM Ewoud Kohl van Wijngaarden

Fixes #15932 - Stricter check on file globs

When creating a certificate named foreman-proxy-client and then one for
foreman-proxy meant that the glob would match the client. This meant it
created foreman-proxy-client-1.0-1 and then foreman-proxy-1.0-2 even...

6d69156c 05/28/2020 09:00 PM Ewoud Kohl van Wijngaarden

Drop katello-sudo-ssl-tool wrapper

81864a58 05/28/2020 09:00 PM Ewoud Kohl van Wijngaarden

Implement katello-ssl-tool via console_scripts

9d7420d7 05/28/2020 08:55 PM Ewoud Kohl van Wijngaarden

Remove checksum.py by checking file contents

There isn't really a difference between reading contents and comparing
versus reading the contents and comparing their hashes. This avoids
using the md5 hashing algorithm.

22a1c2fd 05/21/2020 01:22 PM Ewoud Kohl van Wijngaarden

Simplify value assignment

19f94aea 05/12/2020 09:18 PM Jonathon Turel

Fixes #29724 - Increase cert bits to 4096

2e9aa77d 04/22/2020 11:51 AM Eric Helms

Bump version to 2.6.1

e6884d86 04/22/2020 11:51 AM Eric Helms

Ensure to decode err stream as utf-8 for EL8

609149dc 09/17/2019 12:29 PM Ewoud Kohl van Wijngaarden

Remove unused constants

dc85f213 09/13/2019 04:57 PM Ewoud Kohl van Wijngaarden

Release 2.6.0

e2d3a1db 09/13/2019 04:45 PM Ewoud Kohl van Wijngaarden

Remove unused functions

c8519430 09/13/2019 04:22 PM Ewoud Kohl van Wijngaarden

Stop generating a tarbal with certificates

This tarball is not used within Katello and only the RPMs are relevant.

550b3d06 09/13/2019 02:52 PM Ewoud Kohl van Wijngaarden

Add a test for existing certificates

41df2176 09/13/2019 02:39 PM Ewoud Kohl van Wijngaarden

Refactor tests to be usable locally and extendable

By creating a tests directory that can also be executed locally in a
temporary directory it becomes easier to test locally. It's also easy to
add additional tests.

88bc9aaf 09/13/2019 02:01 PM Ewoud Kohl van Wijngaarden

Ignore *.egg-info in git

This allows local installations in a virtual environment

e1a644ec 09/13/2019 09:25 AM Ewoud Kohl van Wijngaarden

Update a docstring to reflect the body

e8703385 03/05/2019 03:03 PM Eric Helms

Release 2.5.3

0308f1e3 03/05/2019 02:25 PM Eric Helms

Release 2.5.2

c02b388c 03/05/2019 02:24 PM Evgeni Golov

simplify sortRPMs

c2823674 03/05/2019 02:24 PM Evgeni Golov

run the container tests

4d01d7a5 03/05/2019 02:24 PM Evgeni Golov

hdrLabelCompare expects two rpm.hdr, not tuples or anything else

`sortRPMs` should only pass `rpm.hdr` to `hdrLabelCompare`, not tuples
of `(rpm.hdr, path)` as they are in the `helper` list.

1398fa7c 03/05/2019 02:24 PM Evgeni Golov

allow running tests inside a container

this allows to run test.sh inside a container with smth like:

podman run -v $(pwd):/app:Z --workdir=/app centos:7 bash .travis/test.sh

it also adds tests that the generated RPM is actually installable and
uncovers an issue when comparing the installed RPM to the generated one:...

a5682327 03/01/2019 08:55 PM Evgeni Golov

always explicitly decode UTF-8

otherwise decode() on Python2 will default to ASCII and thus we end up
with errors like this:

ERROR: unhandled exception occurred:
Traceback (most recent call last):
File "/bin/katello-ssl-tool", line 51, in &lt;module&gt;...
c3313b91 02/28/2019 12:36 PM Eric Helms

Release 2.5.1

9bc26ad2 02/28/2019 12:36 PM Evgeni Golov

Refs #26188 - drop shebang from katello_ssl_tool.py

it's not meant to be called directly

78868d39 02/27/2019 12:59 PM Eric Helms

Release 2.5.0

595c1f85 02/27/2019 12:50 PM Eric Helms

Make python3 compatible and add Travis

acb46f74 02/11/2019 08:27 PM Chris Duryee

Merge pull request #1 from sean797/20021

Fixes #20021 - Optionally generate CA public cert with other CAs certs

7c703a4f 11/19/2018 02:04 PM Lachlan Simpson

Update katello-ssl-tool man page

Some small grammatical fixes and improvements.
Changed reference from ntpd to chronyd.

a1f5bc0e 06/16/2017 08:54 AM Sean O'Keeffe

Refs #20021 - Optionally generate CA public cert with other CAs certs included

10fdc54f 07/25/2015 02:41 PM Eric Helms

Remove spec file in favor of katello-packaging repository

313165e1 07/07/2015 01:41 PM Stephen Benjamin

Automatic commit of package [katello-certs-tools] release [2.4.0-1].

cdff52ab 07/07/2015 01:37 PM Stephen Benjamin

Automatic commit of package [katello-certs-tools] minor release [2.3.0-2].

9bd7f884 06/12/2015 01:02 PM Eric Helms

Automatic commit of package [katello-certs-tools] release [2.3.0-1].

b68836ab 06/10/2015 08:52 PM Roger Spencer

refs #10777 Use sha256 as default signing algorithm.

sha1 has been deprecated by many browsers and throws warnings when the
certificate expires after 12/31/2016.

sha256 should be good for awhile.

772a4ebf 12/19/2014 08:15 PM David Davis

Automatic commit of package [katello-certs-tools] release [2.2.0-1].

ce7d68fa 09/12/2014 01:55 PM Justin Sherrill

Automatic commit of package [katello-certs-tools] release [2.1.0-1].

b9b37ba2 09/12/2014 01:55 PM Justin Sherrill

bumping version to 2.1

be843cbf 09/12/2014 01:52 PM Justin Sherrill

Automatic commit of package [katello-certs-tools] release [2.0.1-1].

42adb42d 09/12/2014 01:52 PM Justin Sherrill

bumping version to 2.0

694edc71 03/14/2014 02:55 PM Jason Montleon

add minimum openssl version

93e841ba 03/07/2014 07:26 PM Eric Helms

Automatic commit of package [katello-certs-tools] release [1.5.2-1].

6886f0ca 03/04/2014 11:13 PM Eric Helms

Removing dependence on /usr/share/katello and turning into a stand
alone katello-certs-tools package. Includes updates to support
specifying the certs deployment directory and using a password file to
specify the password for cert generation.

4ac371aa 10/11/2013 09:45 PM Partha Aji

Automatic commit of package [katello-certs-tools] release [1.5.1-1].

cb8fe606 10/11/2013 09:45 PM Partha Aji

Bumping package versions for 1.5

733d3f27 09/04/2013 07:22 PM Ivan Necas

Automatic commit of package [katello-certs-tools] release [1.4.4-1].

15280a4a 09/04/2013 10:22 AM Ivan Necas

Support for generating client certs

a87563e5 09/03/2013 09:09 PM Partha Aji

Automatic commit of package [katello-certs-tools] release [1.4.3-1].

07764008 04/28/2013 01:02 AM Justin Sherrill

Automatic commit of package [katello-certs-tools] release [1.4.2-1].

996da43f 04/27/2013 07:53 PM Justin Sherrill

Add 'certs-tools/' from commit '5111c76d8d4b3a88da112166d35360cd08c05f46'

git-subtree-dir: certs-tools
git-subtree-mainline: ee9c3d367d02d69ae2b7e5aa81de5442c203cf46
git-subtree-split: 5111c76d8d4b3a88da112166d35360cd08c05f46