Imtiyaz Posted May 4, 2023 Share Posted May 4, 2023 my requirement is to get thumbprint of the certificate and I am trying to use this $thumb = openssl_x509_fingerprint($certContent,"RSA-SHA256",false); $thumb1 = openssl_x509_fingerprint($certContent,"sha256",false); But the return of the above is not matching with the thumbprint. when I open the cert and check "Details" --> Thumbprint , it is different than what is returned from above function. when I check here "signature algorithm = sha256RSA" and "signature hash algorithm = sha256" Please let me know if I am missing something. Quote Link to comment https://forums.phpfreaks.com/topic/316253-retrieving-thumbprint-of-certificate/ Share on other sites More sharing options...
Imtiyaz Posted May 4, 2023 Author Share Posted May 4, 2023 now it worked with "sha1" but question whysha256 did not work because when I check the cert Details and "signature hash algorithm" is sha256 so I assumed that the value should sha256. Quote Link to comment https://forums.phpfreaks.com/topic/316253-retrieving-thumbprint-of-certificate/#findComment-1608045 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.