From nobody Mon Jul 22 11:54:00 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WSJbD5RJNz5QXB7 for ; Mon, 22 Jul 2024 11:54:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WSJbD3LPMz4rW1 for ; Mon, 22 Jul 2024 11:54:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721649240; a=rsa-sha256; cv=none; b=b5KWSHzj9OLm/l1bsAkVr4yobjVlOVMUTd4k1B0OGCELSuAt5rwJke5kctwwSgt8CG5fU6 7d8sCkR0qFO3W6PKbrEsg3k9xjF0p4Ov647IyrvEjc8Ql8KWxytgdw1L2DlO9OTknLSDpI qAPNsMLlEp0FxwtzR/3wFql9jnFBpB93QSYN/jAyrbbMd8bqRRrkZr7OSDurIkZ8r0DIGR KI6cecDuVsvpDZcdGxZcmb8YzO9CM2O2ej9Jtcu2wutVbZSnVlEDnBqNNr/8t7YdQtkGaj RkPjVBRc+IDNZaUjcNQXPrb3JbelVQnXiI14CXjQXO1lNYIuWBKcRUbOGeY4bA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721649240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zU0R75AhcH/4oOoTSvUJt/kB2wr2IKdgy+rR/JrWjF0=; b=eL+7GzMUcR2/0i0YkJXDJ/hohvFqP1QJZYZNpj8jRDy+Ge/Z1GONVnljNQXYFMSBNgM7XK hpCl+AVy2BxSVmivuicMxO9pyyuoeyds3YJ1G4H76To9HZAbyai2RfVeEGkDl1qoFh37e3 JSHXMdnU222w/eg1JO6FaHpRYEDjjTefVBE0eZQwHAkI66ZDkrE5BlhQhCGFUS+M4pjzBP jtRMrKMrcl6mqomJ+ZOMutnj8UFOzw8KeyQhDk66m3PW0gXgS9XirhE+IU7JXAvuKCz4sv xwGMWbqykTmVPF9Vry0d1MWkEdhYf8KTDFFqzX6k8wVTxv7g84J6AH13lCSRgg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WSJbD2z2nzkVY for ; Mon, 22 Jul 2024 11:54:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 46MBs0PF016284 for ; Mon, 22 Jul 2024 11:54:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 46MBs0MZ016279 for ports-bugs@FreeBSD.org; Mon, 22 Jul 2024 11:54:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 280405] security/step-certificates: 'service step-ca configure' fails Date: Mon, 22 Jul 2024 11:54:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jason.mann@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280405 Bug ID: 280405 Summary: security/step-certificates: 'service step-ca configure' fails Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: jason.mann@gmail.com CC: mw@wipp.bayern CC: mw@wipp.bayern Flags: maintainer-feedback?(mw@wipp.bayern) I installed the step-certificates and step-cli packages on a FreeBSD-14.1-RELEASE-amd64 system. Following the installation, I performed the following actions: - Added 'step_ca_enable=3D"YES"' to /etc/rc.conf.local - Ran 'service step-ca configure' root@filer ~]# service step-ca configure No configured Step CA found. Creating new one.... open /usr/local/etc/step/ca/contexts.json failed: not a directory Step CA Password file for auto-start not found Creating it.... Please enter the Step CA Password: After entering a password, I could see that /usr/local/etc/step/password.txt had been created, as well as a /usr/local/etc/step/ca file. The service then could not be started: [root@filer ~]# service step-ca start Starting step_ca. step_ca is not running. Judging by the "open /usr/local/etc/step/ca/contexts.json failed: not a directory" error, that 'ca' file should instead be a directory. I examined the /usr/local/etc/rc.d/step-ca RC script and found the followin= g on line 93: install -m 600 -o ${step_ca_user} -g ${step_ca_group} /dev/null ${step_ca_steppath} It appears this line is missing a '-d' argument to create a directory and instead creates a file. I added the '-d' argument to the script on my system, deleted the /usr/local/etc/step/ca and password.txt files, then re-ran 'service step-ca configure' and got what looks like the correct outcome: [root@filer /usr/local/etc/step]# service step-ca configure No configured Step CA found. Creating new one.... install: /dev/null exists but is not a directory =E2=9C=94 Deployment Type: Standalone What would you like to name your new PKI? =E2=9C=94 (e.g. Smallstep): [redacted] What DNS names or IP addresses will clients use to reach your CA? =E2=9C=94 (e.g. ca.example.com[,10.1.2.3,etc.]): localhost What IP and port will your new CA bind to? (:443 will bind to 0.0.0.0:443) =E2=9C=94 (e.g. :443 or 127.0.0.1:443): 127.0.0.1:8443 What would you like to name the CA's first provisioner? =E2=9C=94 (e.g. you@smallstep.com): [redacted] Choose a password for your CA keys and first provisioner. =E2=9C=94 [leave empty and we'll generate one]:=20 =E2=9C=94 Password: [redacted] --=20 You are receiving this mail because: You are the assignee for the bug.=