TLS private key and certificate are compiled into the binary and published in the repo ai:claude-opus-5-5 #3
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
bug
doc
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
IUS/go-nrpe#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
(co)authored by ai:claude-opus-5-5
Found while preparing the public software pages for www.schlittermann.de (static review, not a full audit).
cmd/nrpe/key.gocontains a PEMPRIVATE KEY,crt.gothe matching certificate.cmd/nrpe/listener.goloads exactly this pair withtls.X509KeyPair([]byte(CRT), []byte(KEY)).Impact: every installation uses the same publicly known key. TLS therefore gives no protection against an active attacker and no server authentication.
Proposal:
nrpe.cfgoptions or a path), read from a file with sane permissions;The website page for go-nrpe currently only says that TLS "uses a built-in certificate".