Olav Reinert
338c455133
- Update to 3.1.2: * Command 'renew': Remove option 'nopass' * find_x509_types_dir(): Remove excess checks * Remove function find_x509_types_dir() * For 'init-pki hard' only, always try to create a new pki/vars file * Introduce global option '--notext|--no-text' * Minor style change * Introduce command 'set-pass' * Fix shellcheck warning for command set-pass case statement * cleanup(): Exit correctly for SIGINT * Update help: Standardise output; Improve code; Reprioritise options * vars.example: Add EASYRSA_NO_PASS and wrap long lines * Use 'unset -v', consistently * build-ca: Improve passphrase input mechanism * Remove global options '--verbose' and '--quiet' as not required * Remove all prerequisite code to build a safe SSL config file * Rename temp files to reflect the purpose * easyrsa_openssl(): Always set OPENSSL_CONF to EasyRSA safe SSL config * Replace SSL calls for serial number with function ssl_cert_serial() * Introduce OpenSSL only mode: No Safe SSL Config File * ff_date_to_cert_date(): Correct the input format for busybox date * Re-order easyrsa_openssl() temp-file assignment * Stop EASYRSA_DEBUG interfering with SSL output from subshells * Status reports: Recognise Expired certificates * New function safe_set_var(): Safe wrapper for set_var() * Windows, build-ca: Add input password to re-open private key * Renewal: General code improvements * cleanup(): General improvements - Create KNOWN error exit * build-ca: Change FATAL error to warning for old openssl-easyrsa.cnf * Allow --fix-offset to create post-dated certificates OBS-URL: https://build.opensuse.org/request/show/1058877 OBS-URL: https://build.opensuse.org/package/show/network:vpn/easy-rsa?expand=0&rev=40
62 lines
2.2 KiB
RPMSpec
62 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package easy-rsa
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
# Copyright (c) 2015 Stefan Jakobs.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define pname EasyRSA
|
|
Name: easy-rsa
|
|
Version: 3.1.2
|
|
Release: 0
|
|
Summary: CLI utility to build and manage a PKI CA
|
|
License: GPL-2.0-or-later
|
|
Group: Productivity/Networking/Security
|
|
URL: https://github.com/OpenVPN/easy-rsa
|
|
Source: https://github.com/OpenVPN/%{name}/releases/download/v%{version}/%{pname}-%{version}.tgz
|
|
Source1: https://github.com/OpenVPN/%{name}/releases/download/v%{version}/%{pname}-%{version}.tgz.sig
|
|
# https://github.com/OpenVPN/easy-rsa/tree/master/release-keys
|
|
Source2: %{name}.keyring
|
|
Patch100: suse-packaging.patch
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
easy-rsa is a CLI utility to build and manage a Public Key Infrastructure
|
|
(PKI). Once the Certificate Authority (CA) is created, you can request and sign
|
|
certificates, including sub-CAs, and create Certificate Revokation Lists (CRL).
|
|
|
|
%prep
|
|
%setup -q -n %{pname}-%{version}
|
|
%patch100
|
|
|
|
%build
|
|
|
|
%install
|
|
install -dm0755 %{buildroot}/%{_sysconfdir}/%{name}/
|
|
install -dm0755 %{buildroot}/%{_sysconfdir}/%{name}/x509-types
|
|
install -Dm0644 vars.example %{buildroot}/%{_sysconfdir}/%{name}/
|
|
install -Dm0644 openssl-easyrsa.cnf %{buildroot}/%{_sysconfdir}/%{name}/
|
|
install -Dm0644 x509-types/* %{buildroot}/%{_sysconfdir}/%{name}/x509-types/
|
|
install -Dm0755 easyrsa %{buildroot}/%{_bindir}/easyrsa
|
|
|
|
%files
|
|
%doc ChangeLog README.md README.quickstart.md
|
|
%doc doc/*
|
|
%license COPYING.md gpl-2.0.txt
|
|
%{_bindir}/easyrsa
|
|
%config(noreplace) %{_sysconfdir}/%{name}
|
|
|
|
%changelog
|