Pike v8.0 release 1738

Method Standards.PKCS.CSR.build_csr()


Method build_csr

Sequence build_csr(Crypto.Sign sign, Sequence name, mapping(string:array(Object)) attributes, Crypto.Hash|void hash)

Description

Build a Certificate Signing Request.

Parameter sign

Signature algorithm for the certificate. Both private and public keys must be set.

Parameter name

The distinguished name for the certificate.

Parameter attributes

Attributes from PKCS #9 to add to the certificate.

Parameter hash

Hash algoritm to use for the CSR signature. Defaults to Crypto.SHA256.

Note

Prior to Pike 8.0 this function only supported signing with Crypto.RSA and the default (and only) hash was Crypto.MD5.