Implement CSR validation
This commit adds CSR validation and generation of a baseline requirements compatible request token instead of a UUID. Logging has been configured to use timestamps.
This commit is contained in:
		
							parent
							
								
									2093bf2429
								
							
						
					
					
						commit
						743b8e6853
					
				
					 4 changed files with 78 additions and 31 deletions
				
			
		|  | @ -150,7 +150,7 @@ | |||
|                         progressBar.setAttribute("aria-valuenow", "3"); | ||||
|                         progressBar.classList.add('progress-bar-striped', 'progress-bar-animated'); | ||||
|                         progressBar.innerHTML = i18n.t('keygen.generated', {seconds: seconds}) + ', ' + i18n.t('certificate.waiting'); | ||||
|                         postData("/sign/", {"csr": csrPem, "commonName": subject}, csrfToken) | ||||
|                         postData("/sign/", {"csr": csrPem, "common_name": subject}, csrfToken) | ||||
|                             .then(data => { | ||||
|                                 const request_id = data["request_id"] | ||||
|                                 const webSocket = new WebSocket( | ||||
|  |  | |||
		Reference in a new issue