From:             bassijunior at yahoo dot com dot br
Operating system: Windows XP
PHP version:      5.2.0
PHP Bug Type:     Feature/Change Request
Bug description:  Verifying the signature of the certificate

Description:
------------
Hi, 

I was developing a code that need some openssl functions.

I was studying the openssl functions of PHP and I did not  find nothing to
verifying the signature of X.509 certificate.

The openssl_verify function verifies a string.

But, what can I do to verify the signature of  a certificate, like this: 

-----BEGIN CERTIFICATE-----
MIICxjCCAi+gAwIBAgIBADANBgkqhkiG9w0BAQQFADCBqDEPMA0GA1UEAxMGRk9S
QklTMQswCQYDVQQGEwJMVDEQMA4GA1UEBxMHVklMTklVUzEQMA4GA1UECBMHVklM
TklVUzEoMCYGA1UEChMfVVpEQVJPSkkgQUtDSU5FIEJFTkRST1ZFIEZPUkJJUzEU
MBIGA1UECxMLSU5URUdSQVRJT04xJDAiBgkqhkiG9w0BCQEWFUwuSlVaSUtFTkFT
QEZPUkJJUy5MVDAeFw0wNDAzMjIxNTE2MDNaFw0wNDA0MjExNTE2MDNaMIGoMQ8w
DQYDVQQDEwZGT1JCSVMxCzAJBgNVBAYTAkxUMRAwDgYDVQQHEwdWSUxOSVVTMRAw
DgYDVQQIEwdWSUxOSVVTMSgwJgYDVQQKEx9VWkRBUk9KSSBBS0NJTkUgQkVORFJP
VkUgRk9SQklTMRQwEgYDVQQLEwtJTlRFR1JBVElPTjEkMCIGCSqGSIb3DQEJARYV
TC5KVVpJS0VOQVNARk9SQklTLkxUMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
gQCrbyCkLdo1gfT3d5JjwrLYC8WAXNI50afTGx9+ncjfnONGtScsbwlQ5Qw55neH
TUe1TbI/QJc8KZ7PU5/sJAVNpuJW9JEI0y1xX6egfVSWkDGv/GgSb2JebnD1+Nw2
fw8lU0v4F6/IjHU9FOfSTBAIN58g5FqTweAZg5BU7uN9XwIDAQABMA0GCSqGSIb3
DQEBBAUAA4GBACh8eFBJ/8p8f1t8TWlh6lX4hpGpyej0h+0BW45icxkpDplfGbFx
47OClHjzgROo6zFx7Axn5JC1IWPiiyylbSbahpyCpcasuQchErcXJ72ctq8nBXqV
s7sPhlunemdfpFuZLBNFbw5xaUs+lt9tAZFi6EHnhjCFGilH4u5aRcta -----END
CERTIFICATE-----


I have the public key to verify it. But I do not Know how  I use it.

Thanks!




-- 
Edit bug report at http://bugs.php.net/?id=39956&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=39956&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=39956&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=39956&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=39956&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=39956&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=39956&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=39956&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=39956&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=39956&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=39956&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=39956&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=39956&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=39956&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=39956&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=39956&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=39956&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=39956&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=39956&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=39956&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=39956&r=mysqlcfg

Reply via email to