The certificate signature supports the DER and PEM formats. --BEGIN CERTIFICATE-- is the data in DER format and can be directly used in the certificate signature.