mirror of
				https://github.com/mickael-kerjean/filestash.git
				synced 2025-11-01 02:43:35 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			372 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			372 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package ssl
 | |
| 
 | |
| import (
 | |
| 	. "github.com/mickael-kerjean/filestash/server/common"
 | |
| )
 | |
| 
 | |
| var (
 | |
| 	keyPEMPath  func() string
 | |
| 	certPEMPath func() string
 | |
| )
 | |
| 
 | |
| func init() {
 | |
| 	keyPEMPath = func() string {
 | |
| 		return GetAbsolutePath(CERT_PATH, "key.pem")
 | |
| 	}
 | |
| 	certPEMPath = func() string {
 | |
| 		return GetAbsolutePath(CERT_PATH, "cert.pem")
 | |
| 	}
 | |
| }
 | |
| 
 | |
| func Clear() {
 | |
| 	clearPrivateKey()
 | |
| 	clearCert()
 | |
| }
 | 
