I wonder if there is a standard way of encoding the ECDSA-signature in the signature field of an X.509 certificate.
As far as I understand, the signature is a tuple of two integers r and s. If the signature uses the prime256v1 curve, each integer will be 32 bytes long. There seems to be a most common way of presenting these integers, which is as an ASN.1 DER encoded sequence.
0x30 0x44 0x02 0x20 [r-value] 0x02 0x20 [s-value]
Is there a standard saying how you may represent the ECDSA-signature in X.509? I have not found anything yet saying how they can or should be represented...