The file ca.csr is already readable by an application.  It is a PEM-encoded
ASN.1 formatted file.

You can use the openssl library calls to decode the CSR and extract
individual fields.  The printed output of the -text option is generated by
X509_REQ_print_ex() (which you can find in openssl/crypto/asn1/t_req.c).
The code of this routine will demonstrate how to extract the fields you
need.

Matthew

On 21 June 2016 at 20:16, [email protected] <[email protected]>
wrote:

> Hi,
>
> If I get a text version of a request(e.g. use the command "openssl req
> -noout -text -in ca.csr"), how can I encode it with openssl command(thus
> transform it to the format that is able to be recognized by applications)?
>
> Thanks,
> Eurus
> ------------------------------
>
> --
> openssl-users mailing list
> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
>
>
-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

Reply via email to