Querying an X.509 identity

Querying an X.509 identity request

curl --cookie cookies --request GET https://<IP-address-of-SPS>/api/configuration/x509/identity-0

Querying an X.509 identity response

{
    "key": "identity-0",
    "body": {
      "subject": "/C=RO/ST=TheRootState/L=TheRootLocality/O=TheRootOrganization/OU=TheRootOrganizationalUnit/CN=the.root.common.name.io/emailAddress=the@root.email.address.io",
      "issuer": "/C=RO/ST=TheRootState/L=TheRootLocality/O=TheRootOrganization/OU=TheRootOrganizationalUnit/CN=the.root.common.name.io/emailAddress=the@root.email.address.io",
      "issuer_chain": [],
      "not_after": "2024-08-11T13:04:43+00:00",
      "not_before": "2014-08-14T13:04:43+00:00",
      "pem": "-----BEGIN CERTIFICATE-----\nMIIEZTCCA02gAwIBAgIBATANBgkqhkiG9w0BAQ0FADCBzDELMAkGA1UEBhMCUk8x\nFTATBgNVBAgMDFRoZVJvb3RTdGF0ZTEYMBYGA1UEBwwPVGhlUm9vdExvY2FsaXR5\nMRwwGgYDVQQKDBNUaGVSb290T3JnYW5pemF0aW9uMSIwIAYDVQQLDBlUaGVSb290\nT3JnYW5pemF0aW9uYWxVbml0MSAwHgYDVQQDDBd0aGUucm9vdC5jb21tb24ubmFt\nZS5pbzEoMCYGCSqGSIb3DQEJARYZdGhlQHJvb3QuZW1haWwuYWRkcmVzcy5pbzAe\nFw0xNDA4MTQxMzA0NDNaFw0yNDA4MTExMzA0NDNaMIHMMQswCQYDVQQGEwJSTzEV\nMBMGA1UECAwMVGhlUm9vdFN0YXRlMRgwFgYDVQQHDA9UaGVSb290TG9jYWxpdHkx\nHDAaBgNVBAoME1RoZVJvb3RPcmdhbml6YXRpb24xIjAgBgNVBAsMGVRoZVJvb3RP\ncmdhbml6YXRpb25hbFVuaXQxIDAeBgNVBAMMF3RoZS5yb290LmNvbW1vbi5uYW1l\nLmlvMSgwJgYJKoZIhvcNAQkBFhl0aGVAcm9vdC5lbWFpbC5hZGRyZXNzLmlvMIIB\nIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwEi1z6V9Kk3djlS30p+Hf8iA\nUYU6PvyJBhK6NGqU99cS0zQL/9fVsZsxadGMLByADkWMduoXzmPuh8A16iHfu4ui\nkcAFskYNkhLTHKv8WPH74NowfsxI79fcYEEwnABPYmxubV4NdxfNbfny44JhZFzY\nj3A6GTlHonjJ3u3zlVn+AKqILs39U+ffCrYwilE75VaD2bCbb2ba4CiFM0u7s6Rz\nFthfPCm4C+f1MlSUdLsV2Hb+2zHf3NrNFklYGymAPlCQtmQjvxWnOrzi+dE5dqwR\n3FuSPWHT7FbbDAqCdxeQjxtsqV7Juk8lLsp+ogSMZi2Z+2p2edlY/lyFw91w4QID\nAQABo1AwTjAdBgNVHQ4EFgQUHCS1guZGRNHNSvIRRCht25WOJOEwHwYDVR0jBBgw\nFoAUHCS1guZGRNHNSvIRRCht25WOJOEwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B\nAQ0FAAOCAQEAloRhnNbWa+Y0ckkEvgpZ0jB31FP9Ur7oMYt4JYUl7HF9fX59hPN7\nXq02DRQAhlNMz80rMqwl7+wn1BJW0CRv8uzUBpUqHEm77OZcFiFOS9NNvjfuhxbS\nU23GGIUtOWaZIPdoMRtIibGaP9sjKu8JHYGupHZKRxQNaQQ2ra3DQO75wbxwSV9X\nFOl7Spz8BN3wJZLBC5arMzThO0yxw6W46YI7KQbU2soH1hK1zsgoJzuNRiHuHBL3\nJvn1GYCVHxTp4UxuadrQnNN8OGJiivT48qeWiLslUxprSsqe3QzNM2o72uQ4r2II\n9BvEbOBbAExIr0fK+WykU6KGVUcIWCcn2w==\n-----END CERTIFICATE-----\n",
      "fingerprint": {
          "hash_algorithm": "sha256",
          "digest": "7a:6e:51:11:a2:19:7e:d9:b2:8e:fc:a1:72:18:25:18:51:8b:3b:dc:00:26:4f:9a:b3:95:af:63:07:28:fe:6e"
      }
    }
}
Creating an X.509 identity

Creating an X.509 identity request

curl --cookie cookies --request POST --data '@-' https://<IP-address-of-SPS>/api/configuration/x509 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+2p2edlY/lyFw91w4QID\nAQABo1AwTjAdBgNVHQ4EFgQUHCS1guZGRNHNSvIRRCht25WOJOEwHwYDVR0jBBgw\nFoAUHCS1guZGRNHNSvIRRCht25WOJOEwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0B\nAQ0FAAOCAQEAloRhnNbWa+Y0ckkEvgpZ0jB31FP9Ur7oMYt4JYUl7HF9fX59hPN7\nXq02DRQAhlNMz80rMqwl7+wn1BJW0CRv8uzUBpUqHEm77OZcFiFOS9NNvjfuhxbS\nU23GGIUtOWaZIPdoMRtIibGaP9sjKu8JHYGupHZKRxQNaQQ2ra3DQO75wbxwSV9X\nFOl7Spz8BN3wJZLBC5arMzThO0yxw6W46YI7KQbU2soH1hK1zsgoJzuNRiHuHBL3\nJvn1GYCVHxTp4UxuadrQnNN8OGJiivT48qeWiLslUxprSsqe3QzNM2o72uQ4r2II\n9BvEbOBbAExIr0fK+WykU6KGVUcIWCcn2w==\n-----END CERTIFICATE-----\n",
    "issuer_chain": [],
    "private_key": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEAwEi1z6V9Kk3djlS30p+Hf8iAUYU6PvyJBhK6NGqU99cS0zQL\n/9fVsZsxadGMLByADkWMduoXzmPuh8A16iHfu4uikcAFskYNkhLTHKv8WPH74Now\nfsxI79fcYEEwnABPYmxubV4NdxfNbfny44JhZFzYj3A6GTlHonjJ3u3zlVn+AKqI\nLs39U+ffCrYwilE75VaD2bCbb2ba4CiFM0u7s6RzFthfPCm4C+f1MlSUdLsV2Hb+\n2zHf3NrNFklYGymAPlCQtmQjvxWnOrzi+dE5dqwR3FuSPWHT7FbbDAqCdxeQjxts\nqV7Juk8lLsp+ogSMZi2Z+2p2edlY/lyFw91w4QIDAQABAoIBAFHoZzI9z3SO2LsB\nkZByDlk7gpW3R9l+36urnJApeq2ce1Nmj1n7ifbvIfxum+RKe64YqD4bd+qeHQTM\ntuq2ZUTRtX2aq5KGTs+Tn0ROat9ErUPaDeBli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