0

I have a PKIsignature and a certificate attached to same file, How can I:

  1. extract public key from certificate chain
  2. use public key to get hash file from PKIsignature

DBNmqrbZ+cC9Y07ISjzSqROnic5Az8qEwXb04aRGTn57xf8uzOfuovoo+Lfoen1myezz06kLWsaR pL0HsJBFwj/qSHWKuLiQ5kOEeVGMlMlFjQ8bsss8uLHZWXnk7c56I9QI/B+pjGCAo2bowzYtWBEg 0Yib8TNAX26KuhNg3e8P76Jn0A3YeTd6zM4mtNo1LCa0KyQjs5fC18Tw4sjii49hXDd76aOdCyvf 4XW66EWlUECEP1C7MlpZIGOu8X9rQ9nR/vwm9LL+hlkWjblBfGMazQp9o8OVXszkdxxGkW7EKpGO Gk1cAf2AYz0jIGpVvB39wGvV8K+RlKp9Mdnidw==

<certificatechain>
<prodcert>
-----BEGIN CERTIFICATE-----
MIIETzCCAzegAwIBAgIBATANBgkqhkiG9w0BAQUFADB3MQswCQYDVQQGEwJTRTEUMBIGA1UEChML
RXJpY3Nzb24gQUIxFzAVBgNVBAsTDkxpY2Vuc2UgQ2VudGVyMTkwNwYDVQQDEzBQcm9kQ0EgZm9y
IFNpZ25pbmcgbGljZW5zZSBmaWxlcyBDQVggMTA2IDAwODQvMzAwIhgPMjAxMDA4MTgwMDAwMDBa
GA8yMDM3MDEyOTAwMDAwMFoweTELMAkGA1UEBhMCU0UxFDASBgNVBAoTC0VyaWNzc29uIEFCMRcw
FQYDVQQLEw5MaWNlbnNlIENlbnRlcjE7MDkGA1UEAxMyUHJvZENlcnQgZm9yIFNpZ25pbmcgbGlj
ZW5zZSBmaWxlcyBDQVggMTA2IDAwODQvMzAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQDJGSjP1jKZ2iU/dvPXNnbnnAJzlD7IJCUK52Z05mqkhhKkq3y3yk7csgccVau0bdh1vxcGMaCA
sWD/AObajxVCnBWRa/UqssBNPT/iUv3XuRyZjfZX3N+2LukAIBHwo1lyHzcbfRp23iOEz1Ukld3M
K6lZdNYfG4L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MMqMlm0LudG9HHx+
Hue8gGduChXBXfI04P08yznlHNkF+6FVvOPeu93K704mnr5fU4U3Myzewl6PreSSxBp7uS/11tgk
12yfkF00JFuxGbG+ERl9Gv3lpC7IVPCTLN4TqHuz+0vFrKC4sTsVhMdGj81h0wz389eZtZBDOZb4
sgT1UZiZb8/32TQQndtZJaDxr9Z/pvF8seVjNMvrhfqBGyxT6+QAquJK5RLwuOuqXYTjSmJQe5qq
DILKWj87/NCOe/YQTswqfhnHM+Bz0NZCuXZ4HzLAaQsbqcyTOvR8C4cw
-----END CERTIFICATE-----
</cacert>
</certificatechain>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.