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:
committed by
GitHub
parent
1af3abd16e
commit
e79975cf14
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user