mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-10-31 01:58:11 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			334 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			334 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package ssl
 | |
| 
 | |
| import (
 | |
| 	. "github.com/mickael-kerjean/filestash/server/common"
 | |
| 	"os"
 | |
| )
 | |
| 
 | |
| var keyPEMPath string = GetAbsolutePath(CERT_PATH, "key.pem")
 | |
| var certPEMPath string = GetAbsolutePath(CERT_PATH, "cert.pem")
 | |
| 
 | |
| func init() {
 | |
| 	os.MkdirAll(GetAbsolutePath(CERT_PATH), os.ModePerm)
 | |
| }
 | |
| 
 | |
| func Clear() {
 | |
| 	clearPrivateKey()
 | |
| 	clearCert()
 | |
| }
 | 
