Blame SPECS/sscg.spec

271c93
%global provider        github
271c93
%global provider_tld    com
271c93
%global project sgallagher
271c93
%global repo sscg
271c93
# https://github.com/sgallagher/sscg
271c93
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
271c93
%global import_path     %{provider_prefix}
271c93
271c93
271c93
Name:           sscg
271c93
Version:        3.0.0
09c057
Release:        5%{?dist}
271c93
Summary:        Simple SSL certificate generator
271c93
271c93
License:        GPLv3+ with exceptions
271c93
URL:            https://%{provider_prefix}
271c93
Source0:        https://%{provider_prefix}/releases/download/%{repo}-%{version}/%{repo}-%{version}.tar.xz
271c93
271c93
BuildRequires:  gcc
271c93
BuildRequires:  libtalloc-devel
271c93
BuildRequires:  openssl-devel
271c93
BuildRequires:  popt-devel
271c93
BuildRequires:  libpath_utils-devel
271c93
BuildRequires:  meson
271c93
BuildRequires:  ninja-build
271c93
BuildRequires:  help2man
271c93
271c93
271c93
Patch0001: 0001-Drop-usage-of-ERR_GET_FUNC.patch
877bcf
Patch0002: 0002-Correct-certificate-lifetime-calculation.patch
09c057
Patch0003: 0003-Truncate-IP-address-in-SAN.patch
271c93
271c93
271c93
%description
271c93
A utility to aid in the creation of more secure "self-signed"
271c93
certificates. The certificates created by this tool are generated in a
271c93
way so as to create a CA certificate that can be safely imported into a
271c93
client machine to trust the service certificate without needing to set
271c93
up a full PKI environment and without exposing the machine to a risk of
271c93
false signatures from the service certificate.
271c93
271c93
%prep
271c93
%autosetup -p1
271c93
271c93
271c93
%build
271c93
%meson
271c93
%meson_build
271c93
271c93
%install
271c93
%meson_install
271c93
271c93
%check
271c93
%meson_test -t 10
271c93
271c93
%files
271c93
%license COPYING
271c93
%doc README.md
271c93
%{_bindir}/%{name}
271c93
%{_mandir}/man8/%{name}.8*
271c93
271c93
%changelog
09c057
* Wed Mar 09 2022 Stephen Gallagher <sgallagh@redhat.com> - 3.0.0-5
09c057
- Handle IP addresses in subjectAlternativeName correctly
09c057
- Resolves: rhbz#2061923
09c057
877bcf
* Fri Oct 29 2021 Stephen Gallagher <sgallagh@redhat.com> - 3.0.0-4
877bcf
- Correct certificate lifetime calculation
877bcf
- Resolves: rhbz#2017667
877bcf
271c93
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 3.0.0-3
271c93
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
271c93
  Related: rhbz#1991688
271c93
271c93
* Sat Aug 07 2021 Stephen Gallagher <sgallagh@redhat.com> - 3.0.0-2
271c93
- Drop usage of removed macro ERR_GET_FUNC()
271c93
- Related: rhbz#1964837
271c93
271c93
* Wed Jul 21 2021 Stephen Gallagher <sgallagh@redhat.com> - 3.0.0-1
271c93
- Release 3.0.0
271c93
- Support for OpenSSL 3.0
271c93
- Support for outputting named Diffie-Hellman parameter groups
271c93
- Support for CentOS Stream 9
271c93
- Resolves: rhbz#1984468
271c93
271c93
* Wed Jun 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.2-8
271c93
- Rebuilt for RHEL 9 BETA for openssl 3.0
271c93
  Related: rhbz#1971065
271c93
271c93
* Wed May 26 2021 Stephen Gallagher <sgallagh@redhat.com> - 2.6.2-7
271c93
- OpenSSL 3.0 compatibility: fix RSA key-generation test
271c93
- Resolves: rhbz#1964837
271c93
271c93
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.6.2-6
271c93
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
271c93
271c93
* Wed Mar 17 2021 Stephen Gallagher <sgallagh@redhat.com> - 2.6.2-5
271c93
- Fixing incorrect license declaration
271c93
271c93
* Wed Mar 17 2021 Stephen Gallagher <sgallagh@redhat.com> - 2.6.2-4
271c93
- Updating to rebuild against the latest glibc
271c93
271c93
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-3
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
271c93
271c93
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-2
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
271c93
271c93
* Tue Jun 23 2020 Stephen Gallagher <sgallagh@redhat.com> - 2.6.2-1
271c93
- Update to 2.6.2
271c93
- Handle very short and very long passphrases properly (fixes rhbz#1850183)
271c93
- Drop upstreamed patch
271c93
271c93
* Thu Apr 30 2020 Stephen Gallagher <sgallagh@redhat.com> - 2.6.1-4
271c93
- Rebuild with corrected ELN macro definitions
271c93
271c93
* Thu Apr 30 2020 Stephen Gallagher <sgallagh@redhat.com> - 2.6.1-3
271c93
- Don't bother running clang-format in the RPM build
271c93
- Lengthen the test timeout so ARM tests pass
271c93
271c93
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.1-2
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
271c93
271c93
* Thu Jan 09 2020 Stephen Gallagher <sgallagh@redhat.com> - 2.6.1-1
271c93
- Bugfixes from upstream
271c93
271c93
* Fri Dec 13 2019 Stephen Gallagher <sgallagh@redhat.com> - 2.6.0-2
271c93
- Fix incorrect help description for --client-key-file
271c93
271c93
* Fri Dec 13 2019 Stephen Gallagher <sgallagh@redhat.com> - 2.6.0-1
271c93
- Update to 2.6.0
271c93
- Can now generate an empty CRL file.
271c93
- Can now create and store a Diffie-Hellman parameters (dhparams) file.
271c93
- Support for setting a password on private keys.
271c93
- Support for generating a client authentication certificate and key.
271c93
- Better support for OpenSSL 1.0
271c93
271c93
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-3
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
271c93
271c93
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.1-2
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
271c93
271c93
* Wed Nov 28 2018 Stephen Gallagher <sgallagh@redhat.com> - 2.5.1-1
271c93
- Update to 2.5.1
271c93
- Fixes discovered by automated testing.
271c93
271c93
* Wed Nov 28 2018 Stephen Gallagher <sgallagh@redhat.com> - 2.5.0-1
271c93
- Update to 2.5.0
271c93
- Auto-detect the hash algorithm to use by default.
271c93
271c93
* Tue Nov 27 2018 Stephen Gallagher <sgallagh@redhat.com> - 2.4.0-1
271c93
- Update to 2.4.0
271c93
- Autodetect the minimum key strength from the system security level.
271c93
- Disallow setting a key strength below the system minimum.
271c93
271c93
- Drop upstreamed patches
271c93
271c93
* Mon Sep 17 2018 Stephen Gallagher <sgallagh@redhat.com> - 2.3.3-4
271c93
- Add a manpage.
271c93
271c93
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-3
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
271c93
271c93
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.3-2
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
271c93
271c93
* Fri Feb 02 2018 Stephen Gallagher <sgallagh@redhat.com> - 2.3.3-1
271c93
- Update to 2.3.3
271c93
- Do not overwrite destination files without --force
271c93
271c93
* Thu Jan 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 2.3.2-1
271c93
- Update to 2.3.2
271c93
- Properly support hostnames up to 64 characters
271c93
- Resolves: rhbz#1535537
271c93
271c93
* Tue Jan 02 2018 Stephen Gallagher <sgallagh@redhat.com> - 2.3.1-2
271c93
- Skip tests on 32-bit ARM for now
271c93
271c93
* Tue Jan 02 2018 Stephen Gallagher <sgallagh@redhat.com> - 2.3.1-1
271c93
- Update to 2.3.1
271c93
- Bundle popt 1.16 on older releases like EPEL.
271c93
271c93
* Mon Dec 18 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.3.0-1
271c93
- Update to 2.3.0
271c93
- Switch to meson build system
271c93
- Add support for non-DNS subjectAlternativeName values (issue #4)
271c93
271c93
* Thu Sep 21 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.2.0-1
271c93
- Reorder combined PEM file
271c93
- Resolves: RHBZ#1494208
271c93
271c93
* Wed Sep 20 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.1.0-1
271c93
- Add --email argument for setting emailAddress in the issuer
271c93
271c93
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-4
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
271c93
271c93
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
271c93
271c93
* Mon Apr 03 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.0.4-2
271c93
- Bump release to perform taskotron tests
271c93
271c93
* Tue Mar 21 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.0.4-1
271c93
- Update to 2.0.4
271c93
- Addresses a potential race-condition when the key and certificate share the
271c93
  same file.
271c93
271c93
* Wed Mar 08 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.0.3-1
271c93
- Update to 2.0.3
271c93
- Adds support for setting the file mode on the output certificates
271c93
  and keys.
271c93
271c93
* Fri Mar 03 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.0.2-1
271c93
- Update to 2.0.2
271c93
- Always run with umask(077)
271c93
271c93
* Fri Mar 03 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.0.1-1
271c93
- Update to 2.0.1
271c93
- Fix an issue with passing certificate lifetime explicitly
271c93
271c93
* Thu Feb 16 2017 Stephen Gallagher <sgallagh@redhat.com> - 2.0.0-1
271c93
- Update to 2.0.0
271c93
271c93
* Thu Feb 16 2017 Stephen Gallagher <sgallagh@redhat.com> - 1.1.0-6
271c93
- Exclude PPC64 from the build since it doesn't support linking to OpenSSL
271c93
271c93
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
271c93
271c93
* Wed Nov 23 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.1.0-4
271c93
- Use compat-openssl10-devel on F26+
271c93
271c93
* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
271c93
- https://fedoraproject.org/wiki/Changes/golang1.7
271c93
271c93
* Tue May 31 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.1.0-2
271c93
- Debundle spacelog
271c93
271c93
* Wed May 25 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.1.0-1
271c93
- Update to 1.1.0
271c93
- Add support for signing service keys with an existing CA
271c93
271c93
* Wed May 25 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.0.4-1
271c93
- Add support for exporting the CA private key
271c93
- Fix incorrect output from -version
271c93
- Add README.md
271c93
271c93
* Tue May 24 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.0.3-1
271c93
- Only sign certificates after all extensions have been added
271c93
271c93
* Mon May 23 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.0.2-1
271c93
- Generate x509v3 certificates
271c93
271c93
* Mon May 23 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.0.1-1
271c93
- Fix issue with temporary file creation
271c93
271c93
* Mon May 23 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.0.0-1
271c93
- New upstream release 1.0.0
271c93
- Rewritten in Go
271c93
- Runtime depends only on OpenSSL, no more Python
271c93
- Support for writing certificate and key in a single file
271c93
271c93
* Wed May 18 2016 Stephen Gallagher <sgallagh@redhat.com> - 0.4.1-4
271c93
- Add requirement on python-setuptools
271c93
271c93
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.1-3
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
271c93
271c93
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-2
271c93
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
271c93
271c93
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.1-1
271c93
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
271c93
271c93
* Mon Mar 30 2015 Stephen Gallagher <sgallagh@redhat.com> 0.4.1-1
271c93
- Change default CA location to match service certificate
271c93
- Improve error handling
271c93
271c93
* Tue Mar 24 2015 Stephen Gallagher <sgallagh@redhat.com> 0.4.0-1
271c93
- Spec file cleanups
271c93
- PEP8 Cleanups
271c93
- Make location arguments optional
271c93
271c93
* Mon Mar 23 2015 Stephen Gallagher <sgallagh@redhat.com> 0.3.0-1
271c93
- Rename to sscg
271c93
- Only build with default python interpreter
271c93
271c93
* Tue Mar 17 2015 Stephen Gallagher <sgallagh@redhat.com> 0.2.1-1
271c93
- Include the LICENSE file in the tarball
271c93
271c93
* Tue Mar 17 2015 Stephen Gallagher <sgallagh@redhat.com> 0.2-2
271c93
- Include the license in the build RPMs
271c93
271c93
* Tue Mar 17 2015 Stephen Gallagher <sgallagh@redhat.com> 0.2-1
271c93
- Add support for namedConstraints
271c93
- Add support for subjectAltNames
271c93
- Fix packaging issues from Fedora package review
271c93
271c93
* Mon Mar 16 2015 Stephen Gallagher <sgallagh@redhat.com> 0.1-2
271c93
- Update BuildRequires
271c93
271c93
* Mon Mar 16 2015 Stephen Gallagher <sgallagh@redhat.com> 0.1-1
271c93
- First packaging
271c93