Bonjour,
An X.509 certificate is:
Certificate ::= SEQUENCE {
tbsCertificate TBSCertificate,
signatureAlgorithm AlgorithmIdentifier,
signatureValue BIT STRING }
What you produced with « openssl rsautl -sign » is the content of the «
signatureValue » element (not its BIT STRING structure, only the inner content).
What is missing is all the rest, and it can’t be produced by the sole « openssl
x509 … » command.
Please refine your question.
Cordialement,
Erwann Abalea
> Le 22 juil. 2015 à 11:17, Anirudh Raghunath <[email protected]>
> a écrit :
>
> Hello,
>
> I have used rsault -sign option to sign a text file which gives me a binary
> file. I would like to convert this to X509 so that I can use it in a ssl
> handshake. I understand the command:
>
> openssl x509 -inform <format> -in <certfile> -out <cert.pem>
>
> is used. I want to know what the parameters would be for a binary input file.
>
> Thanks in advance.
> _______________________________________________
> 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