git: c39794fd53ba - main - security/step-certificates: Update to 0.17.4

From: Guangyuan Yang <ygy_at_FreeBSD.org>
Date: Tue, 05 Oct 2021 08:05:39 UTC
The branch main has been updated by ygy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c39794fd53ba05609ebed46dd64ea747c7ce3e94

commit c39794fd53ba05609ebed46dd64ea747c7ce3e94
Author:     Markus Wipp <mw@wipp.bayern>
AuthorDate: 2021-10-05 08:05:11 +0000
Commit:     Guangyuan Yang <ygy@FreeBSD.org>
CommitDate: 2021-10-05 08:05:11 +0000

    security/step-certificates: Update to 0.17.4
    
    Changelog:      https://github.com/smallstep/certificates/releases/tag/v0.17.4
    
    PR:             258831
---
 security/step-certificates/Makefile         | 3 ++-
 security/step-certificates/distinfo         | 6 +++---
 security/step-certificates/files/step-ca.in | 4 +++-
 3 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/security/step-certificates/Makefile b/security/step-certificates/Makefile
index 233226fecfa2..5b3400f2efeb 100644
--- a/security/step-certificates/Makefile
+++ b/security/step-certificates/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	step-certificates
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.17.2
+DISTVERSION=	0.17.4
 CATEGORIES=	security
 
 MAINTAINER=	mw@wipp.bayern
@@ -90,6 +90,7 @@ GH_TUPLE=	\
 		square:go-jose:v2.5.1:square_go_jose/vendor/gopkg.in/square/go-jose.v2 \
 		thales-e-security:pool:v0.0.2:thales_e_security_pool/vendor/github.com/thales-e-security/pool \
 		urfave:cli:v1.22.4:urfave_cli/vendor/github.com/urfave/cli
+
 USE_RC_SUBR=	step-ca
 
 GO_TARGET=	./cmd/step-ca:${PREFIX}/sbin/step-ca  \
diff --git a/security/step-certificates/distinfo b/security/step-certificates/distinfo
index b0d06548195c..b6c279dd2174 100644
--- a/security/step-certificates/distinfo
+++ b/security/step-certificates/distinfo
@@ -1,6 +1,6 @@
-TIMESTAMP = 1632229000
-SHA256 (smallstep-certificates-v0.17.2_GH0.tar.gz) = c25e04c2d763b4a7768f70e58aee4f0045c56b08640b05b6e5a30f3857342906
-SIZE (smallstep-certificates-v0.17.2_GH0.tar.gz) = 17728104
+TIMESTAMP = 1633074938
+SHA256 (smallstep-certificates-v0.17.4_GH0.tar.gz) = ac23f66d2050fbc4dc83269afc3ef93c8d31275e69e245e08c0f60decf1b2acd
+SIZE (smallstep-certificates-v0.17.4_GH0.tar.gz) = 17731272
 SHA256 (AndreasBriese-bbloom-46b345b51c96_GH0.tar.gz) = 49b41b2b20e73f31091222e4a6abf12762231cbad9de642d2227c16dae29b4ff
 SIZE (AndreasBriese-bbloom-46b345b51c96_GH0.tar.gz) = 8005
 SHA256 (Masterminds-goutils-v1.1.0_GH0.tar.gz) = 053a61c4b0d78e6978600c99562f04d053993c428d549a20b627151cf1aabbae
diff --git a/security/step-certificates/files/step-ca.in b/security/step-certificates/files/step-ca.in
index 6ae57b201dd6..03946767ff2b 100644
--- a/security/step-certificates/files/step-ca.in
+++ b/security/step-certificates/files/step-ca.in
@@ -59,8 +59,10 @@ step_ca_startprecmd()
 		echo "No configured Step CA found."
 		echo "Creating new one...."
 		export STEPPATH=${step_ca_steppath}
-		%%PREFIX%%/bin/step ca init
+		%%PREFIX%%/bin/step ca init --ssh
 		chown -R ${step_ca_user}:${step_ca_group} ${step_ca_steppath}
+	else
+		export STEPPATH=${step_ca_steppath}
 	fi
 
 	if [ ! -e ${step_ca_password} ]; then