Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174751827
D38370.id116388.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D38370.id116388.diff
View Options
diff --git a/usr.sbin/certctl/certctl.8 b/usr.sbin/certctl/certctl.8
--- a/usr.sbin/certctl/certctl.8
+++ b/usr.sbin/certctl/certctl.8
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 13, 2022
+.Dd February 3 2023
.Dt CERTCTL 8
.Os
.Sh NAME
@@ -91,6 +91,9 @@
.Ev UNTRUSTDESTDIR .
.It Ic untrust
Add the specified file to the untrusted list.
+If the file was in a
+.Ev TRUSTPATH ,
+it will be removed from there.
.It Ic trust
Remove the specified file from the untrusted list.
.El
diff --git a/usr.sbin/certctl/certctl.sh b/usr.sbin/certctl/certctl.sh
--- a/usr.sbin/certctl/certctl.sh
+++ b/usr.sbin/certctl/certctl.sh
@@ -127,8 +127,18 @@
return
fi
+ filesdir=$(basename "$filename")
+
[ $VERBOSE -gt 0 ] && echo "Adding $filename to untrusted list"
[ $NOOP -eq 0 ] && install ${INSTALLFLAGS} -lrs "$srcfile" "$UNTRUSTDESTDIR/$filename"
+
+ case :$TRUSTPATH:
+ in *:$filesdir:*)
+ [ $VERBOSE -gt 0 ] && echo "Deleting $filename from trusted certificates"
+ [ $NOOP -eq 0 ] && rm -f "$srcfile"
+ ;;
+ in *) ;;
+ esac
}
do_scan()
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 6, 6:11 PM (19 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40309122
Default Alt Text
D38370.id116388.diff (1 KB)
Attached To
Mode
D38370: certctl(8): Remove untrusted certificates from TRUSTPATH
Attached
Detach File
Event Timeline
Log In to Comment