mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
3
cert.go
3
cert.go
@@ -208,7 +208,8 @@ func (m *mkcert) makeCertFromCSR() {
|
|||||||
if csrPEM == nil {
|
if csrPEM == nil {
|
||||||
log.Fatalln("ERROR: failed to read the CSR: unexpected content")
|
log.Fatalln("ERROR: failed to read the CSR: unexpected content")
|
||||||
}
|
}
|
||||||
if csrPEM.Type != "CERTIFICATE REQUEST" {
|
if csrPEM.Type != "CERTIFICATE REQUEST" &&
|
||||||
|
csrPEM.Type != "NEW CERTIFICATE REQUEST" {
|
||||||
log.Fatalln("ERROR: failed to read the CSR: expected CERTIFICATE REQUEST, got " + csrPEM.Type)
|
log.Fatalln("ERROR: failed to read the CSR: expected CERTIFICATE REQUEST, got " + csrPEM.Type)
|
||||||
}
|
}
|
||||||
csr, err := x509.ParseCertificateRequest(csrPEM.Bytes)
|
csr, err := x509.ParseCertificateRequest(csrPEM.Bytes)
|
||||||
|
Reference in New Issue
Block a user