use*_*384 6 openssl config certificate-authority
有谁知道您在OpenSSL配置文件中指定的所有字段是否都可以在Cloudflare的CFSSL的证书颁发机构工具包中使用?某些字段(例如default_md或指定国家/地区必须匹配)似乎在CFSSL在其JSON配置文件中识别的选项中缺失(以下是摘录):
type CAConstraint struct {
IsCA bool `json:"is_ca"`
MaxPathLen int `json:"max_path_len"`
MaxPathLenZero bool `json:"max_path_len_zero"`
}
// A SigningProfile stores information that the CA needs to store
// signature policy.
type SigningProfile struct {
Usage []string `json:"usages"`
IssuerURL []string `json:"issuer_urls"`
OCSP string `json:"ocsp_url"`
CRL string `json:"crl_url"`
CAConstraint CAConstraint `json:"ca_constraint"`
OCSPNoCheck bool `json:"ocsp_no_check"`
ExpiryString string `json:"expiry"`
BackdateString string `json:"backdate"`
AuthKeyName string `json:"auth_key"`
RemoteName string `json:"remote"`
NotBefore time.Time `json:"not_before"`
NotAfter time.Time `json:"not_after"`
NameWhitelistString string `json:"name_whitelist"`
AuthRemote AuthRemote `json:"auth_remote"`
CTLogServers []string `json:"ct_log_servers"`
AllowedExtensions []OID `json:"allowed_extensions"`
CertStore string `json:"cert_store"`
Policies []CertificatePolicy
Expiry time.Duration
Backdate time.Duration
Provider auth.Provider
RemoteProvider auth.Provider
RemoteServer string
RemoteCAs *x509.CertPool
ClientCert *tls.Certificate
CSRWhitelist *CSRWhitelist
NameWhitelist *regexp.Regexp
ExtensionWhitelist map[string]bool
ClientProvidesSerialNumbers bool
}
Run Code Online (Sandbox Code Playgroud)
CFSSL是否抽象出许多OpenSSL配置选项,或者我只是没有看到您可以指定它们的位置?
消息摘要算法似乎是动态选择的,并且取决于 CA 私钥的长度。
func DefaultSigAlgo(priv crypto.Signer) x509.SignatureAlgorithm {
pub := priv.Public()
switch pub := pub.(type) {
case *rsa.PublicKey:
keySize := pub.N.BitLen()
switch {
case keySize >= 4096:
return x509.SHA512WithRSA
case keySize >= 3072:
return x509.SHA384WithRSA
case keySize >= 2048:
return x509.SHA256WithRSA
default:
return x509.SHA1WithRSA
} ...
Run Code Online (Sandbox Code Playgroud)
基于我在 Github 上的 CFSSL 源代码中找到的内容。
关于县,我在限制或配置它的代码中找不到任何限制,可以假设所有国家/地区都是允许的。
| 归档时间: |
|
| 查看次数: |
1279 次 |
| 最近记录: |