Skip to main content

Values and constants

hash signature mechanism

For HashSignatureMechanism the following values values are supported:

  • SHA256withRSA
  • SHA384withRSA
  • SHA512withRSA
  • SHA256withECDSA
  • SHA384withECDSA
  • SHA512withECDSA

ECDSA signature format

The signature created by the A-Trust server is an ECDSA signature in the following format:

 signature=Base64( R+ S)where R=first coordinate of ECDSA point S=second coordinate of ECDSA point\begin{aligned} ~signature &= Base64(~R + ~S ) \\ \text{where}~R &= \text{first coordinate of ECDSA point} \\ ~S &= \text{second coordinate of ECDSA point} \end{aligned}

Errorcodes

The following error messages are returned by the A-Trust service

HTTP statuscodedescription
200OK & success
400bad request & error parsing the request
404not found & no seal for the given serial number or authentication certificate found
422unprocessable entity & given and do not match
500internal server error & internal error