There are Private Key, Public Key, x509 Pem file. I want to acquire information about RSA Public Key from these files.
I can confirm it by the shell script as follows. $ openssl x509 -in cert.pem -text
...
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public Key: (2048 bit)
Modulus (2048 bit):
00:e1:92:dc:05:84:c7:e1:2d:db:f3:48:84:90:32:
...
da:7d:2f:95:d2:ab:28:6e:6c:be:0a:af:e0:cb:24:
18:db
Exponent: 65537 (0x10001)
...
Can I acquire a value of Modulus and Exponent in PHP OpenSSL library in the same way?