github / github/smimesign

Error or warning when using an expired certificate?

Aperta
#83 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
657
Fork
154
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hello! I'm wondering if it would be possible to configure smimesign to error out (or at least display a warning) if the certificate you are using to sign commits has expired. I am trying to implement a system for git signing with shorter-lived developer certificates (30 days) and it would be really helpful if a warning or error message would let developers know that their certificate has expired and they should request a new one.

Currently smimesign will go ahead and sign commits with expired certificates with no output, but then verification fails:

```
$ git log --show-signature
commit 923459dd4798833eb56f0f376fcd6d0b3fc86e04 (HEAD -> master)
failed to verify signature: x509: certificate has expired or is not yet valid: current time 2021-10-01T13:56:16-05:00 is after 2021-10-01T18:54:21Z
```

I know we're limited in what git passes to smimesign so i'd be fine to use a wrapper script or command, but would need a command line flag to indicate it should exit with error if the signing certificate is expired.

Let me know your thoughts and I'd be happy to open a PR!

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia individuando il comando di firma e il percorso di gestione dei certificati di smimesign, quindi verifica come sono definite le opzioni della riga di comando. Determina dove è possibile rilevare la scadenza di un certificato prima della firma e definisci se il comportamento richiesto debba mostrare un avviso o restituire un errore. Il lavoro è completato quando un certificato di firma scaduto produce la risposta visibile selezionata e i certificati validi continuano a firmare normalmente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
go
Ambito
cryptography, security
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.