mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-31 09:29:13 +00:00 
			
		
		
		
	Add preliminary bootstrap API call
This commit is contained in:
		
							
								
								
									
										14
									
								
								certidude/api/bootstrap.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								certidude/api/bootstrap.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | ||||
| import logging | ||||
| from certidude.decorators import serialize | ||||
| from certidude.config import cp | ||||
| from certidude import authority, config, const | ||||
| from jinja2 import Template | ||||
|  | ||||
| logger = logging.getLogger(__name__) | ||||
|  | ||||
| class BootstrapResource(object): | ||||
|     def on_get(self, req, resp): | ||||
|         resp.body = Template(open(config.BOOTSTRAP_TEMPLATE).read()).render( | ||||
|             authority = const.FQDN, | ||||
|             servers = [cn for cn, path, buf, cert, server in authority.list_signed() if server]) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user