From nobody Wed Feb 12 06:22:39 2025 X-Original-To: questions@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 4Yt7Yn2NKdz5nTKs for ; Wed, 12 Feb 2025 06:23:57 +0000 (UTC) (envelope-from vogelke@pobox.com) Received: from fhigh-a1-smtp.messagingengine.com (fhigh-a1-smtp.messagingengine.com [103.168.172.152]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4Yt7Ym1bd9z468G for ; Wed, 12 Feb 2025 06:23:56 +0000 (UTC) (envelope-from vogelke@pobox.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=pobox.com header.s=fm2 header.b="M P/+Xb5"; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=YFN8NLHM; spf=pass (mx1.freebsd.org: domain of vogelke@pobox.com designates 103.168.172.152 as permitted sender) smtp.mailfrom=vogelke@pobox.com; dmarc=pass (policy=none) header.from=pobox.com Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 6E1D81140247; Wed, 12 Feb 2025 01:23:55 -0500 (EST) Received: from phl-frontend-02 ([10.202.2.161]) by phl-compute-03.internal (MEProxy); Wed, 12 Feb 2025 01:23:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to :reply-to:subject:subject:to:to; s=fm2; t=1739341435; x= 1739427835; bh=zMnTCeBOUHbL3bedOG5GfadGvgEBqkxNCmYHbt1LDsk=; b=M P/+Xb547pE/pZDqOV6yF4XUAFDpGp81NrmIYabWJ+HfrtnjseU8XPjjkPj/mZ75M 304DhHZPWTt2B2v48AMpU6wFnNKAPA83Z5DQJ0H4OD8gMk9C/CVCy1FqHC2JN+uM +zO4DDGTo3Bdc/CF5b7HZShAqInYYP1Nh3e7d4oUGwf5BDjzvZWxdvUjSFD6VNR9 tY1x6q+jSEHYJRSbiCEnjfIOZdOX2ED00xriP63jo8zF+Eny3W4kVYcEX3iYZCUC yld+hAoyaT0iwVTP9XHGyQbR6byPrQspclVKhiNYm/w2MaOQ0UftxF6mr4Qqos4T IJH86pVHf7rLBPWCmB+PQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:reply-to:subject :subject:to:to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1739341435; x=1739427835; bh=zMnTCeBOUHbL3bedOG5GfadGvgEB qkxNCmYHbt1LDsk=; b=YFN8NLHMk55XtuPapxx4nOMB7DLc8pMVOGpG5+EZZMjg +aZjhLT0QA3GKNTQkS/xfUoarYIdBvEO++BG5YJh7pM4I7ZM/dfdMnfIBSma+F0J QqfFf3eZsDMrIK9bW7BsQLN1O2yCTawadqpM4s7SbbzKk8Q8Pai+fyPShiash30q 5dG+VTBI4DMZffg33aQ4G6j5Yk+qsaMmR6l7sdlFocBPIsUS3xohCRdLf1/6yzel O/GWC9DrxE0yXhQRYPk4DbIqS9ITPU7tjd0KE26+KdL6PerN94h1snNC0CQsfqJz I46yTLqt8sKSsj5OvHn9VMGlqw1XZVThYrkQUQMwYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdegfeduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvf fukfhrfhggtggujgesthdtredttddtvdenucfhrhhomhepmfgrrhhlucggohhgvghluceo vhhoghgvlhhkvgesphhosghogidrtghomheqnecuggftrfgrthhtvghrnhepleevkeevtd eihfekgefguedtheetvdeifeevvdegleeivefhveelffdutedtffeinecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepvhhoghgvlhhkvgesphhosg hogidrtghomhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepqhhuvghsthhiohhnshesfhhrvggvsghsugdrohhrghdprhgtphhtthhopehvoh hgvghlkhgvodhhvggruggvrhesphhosghogidrtghomh X-ME-Proxy: Feedback-ID: i89e94709:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 Feb 2025 01:23:54 -0500 (EST) Date: Wed, 12 Feb 2025 01:22:39 -0500 From: Karl Vogel To: questions@freebsd.org Subject: Re: Running "certbot" ffom cron Message-ID: Reply-To: vogelke@pobox.com References: <20250211162405.00007342@seibercom.net> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Fingerprint: B9B0 D8CF 0413 515D BED4 B507 C123 B01E C8AE 08E9 X-PGP-URL: X-Spamd-Result: default: False [-4.67 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; RBL_SENDERSCORE_REPUT_9(-1.00)[103.168.172.152:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.57)[-0.572]; DMARC_POLICY_ALLOW(-0.50)[pobox.com,none]; R_SPF_ALLOW(-0.20)[+ip4:103.168.172.128/27]; R_DKIM_ALLOW(-0.20)[pobox.com:s=fm2,messagingengine.com:s=fm3]; RCVD_IN_DNSWL_LOW(-0.10)[103.168.172.152:from]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[messagingengine.com:dkim,pobox.com:dkim]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[pobox.com:+,messagingengine.com:+]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ASN(0.00)[asn:209242, ipnet:103.168.172.0/24, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; HAS_REPLYTO(0.00)[vogelke@pobox.com] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4Yt7Ym1bd9z468G >> On Tue 11 Feb 2025 at 20:18:49 (-0500), >> fatty.merchandise677@aceecat.org wrote: > On Tue, Feb 11, 2025 at 04:24:05PM -0500, Jerry wrote: > > I have added this to the environment: > > CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1. I also put it at the top of my > > cron file. > > I am not sure if the FreeBSD cron supports setting environment like > this, although I have until now believed it does. You can set environment variables with 'NAME=value' syntax in FreeBSD; it's worked as far back as FreeBSD 6.4 or so. I generally set a longer PATH in my crontab files, and I set CRON so scripts know when they're not being run interactively: CRON=yes PATH=/usr/bin:/bin:/usr/sbin:/usr/local/sbin:/usr/local/libexec I run this in a crontab file when installing a new system: * * * * * /bin/env > /tmp/env$$ Results for my userid: CRON=yes HOME=/home/vogelke LOGNAME=vogelke PATH=/usr/bin:/bin:/usr/sbin:/usr/local/sbin:/usr/local/libexec PWD=/home/vogelke SHELL=/bin/sh USER=vogelke Running "tty" under cron gives me "not a tty" written to stderr and a return code of 1. -- Karl Vogel I don't speak for anyone but myself Q: What's a good Christmas gift for a sysadmin? A1: Bourbon and a no-contact week. A2: A goat farm or cyanide capsule. --seen on Reddit, 8 Dec 2024