Hello Lehel,
In your last example the public key is separated in two values: modulus and exponent.
oxAuth can also generate x5c with the following Key Generator: https://github.com/GluuFederation/oxAuth/blob/master/Client/src/main/java/org/xdi/oxauth/util/KeyGenerator.java
```
java -cp bcprov-jdk15on-1.54.jar:.jar:bcpkix-jdk15on-1.54.jar:commons-cli-1.2.jar:commons-codec-1.5.jar:commons-lang-2.6.jar:jettison-1.3.jar:log4j-1.2.14.jar:oxauth-model.jar:oxauth.jar org.xdi.oxauth.util.KeyGenerator -h
```
```
usage: KeyGenerator -algorithms alg ... -expiration n_days [-ox11 url]
[-keystore path -keypasswd secret -dnname dn_name]
-algorithms <arg> Signature Algorithms (RS256 RS384 RS512 ES256 ES384
ES512).
-dnname <arg> DN of certificate issuer.
-expiration <arg> Expiration in days.
-h Show help.
-keypasswd <arg> Key Store password.
-keystore <arg> Key Store file.
-ox11 <arg> oxEleven Generate Key Endpoint.
```
```
KeyGenerator -algorithms RS256 RS384 RS512 ES256 ES384 ES512 -keystore /Users/JAVIER/tmp/mykeystore.jks -keypasswd secret -dnname "CN=oxAuth CA Certificates" -expiration 365
```
```
{"keys": [
{
"kid": "06ef9d63-37c9-491d-a24f-8dc698ed5fb3",
"kty": "RSA",
"use": "sig",
"alg": "RS256",
"exp": 1515275249816,
"n": "4zTZBoTpb-MITqDFDdwjdQZ5guz4oDZDavhk3PuMaWoNPnEJLudrCgUJCWxUfGV2IhwFJZz4V_nHDzULuYHB7pFY_TYVbt8qA8B_6Saki6K9J8--hbh8tltEpo_DfzYDafaKJT9q472wNDG1aruAXWPKeUm9KwzQVhnxQnyplP6-VG2X1k064CDDnVyZ3I19CAyXgM6jtWLK3kJ18ILH7vhILeu_6bGaeP0tStT5OuRCV6J4hT1piiZkOPJsm8ZcenrMofHUAAqq2FqN4hqyiQvlH3HWkkmNSc9DsTfIvnOHBvdxedGklYg6R0FtvlSKriFeMN24AqYZDpS5QFPc3w",
"e": "AQAB",
"x5c": ["MIIDBDCCAeygAwIBAgIhAK8ivMFd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CAQEA2\/6F+EaIBbfg+eri\/\/RvqjDN+VYlO4C14\/V1SpsBJa9kYvQddw5Q7PXS3jVbgAHYBoKIh2ImvUngycL572sjcY\/7NUvrtvj4ldE69kwiuUJX5+Om5vhikFiclC5fkqKmNvDg065kwim\/ZhDZlg9v6ScyImgVYGMW6Q3ndhfT1L\/igHwG3NOzvfKwOsTWpa20Oqe6vbdIcHQsCp8J0ST021RDvk2eG5xrbdFZGKRz6N9YghFcfw\/2JYGiJwqv9mRFEiv2T4R24\/1Befmdf2n2wUvf54CjF\/6runCrf+AKSTXHMX3sN9ckA2+Yah+D5we0+9eN9XZj9PuMLdFhC+lmGQIDAQABoycwJTAjBgNVHSUEHDAaBggrBgEFBQcDAQYIKwYBBQUHAwIGBFUdJQAwDQYJKoZIhvcNAQENBQADggEBABbU0CmKv8V2e8WOrZqtUN4c7r6ffL9+5JeNQ7AOrXcK5wes5NZVFH84KSlsSXmrHjatZdZvBvijlEOVHMo\/KIu0O8BDTipHrThLGiOpc7WN6VTo+HNXQnjdKDybWnE7ayK5aJ\/mqTDvThsNUpyrO+ZI91x4r8QJCC5pXWPnSAfbxkZsrcfQmvb6gE+d\/6phR0aD5n9fMZb0aFHAoLyXvA7c2gloncZ+0uSv33jKaEJzD01UBo+OR4DtovPQpI5yog9yAqw9P6Zh36\/cj1ra1dhZHqU4jOESvQiMijnXQ5XXE\/lZvWckNvFX8uPVEgj9hNvBWo7LAe9Tz0ahcIqeqNY="]
},
{
"kid": "a7b0fd45-b715-4709-807f-b1696b4c3c70",
"kty": "EC",
"use": "sig",
"alg": "ES256",
"exp": 1515275249816,
"crv": "P-256",
"x": "mqbjjEkGpIuwe-TIAojfDSdUTXjPEnxd0w1paTEdjB4",
"y": "txBayxVFcvFsbHeNcGq7zN3PwZ1l5kxHKnmLvZs9FGA",
"x5c": ["MIIBdzCCAR2gAwIBAgIgCiC2QcDcX75OChL10dtN8Trn44XloIpG9qC7X5uVtPIwCgYIKoZIzj0EAwIwITEfMB0GA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