|
|
@ -5,7 +5,6 @@ import (
|
|
|
|
"crypto/rand"
|
|
|
|
"crypto/rand"
|
|
|
|
"crypto/x509"
|
|
|
|
"crypto/x509"
|
|
|
|
"encoding/asn1"
|
|
|
|
"encoding/asn1"
|
|
|
|
"encoding/json"
|
|
|
|
|
|
|
|
"encoding/pem"
|
|
|
|
"encoding/pem"
|
|
|
|
"regexp"
|
|
|
|
"regexp"
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
@ -413,9 +412,6 @@ func (c *CloudCAS) CreateCertificateAuthority(req *apiv1.CreateCertificateAuthor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
b, _ := json.MarshalIndent(ca, "", "\t")
|
|
|
|
|
|
|
|
println(string(b))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return &apiv1.CreateCertificateAuthorityResponse{
|
|
|
|
return &apiv1.CreateCertificateAuthorityResponse{
|
|
|
|
Name: ca.Name,
|
|
|
|
Name: ca.Name,
|
|
|
|
Certificate: cert,
|
|
|
|
Certificate: cert,
|
|
|
|