| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | include('./config.php'); | 
					
						
							|  |  |  | include(STORE_DIR.'/config/config.php'); | 
					
						
							|  |  |  | include('./include/common.php'); | 
					
						
							|  |  |  | include('./include/my_functions.php'); | 
					
						
							|  |  |  | include('./include/openssl_functions.php'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $stage = gpvar('stage'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | switch($stage) { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | case 'dl_root': | 
					
						
							|  |  |  | 	upload("$config[cacert_pem]", "$config[ca_prefix]cacert.crt", 'application/x-x509-ca-cert'); | 
					
						
							|  |  |  | 	break; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | case 'display_root': | 
					
						
							|  |  |  | 	printHeader('public'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	?>
 | 
					
						
							|  |  |  | 	<center><h2>Root Certificate (PEM Encoded)</h2></center> | 
					
						
							|  |  |  | 	<p> | 
					
						
							| 
									
										
										
										
											2013-07-17 19:25:45 +00:00
										 |  |  | 	<pre><?php echo  CA_get_root_pem() ?></pre>
 | 
					
						
							| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | 	<p> | 
					
						
							| 
									
										
										
										
											2020-02-21 14:59:01 +01:00
										 |  |  | 	<form action="<?php echo $PHP_SELF?>" method="post"> | 
					
						
							| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | 		<input type=submit name=submit value="Back to Menu"> | 
					
						
							|  |  |  | 	</form> | 
					
						
							| 
									
										
										
										
											2013-07-17 19:25:45 +00:00
										 |  |  | 	<?php | 
					
						
							| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | 	break; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | case 'dl_crl': | 
					
						
							|  |  |  | 	upload("$config[cacrl_der]", "$config[ca_prefix]cacrl.crl", 'application/pkix-crl'); | 
					
						
							|  |  |  | 	break; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-02-27 16:16:31 +01:00
										 |  |  | case 'dl_crl_pem': | 
					
						
							|  |  |  |        upload("$config[cacrl_pem]", "$config[ca_prefix]cacrl.crl", 'application/octet-stream'); | 
					
						
							|  |  |  |        break; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | default: | 
					
						
							|  |  |  | 	printHeader('public'); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	?>
 | 
					
						
							|  |  |  | 	<br> | 
					
						
							|  |  |  | 	<br> | 
					
						
							|  |  |  | 	<center> | 
					
						
							|  |  |  | 	<table class=menu width=500><th class=menu colspan=2><big>PUBLIC CONTENT MENU<big></th> | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 	<tr><td style="text-align: center; vertical-align: middle; font-weight: bold;" width=35%> | 
					
						
							|  |  |  | 	<a href=search.php>Search for a Certificate</a></td> | 
					
						
							|  |  |  | 	<td>Find a digital certificate to download and install in your e-mail or browser application.</td></tr> | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 	<tr><td style="text-align: center; vertical-align: middle; font-weight: bold;"> | 
					
						
							| 
									
										
										
										
											2013-07-17 19:25:45 +00:00
										 |  |  | 	<a href=<?php echo $PHP_SELF?>?stage=dl_root>Download Our Root Certificate</a></td>
 | 
					
						
							| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | 	<td>You must install our "Root" certificate before you can use any of the  | 
					
						
							|  |  |  | 	certificates issued here. <a href=help.php target=_help>Read the online help</a>  | 
					
						
							|  |  |  | 	to learn more about this.</td></tr> | 
					
						
							|  |  |  | 	 | 
					
						
							|  |  |  | 	<tr><td style="text-align: center; vertical-align: middle; font-weight: bold;"> | 
					
						
							| 
									
										
										
										
											2013-07-17 19:25:45 +00:00
										 |  |  | 	<a href=<?php echo $PHP_SELF?>?stage=display_root>Display Our Root Certificate (PEM Encoded)</a></td>
 | 
					
						
							| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | 	<td>This option provides the "Root" certificate PEM encoded text for advanced users  | 
					
						
							|  |  |  | 	to manually install via copy and paste. <a href=help.php target=_help>Read the online help</a>  | 
					
						
							| 
									
										
										
										
											2020-02-27 16:16:31 +01:00
										 |  |  | 	to learn more about this.</td> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | 	<tr><td style="text-align: center; vertical-align: middle; font-weight: bold;"> | 
					
						
							| 
									
										
										
										
											2020-02-27 16:16:31 +01:00
										 |  |  | 	 | 
					
						
							| 
									
										
										
										
											2013-07-17 19:25:45 +00:00
										 |  |  | 	<a href=<?php echo $PHP_SELF?>?stage=dl_crl>Download Our Certificate Revocation List</a></td>
 | 
					
						
							| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | 	<td>The official list of certificates revoked by this site.  Installation and use of  | 
					
						
							| 
									
										
										
										
											2020-02-27 16:16:31 +01:00
										 |  |  | 	this list is optional. Some e-mail programs will reference this list automagically. | 
					
						
							|  |  |  | 	(<a href="<?php echo $PHP_SELF?>?stage=dl_crl_pem">Some will need it in PEM format.</a>)</td></tr> | 
					
						
							| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | 	 | 
					
						
							|  |  |  | 	</table> | 
					
						
							|  |  |  | 	</center> | 
					
						
							|  |  |  | 	<br><br> | 
					
						
							| 
									
										
										
										
											2013-07-17 19:25:45 +00:00
										 |  |  | 	<?php | 
					
						
							| 
									
										
										
										
											2012-02-28 08:23:39 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	printFooter(); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ?>
 |