/[smecontribs]/rpms/phpki-ng/contribs10/phpki-ng-0.84-fix-download-cert.patch
ViewVC logotype

Contents of /rpms/phpki-ng/contribs10/phpki-ng-0.84-fix-download-cert.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Thu Apr 1 09:12:22 2021 UTC (3 years, 1 month ago) by jcrisp
Branch: MAIN
CVS Tags: phpki-ng-0_84-15_el7_sme, phpki-ng-0_84-11_el7_sme, phpki-ng-0_84-14_el7_sme, phpki-ng-0_84-13_el7_sme, phpki-ng-0_84-16_el7_sme, phpki-ng-0_84-10_el7_sme, phpki-ng-0_84-12_el7_sme, phpki-ng-0_84-7_el7_sme, phpki-ng-0_84-9_el7_sme, phpki-ng-0_84-8_el7_sme, HEAD
* Thu Apr 01 2021 John Crisp <jcrisp@safeandsoundit.co.uk> 0.84-7.sme
- Fix broken Download Certificate in Cert generation [SME: 11513]

1 diff -ruN phpki-ng.old/phpki-ng-0.84/ca/request_cert.php phpki-ng/phpki-ng-0.84/ca/request_cert.php
2 --- phpki-ng.old/phpki-ng-0.84/ca/request_cert.php 2021-04-01 11:01:19.810817793 +0200
3 +++ phpki-ng/phpki-ng-0.84/ca/request_cert.php 2021-04-01 11:00:54.864420895 +0200
4 @@ -209,8 +209,8 @@
5 <p><form action='<?php echo $PHP_SELF?>' method=post>
6 <?php echo $hidden_fields ?>
7 <input type=hidden name=form_stage value=final>
8 - <input type=submit name=submit value='Yes. Create and Download' >&nbsp;
9 - <input type=submit name=submit value='Yes. Just Create' >&nbsp;
10 + <input type=submit name=submit value='Yes. Create and Download' >&nbsp;
11 + <input type=submit name=submit value='Yes. Just Create' >&nbsp;
12 <input type=submit name=submit value='Go Back'>
13 </form>
14
15 @@ -234,7 +234,7 @@
16 break;
17
18 case 'final':
19 - if ($submit == "Yes Create and Download" || $submit == "Yes. Just Create") {
20 + if ($submit == "Yes. Create and Download" || $submit == "Yes. Just Create") {
21 if (! $serial = CAdb_in($email, $common_name)) {
22 list($ret,$errtxt) = CA_create_cert($cert_type, $country, $province, $locality, $organization, $unit, $common_name, $email, $expiry, $passwd, $keysize, $dns_names, $ip_addr);
23
24 @@ -263,7 +263,7 @@
25 }
26 }
27
28 - if ($submit == "Yes Create and Download") {
29 + if ($submit == "Yes. Create and Download") {
30 switch ($cert_type) {
31 case 'server':
32 # upload(array("$config[private_dir]/$serial-key.pem","$config[new_certs_dir]/$serial.pem",$config['cacert_pem']), "$common_name ($email).pem",'application/pkix-cert');

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed