d
This commit is contained in:
@@ -149,7 +149,7 @@ func PostTraceTaskToNF(w http.ResponseWriter, r *http.Request) {
|
|||||||
succNE := fmt.Sprintf("%s.%s", neInfo.NeType, neInfo.NeId)
|
succNE := fmt.Sprintf("%s.%s", neInfo.NeType, neInfo.NeId)
|
||||||
traceTask.SuccNEs = append(traceTask.SuccNEs, succNE)
|
traceTask.SuccNEs = append(traceTask.SuccNEs, succNE)
|
||||||
default:
|
default:
|
||||||
log.Warn("Post return code:%d, message:%s", resp.StatusCode(), string(resp.Body()))
|
log.Warnf("Post return code:%d, message:%s", resp.StatusCode(), string(resp.Body()))
|
||||||
failNE := fmt.Sprintf("%s.%s", neInfo.NeType, neInfo.NeId)
|
failNE := fmt.Sprintf("%s.%s", neInfo.NeType, neInfo.NeId)
|
||||||
traceTask.FailNEs = append(traceTask.FailNEs, failNE)
|
traceTask.FailNEs = append(traceTask.FailNEs, failNE)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ func main() {
|
|||||||
SerialNumber: big.NewInt(2023),
|
SerialNumber: big.NewInt(2023),
|
||||||
Subject: pkix.Name{CommonName: "Root CA"},
|
Subject: pkix.Name{CommonName: "Root CA"},
|
||||||
NotBefore: time.Now(),
|
NotBefore: time.Now(),
|
||||||
NotAfter: time.Now().AddDate(10, 0, 0), // 有效期为10年
|
NotAfter: time.Now().AddDate(0, 0, 1), // 有效期为10年
|
||||||
KeyUsage: x509.KeyUsageCertSign | x509.KeyUsageCRLSign,
|
KeyUsage: x509.KeyUsageCertSign | x509.KeyUsageCRLSign,
|
||||||
BasicConstraintsValid: true,
|
BasicConstraintsValid: true,
|
||||||
IsCA: true,
|
IsCA: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user