Home | History | Annotate | Download | only in www

Lines Matching refs:cert_pem

136   $cert_pem = "$cadir/tmp/req-signed.pem";
137 if (file_exists($cert_pem))
138 unlink($cert_pem);
139 exec("openssl x509 -req -in $req_pem -CAkey $cadir/cakey.pem -out $cert_pem -CA $cadir/cacert.pem -CAserial $cadir/serial -days 365 -text");
140 if (!file_exists($cert_pem)) {
145 $cert = file_get_contents($cert_pem);
146 $handle = popen("openssl x509 -in $cert_pem -serial -noout", "r");
163 exec("openssl x509 -in $cert_pem -inform PEM -out $cert_der -outform DER");
174 exec("openssl crl2pkcs7 -nocrl -certfile $cert_pem -out $pkcs7 -outform DER");
180 if (!$db->exec("UPDATE sessions SET user='$user', cert='$fingerprint', cert_pem='$cert' WHERE rowid=$rowid")) {