diff --git a/.files b/.files
index dba86d9..e3c53c5 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index 6dd1131..8831cab 100644
--- a/.rev
+++ b/.rev
@@ -177,4 +177,12 @@
1103690
+
+ 1efc20ca1984c161778048afb0f569cf
+ 3.1.7
+
+ anag+factory
+
+ 1118268
+
diff --git a/EasyRSA-3.1.5.tgz b/EasyRSA-3.1.5.tgz
deleted file mode 120000
index 78091ef..0000000
--- a/EasyRSA-3.1.5.tgz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafkreie7yyeb2sjh42hjxlxtkdtlgaimp62pjjod4zc53leqcca6w2w3wi
\ No newline at end of file
diff --git a/EasyRSA-3.1.5.tgz.sig b/EasyRSA-3.1.5.tgz.sig
deleted file mode 100644
index 00fe9bc..0000000
Binary files a/EasyRSA-3.1.5.tgz.sig and /dev/null differ
diff --git a/EasyRSA-3.1.7.tgz b/EasyRSA-3.1.7.tgz
new file mode 120000
index 0000000..90063e3
--- /dev/null
+++ b/EasyRSA-3.1.7.tgz
@@ -0,0 +1 @@
+/ipfs/bafkreifkush23s5xoui3tq3ykvhph2xat6ghxqkj232wxiqj6he3vommny
\ No newline at end of file
diff --git a/EasyRSA-3.1.7.tgz.sig b/EasyRSA-3.1.7.tgz.sig
new file mode 100644
index 0000000..03e3c31
Binary files /dev/null and b/EasyRSA-3.1.7.tgz.sig differ
diff --git a/easy-rsa.changes b/easy-rsa.changes
index 883f796..03e9d3f 100644
--- a/easy-rsa.changes
+++ b/easy-rsa.changes
@@ -1,4 +1,24 @@
-------------------------------------------------------------------
+Tue Oct 17 06:35:16 UTC 2023 - Paolo Stivanin
+
+- Update to 3.1.7:
+ * Completely Remove Upgrade Functionality
+ * Expand help to include undocumented commands
+ * Forbid "default vars in the default PKI" for all commands
+ * show-expire: Calculate certificate expire seconds from Database date
+ * Expand help to include undocumented commands
+ * New command: make-vars - Print vars.example (here-doc) to stdout
+ * gen-crl: preserve existing crl.pem ownership+mode by @Tabiskabis in #1020
+ * Improve vars auto load
+ * Replace santize_path() and ignore Windows "security" warning
+ * Improve select_vars() and source_vars()
+ * sign-req: Allow the CSR DN-field order to be preserved
+ * vars-file: Warn about EASYRSA_NO_VARS disabling vars-file use
+ * Expand default status to include vars-file and CA status
+ * verify_ssl_lib(): Minor style improvements
+ * cleanup: Rename $easyrsa_error_exit to $easyrsa_exit_with_error
+
+-------------------------------------------------------------------
Sun Aug 6 18:54:29 UTC 2023 - Matthias Eliasson
- Update to 3.1.5:
diff --git a/easy-rsa.spec b/easy-rsa.spec
index 1cfeba3..02c6bcc 100644
--- a/easy-rsa.spec
+++ b/easy-rsa.spec
@@ -19,7 +19,7 @@
%define pname EasyRSA
Name: easy-rsa
-Version: 3.1.5
+Version: 3.1.7
Release: 0
Summary: CLI utility to build and manage a PKI CA
License: GPL-2.0-or-later
@@ -38,8 +38,7 @@ easy-rsa is a CLI utility to build and manage a Public Key Infrastructure
certificates, including sub-CAs, and create Certificate Revokation Lists (CRL).
%prep
-%setup -q -n %{pname}-%{version}
-%patch100
+%autosetup -p1 -n %{pname}-%{version}
%build
diff --git a/suse-packaging.patch b/suse-packaging.patch
index 92a3094..f098ce9 100644
--- a/suse-packaging.patch
+++ b/suse-packaging.patch
@@ -1,11 +1,23 @@
---- easyrsa.orig 2023-08-06 20:50:08.140959981 +0200
-+++ easyrsa 2023-08-06 20:50:30.430836235 +0200
-@@ -5393,7 +5393,7 @@
+--- EasyRSA-3.1.7/easyrsa.orig 2023-10-17 08:27:37.665021587 +0200
++++ EasyRSA-3.1.7/easyrsa 2023-10-17 08:34:59.943976542 +0200
+@@ -1440,10 +1440,7 @@
+ # "$EASYRSA" - Old default and Windows
+ # "$PWD" - Usually the same as above, avoid
+ # "${0%/*}" - Usually the same as above, avoid
+- # '/usr/local/share/easy-rsa' - Default user installed
+- # '/usr/share/easy-rsa' - Default system installed
+- # Room for more..
+- # '/etc/easy-rsa' - Last resort
++ # '/etc/easy-rsa'
- # set up program path
- prog_file="$0"
-- prog_dir="${prog_file%/*}"
-+ prog_dir="/etc/easy-rsa"
- if [ "$prog_dir" = . ] || [ "$prog_dir" = "$PWD" ]
- then
- prog_in_pwd=1
+ # Find and optionally copy data-files, in specific order
+ for area in \
+@@ -1451,8 +1448,6 @@
+ "$EASYRSA" \
+ "$PWD" \
+ "${0%/*}" \
+- '/usr/local/share/easy-rsa' \
+- '/usr/share/easy-rsa' \
+ '/etc/easy-rsa' \
+ # EOL
+ do