1
0
mirror of https://github.com/go-acme/lego.git synced 2025-11-28 00:38:24 +02:00

csr: support NEW CERTIFICATE REQUEST as CSR type (#1423)

This commit is contained in:
Ludovic Fernandez
2021-06-05 13:47:39 +02:00
committed by GitHub
parent 1af3abd16e
commit e79975cf14
2 changed files with 2 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ func readCSRFile(filename string) (*x509.CertificateRequest, error) {
}
// did we get a CSR?
if p.Type == "CERTIFICATE REQUEST" {
if p.Type == "CERTIFICATE REQUEST" || p.Type == "NEW CERTIFICATE REQUEST" {
raw = p.Bytes
}
}