Generating new key...
Done
Issuing CSR...
Done
Self-signing CSR...
Warning: fopen(./openssl/crypto/serial) [function.fopen]: failed to open stream: No such file or directory in /var/www/php-ca/include/common.php on line 30
Warning: fscanf(): supplied argument is not a valid File-Handle resource in /var/www/php-ca/include/common.php on line 31
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/php-ca/include/common.php on line 32
Done
Exporting X509 Certificate...
Done
Exporting encoded private key...
Done
Saving your certificate...
Done
Saving your encoded key...
Done
Saving your index file...
Done
Saving your serial file...
Done
Saving your configuration file...
Done
Your certificate:
The issue is almost certainly permissions. PHP-CA needs a better explanation of the permissions requirements. I know it needs to be able to write to certain subdirectories of itself. The setup process should check those permissions and tell you which ones need changing, but it doesn't at the moment.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Checking your DN (Distinguished Name)...
DN = array (
.
.
.
)
Generating new key...
Done
Issuing CSR...
Done
Self-signing CSR...
Warning: fopen(./openssl/crypto/serial) [function.fopen]: failed to open stream: No such file or directory in /var/www/php-ca/include/common.php on line 30
Warning: fscanf(): supplied argument is not a valid File-Handle resource in /var/www/php-ca/include/common.php on line 31
Warning: fclose(): supplied argument is not a valid stream resource in /var/www/php-ca/include/common.php on line 32
Done
Exporting X509 Certificate...
Done
Exporting encoded private key...
Done
Saving your certificate...
Done
Saving your encoded key...
Done
Saving your index file...
Done
Saving your serial file...
Done
Saving your configuration file...
Done
Your certificate:
-----BEGIN CERTIFICATE-----
MIIEzTCCBDagAwIBAgIBATANBgkqhkiG9w0BAQQFADCB+jEpMCcGA1UEAxQgRW1w
...
d/kSg3W9vu5YpO8XJfAQclkxb5GEwwXi43YgcZflnqir
-----END CERTIFICATE-----
Your key:
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,E45D046FDE07E48C
Bq5oBVi9D3OtY78gSHJtPnURoVwFhNCKMgTWExDPKZMvEnwxCInqAaFcqmGMxfvv
...
kC3rHu85LbIKJIQlc3t5o/LmlubvuuFkJxecaUX8HWmu10k1+bhebQ==
-----END RSA PRIVATE KEY-----
Successfully created CA Certificate and CA Key.
Congratulations, you have now created your CA, and this site is live.
The next step would be for you to create your own personal certificate.
--> Get a signed certificate
The issue is almost certainly permissions. PHP-CA needs a better explanation of the permissions requirements. I know it needs to be able to write to certain subdirectories of itself. The setup process should check those permissions and tell you which ones need changing, but it doesn't at the moment.