Compare commits

..

32 commits

Author SHA1 Message Date
Packit
26e4189551 Update to 1.4.0 upstream release
- Resolves: rhbz#2427015

Upstream tag: 1.4.0
Upstream commit: 5f5ac6fe

Commit authored by Packit automation (https://packit.dev/)
2026-01-04 15:15:35 +00:00
Nikos Mavrogiannopoulos
f0efb943d8 Merge #26 Update ocserv-genkey 2025-08-16 14:31:39 +00:00
Fedora Release Engineering
f7c89057b3 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-24 23:23:30 +00:00
indeo mail
32d376716d Update ocserv-genkey
OCServ genkey is a good tool in OCServ
The default key type of certtool is rsa, but rsa may not be a good choice
I tried to add a logic to the ocserv genkey. The key type can be determined according to the parameters. If there is no input parameter, it will be generated according to the default rsa, which does not conflict with the previous use logic.
After installing OCSERV, I can directly run `ocserv-genkey ecdsa` to generate ecdsa based certificates.
2025-07-23 11:13:11 +00:00
Benjamin A. Beasley
ae84a30d03 Rebuilt for llhttp 9.3.0 2025-05-18 07:09:54 -04:00
Zbigniew Jędrzejewski-Szmek
470ea11ba7 Add sysusers.d config file to allow rpm to create users/groups automatically
See https://fedoraproject.org/wiki/Changes/RPMSuportForSystemdSysusers.
2025-02-11 15:53:26 +01:00
Björn Esser
e45ab8cbe6
Add explicit BR: libxcrypt-devel
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2025-02-01 19:56:09 +01:00
Fedora Release Engineering
2f4d194860 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-17 21:15:56 +00:00
Fedora Release Engineering
5817038376 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-18 20:29:03 +00:00
Nikos Mavrogiannopoulos
2a60a76b0b URI: corrected
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-05-06 08:34:49 +02:00
Nikos Mavrogiannopoulos
324fe9b5f4 Updated project URI 2024-05-06 08:26:18 +02:00
Nikos Mavrogiannopoulos
dd77e0d169 add llhttp dependency
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-05-06 08:21:15 +02:00
Packit
323c089d82 Update to 1.3.0 upstream release
- Resolves: rhbz#2279186

Upstream tag: 1.3.0
Upstream commit: 92dba6e4

Commit authored by Packit automation (https://packit.dev/)
2024-05-05 20:21:54 +00:00
Nikos Mavrogiannopoulos
589cf4fe6b spec: added ipcalc and updated the location of ocserv-fw
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2024-01-25 09:14:39 +01:00
Packit
72eba2e3ca [packit] 1.2.4 upstream release
Upstream tag: 1.2.4
Upstream commit: 7ced730f
2024-01-24 22:32:00 +00:00
Fedora Release Engineering
1a032ccb5d Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-21 10:38:32 +00:00
Nikos Mavrogiannopoulos
1ea8c5c3f4 Use the SPDX identifiers for license 2023-10-13 22:00:54 +02:00
Nikos Mavrogiannopoulos
ff5b73813e Merge #9 Update rawhide to upstream release 1.2.2 2023-09-21 20:08:56 +00:00
Nikos Mavrogiannopoulos
e6f6c537c3 explicitly set package name in packit 2023-09-21 21:55:46 +02:00
Packit
79e827501f [packit] 1.2.2 upstream release
Upstream tag: 1.2.2
Upstream commit: f6164756
2023-09-21 19:44:09 +00:00
Nikos Mavrogiannopoulos
acf2636e4a config: increased log level to 3
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-08-29 11:00:27 +02:00
Nikos Mavrogiannopoulos
9a1b8aec55 make check: no longer use xfail for missing file 2023-08-23 09:48:20 +02:00
Packit
ec00a93d97 [packit] 1.2.1 upstream release
Upstream tag: 1.2.1
Upstream commit: 895a23f3

If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork):
```
git fetch https://src.fedoraproject.org/forks/packit/rpms/ocserv.git refs/heads/*:refs/remotes/packit/*
git checkout packit/1.2.1-rawhide-update-pull_from_upstream
```
2023-08-23 07:24:35 +00:00
Nikos Mavrogiannopoulos
95752d9463 corrected download link 2023-08-23 09:21:15 +02:00
Nikos Mavrogiannopoulos
9433e7b623 updated URIs of source 2023-08-22 19:31:54 +02:00
Nikos Mavrogiannopoulos
e9edd55d41 use %systemd_postun_with_restart
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2023-08-15 19:16:12 +02:00
Fedora Release Engineering
ca1630fd18 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 17:39:51 +00:00
Nikos Mavrogiannopoulos
0d6a1f1a42 Added packit integration 2023-07-18 20:43:09 +02:00
Nikos Mavrogiannopoulos
a9ef7caf17 Updated to 1.2.0 2023-07-11 18:11:59 +02:00
Nikos Mavrogiannopoulos
4dfb15142e use %autorelease and %autochangelog 2023-07-11 17:12:11 +02:00
Nikos Mavrogiannopoulos
8536d0e5f0 Backported fixes for expired certificates 2023-06-22 12:32:50 +02:00
Nikos Mavrogiannopoulos
7bc9463df4 updated to 1.1.7 2023-05-07 14:42:36 +02:00
8 changed files with 45 additions and 18 deletions

8
.gitignore vendored
View file

@ -237,9 +237,17 @@
/ocserv-1.1.4.tar.xz.sig
/ocserv-1.1.6.tar.xz.sig
/ocserv-1.1.6.tar.xz
/ocserv-1.1.7.tar.xz
/ocserv-1.1.7.tar.xz.sig
/ocserv-1.2.0.tar.xz
/ocserv-1.2.0.tar.xz.sig
/ocserv-1.2.1.tar.xz
/ocserv-1.2.1.tar.xz.sig
/ocserv-1.2.2.tar.xz
/ocserv-1.2.2.tar.xz.sig
/ocserv-1.2.4.tar.xz
/ocserv-1.2.4.tar.xz.sig
/ocserv-1.3.0.tar.xz
/ocserv-1.3.0.tar.xz.sig
/ocserv-1.4.0.tar.xz
/ocserv-1.4.0.tar.xz.sig

View file

@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.89.0.post1.dev4+gabf90471.
The file was generated using packit 1.13.0.post1.dev2+g84134016c.

Binary file not shown.

Binary file not shown.

View file

@ -1,9 +1,25 @@
#!/bin/sh
#default key type:rsa
KEY_TYPE="rsa"
#check key type 'rsa', 'rsa-pss', 'dsa', 'ecdsa', 'ed25519, 'ed448', 'x25519', and 'x448'
if [ $# -gt 0 ]; then
case "$1" in
rsa|rsa-pss|dsa|ecdsa|ed25519|ed448|x25519|x448)
KEY_TYPE="$1"
;;
*)
echo "Usage: $0 [rsa|rsa-pss|dsa|ecdsa|ed25519|ed448|x25519|x448]"
echo "Default key type: rsa"
exit 1
;;
esac
fi
#generate CA certificate/key
if test ! -f /etc/pki/ocserv/private/ca.key;then
mkdir -p /etc/pki/ocserv/private
certtool --generate-privkey --outfile /etc/pki/ocserv/private/ca.key >/dev/null 2>&1
certtool --generate-privkey --key-type=$KEY_TYPE --outfile /etc/pki/ocserv/private/ca.key >/dev/null 2>&1
echo "cn=`hostname -f` CA" >/etc/pki/ocserv/ca.tmpl
echo "expiration_days=-1" >>/etc/pki/ocserv/ca.tmpl
echo "serial=1" >>/etc/pki/ocserv/ca.tmpl
@ -17,7 +33,7 @@ fi
#generate server certificate/key
if test ! -f /etc/pki/ocserv/private/server.key;then
certtool --generate-privkey --outfile /etc/pki/ocserv/private/server.key >/dev/null 2>&1
certtool --generate-privkey --key-type=$KEY_TYPE --outfile /etc/pki/ocserv/private/server.key >/dev/null 2>&1
echo "cn=`hostname -f`" >/etc/pki/ocserv/server.tmpl
echo "serial=2" >>/etc/pki/ocserv/server.tmpl
echo "expiration_days=-1" >>/etc/pki/ocserv/server.tmpl

View file

@ -301,7 +301,7 @@ cert-user-oid = 0.9.2342.19200300.100.1.1
# difference with AES_128_CBC_SHA1 (the default for anyconnect clients)
# in your system.
# Note that in RHEL gnutls follows crypto policies so insecure options
# Note that in Fedora gnutls follows crypto policies so insecure options
# are disabled within it.
tls-priorities = "NORMAL:%SERVER_PRECEDENCE"
@ -438,7 +438,7 @@ pid-file = /var/run/ocserv.pid
# 4 http
# 8 sensitive
# 9 TLS
log-level = 1
log-level = 3
# Set the protocol-defined priority (SO_PRIORITY) for packets to
# be sent. That is a number from 0 to 6 with 0 being the lowest

View file

@ -1,4 +1,4 @@
Version: 1.2.4
Version: 1.4.0
Release: %autorelease
%global _hardened_build 1
@ -25,8 +25,8 @@ Summary: OpenConnect SSL VPN server
# For a breakdown of the licensing, see PACKAGE-LICENSING
# To simplify licenses LGPLv2+ files have been promoted to GPLv2+.
License: GPLv2+ and BSD and MIT and CC0
URL: http://www.infradead.org/ocserv/
License: GPL-2.0-or-later AND BSD-3-Clause AND MIT AND CC0-1.0
URL: https://ocserv.openconnect-vpn.net/
Source0: https://www.infradead.org/ocserv/download/%{name}-%{version}.tar.xz
Source1: https://www.infradead.org/ocserv/download/%{name}-%{version}.tar.xz.sig
Source2: gpgkey-1F42418905D8206AA754CCDC29EE58B996865171.gpg
@ -43,6 +43,7 @@ Source11: ocserv.init
# http://git.infradead.org/ocserv.git/commitdiff/7d70006a2dbddf783213f1856374bacc74217e09
BuildRequires: make
BuildRequires: libxcrypt-devel
BuildRequires: gcc
%if 0%{?rhel} && 0%{?rhel} <= 6
BuildRequires: gnutls30-devel
@ -56,7 +57,7 @@ BuildRequires: protobuf-c-devel
%endif
BuildRequires: libnl3-devel, krb5-devel, libtasn1-devel, gperf, libtalloc-devel
BuildRequires: libev-devel, http-parser-devel, radcli-devel, lz4-devel, readline-devel
BuildRequires: libev-devel, llhttp-devel, radcli-devel, lz4-devel, readline-devel
BuildRequires: automake, autoconf
%if %{use_libwrap}
@ -100,7 +101,6 @@ BuildRequires: rubygem-ronn-ng
Recommends: gnutls-utils
Recommends: iproute
Recommends: pam
Requires(pre): shadow-utils
%if %{use_systemd}
Requires(post): systemd
Requires(preun): systemd
@ -129,7 +129,6 @@ gpgv2 --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} || gpgv2 --keyring %{SOURCE10}
%autosetup -p1
rm -f src/http-parser/http_parser.c src/http-parser/http_parser.h
%if (0%{?use_local_protobuf} == 0)
rm -rf src/protobuf/protobuf-c/
touch src/*.proto
@ -142,6 +141,11 @@ sed -i 's/run-as-group = nogroup/run-as-group = nobody/g' tests/data/*.config
echo "int main() { return 77; }" > tests/valid-hostname.c
%endif
# Create a sysusers.d config file
cat >ocserv.sysusers.conf <<EOF
u ocserv - 'ocserv' %{_localstatedir}/lib/ocserv -
EOF
%build
%if 0%{?rhel} && 0%{?rhel} <= 6
@ -172,10 +176,6 @@ autoreconf -fvi
make %{?_smp_mflags}
%pre
getent group ocserv &>/dev/null || groupadd -r ocserv
getent passwd ocserv &>/dev/null || \
/usr/sbin/useradd -r -g ocserv -s /sbin/nologin -c ocserv \
-d %{_localstatedir}/lib/ocserv ocserv
mkdir -p %{_sysconfdir}/pki/ocserv/public
mkdir -p -m 700 %{_sysconfdir}/pki/ocserv/private
mkdir -p %{_sysconfdir}/pki/ocserv/cacerts
@ -191,7 +191,7 @@ make check %{?_smp_mflags} VERBOSE=1
%systemd_preun ocserv.service
%postun
%systemd_postun ocserv.service
%systemd_postun_with_restart ocserv.service
%endif
%install
@ -226,6 +226,8 @@ install -D -m 0755 %{SOURCE11} %{buildroot}/%{_initrddir}/%{name}
%make_install
install -m0644 -D ocserv.sysusers.conf %{buildroot}%{_sysusersdir}/ocserv.conf
%files
%defattr(-,root,root,-)
@ -256,6 +258,7 @@ install -D -m 0755 %{SOURCE11} %{buildroot}/%{_initrddir}/%{name}
%else
%{_initrddir}/%{name}
%endif
%{_sysusersdir}/ocserv.conf
%changelog
%autochangelog

View file

@ -1,2 +1,2 @@
SHA512 (ocserv-1.2.4.tar.xz) = 202c7045bea1b7a10bd711d9b1b23f5437da9ff71fde0577137c8059ea68956c8cc294f3d23f041bda7b0fb0ae292577a99101554a12206177f5a1f5ca16ea3b
SHA512 (ocserv-1.2.4.tar.xz.sig) = b2c287e0398eb55571a04e0b0ae16f2b5636c136f467b41872c9bdfd8bd8b25aa541022a6c8b337b0d160f4f673076d03358c7c0259ec4554d604cf31e7f36d3
SHA512 (ocserv-1.4.0.tar.xz) = cef771c6ee43925d743b7a21fed1cd7d54c10e39c0966fbc7062df9b7691c9a3a73c1c4589382592668f81809edea0fe0b947c7ddf86a6cdc1a144cf059526b0
SHA512 (ocserv-1.4.0.tar.xz.sig) = a73ce14e8e355f747e40241056c2bb734d6dae4e1d6aed0f24aaa6d1a469f6d86a077af4a38e6376846fd5520ee33c7be8ce7b3830bcb0faa5e32b12ed7483cd