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