mirror of
				https://github.com/therootcompany/acme.js.git
				synced 2024-11-16 17:29:00 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			331 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			331 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
'use strict';
 | 
						|
 | 
						|
var https = require('https');
 | 
						|
var server = https.createServer({
 | 
						|
  key: require('fs').readFileSync('../tests/privkey.pem')
 | 
						|
, cert: require('fs').readFileSync('../tests/fullchain.pem')
 | 
						|
}, function (req, res) {
 | 
						|
  res.end("Hello, World!");
 | 
						|
}).listen(443, function () {
 | 
						|
  console.log('Listening on', this.address());
 | 
						|
});
 |