forked from root/acme.js
		
	remove accidental use of node crypto
This commit is contained in:
		
							parent
							
								
									499ac7f8ea
								
							
						
					
					
						commit
						96b491a9c0
					
				
							
								
								
									
										11
									
								
								lib/acme.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								lib/acme.js
									
									
									
									
									
								
							@ -988,9 +988,14 @@ ACME._getCertificate = function(me, options) {
 | 
				
			|||||||
		// a little bit of random to ensure that getZones()
 | 
							// a little bit of random to ensure that getZones()
 | 
				
			||||||
		// actually returns the zones and not the hosts as zones
 | 
							// actually returns the zones and not the hosts as zones
 | 
				
			||||||
		var dnsHosts = options.domains.map(function(d) {
 | 
							var dnsHosts = options.domains.map(function(d) {
 | 
				
			||||||
			var rnd = require('crypto')
 | 
								var rnd = parseInt(
 | 
				
			||||||
				.randomBytes(2)
 | 
									Math.random()
 | 
				
			||||||
				.toString('hex');
 | 
										.toString()
 | 
				
			||||||
 | 
										.slice(2),
 | 
				
			||||||
 | 
									10
 | 
				
			||||||
 | 
								)
 | 
				
			||||||
 | 
									.toString(16)
 | 
				
			||||||
 | 
									.slice(0, 4);
 | 
				
			||||||
			return rnd + '.' + d;
 | 
								return rnd + '.' + d;
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
		promiseZones = ACME._getZones(
 | 
							promiseZones = ACME._getZones(
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user