v2.7.18: bugfix checking private key
This commit is contained in:
		
							parent
							
								
									6aafe3d663
								
							
						
					
					
						commit
						1766790424
					
				| @ -505,7 +505,7 @@ module.exports.create = function (gl) { | ||||
|               return cert; | ||||
|             } else { | ||||
|               return gl.store.certificates.checkKeypairAsync(args).then(function (keypair) { | ||||
|                 cert.privkey = RSA.exportPrivatePem(keypair).privateKeyPem; | ||||
|                 cert.privkey = keypair.privateKeyPem || RSA.exportPrivatePem(keypair); | ||||
|                 return cert; | ||||
|               }); | ||||
|             } | ||||
|  | ||||
| @ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "greenlock", | ||||
|   "version": "2.7.17", | ||||
|   "version": "2.7.18", | ||||
|   "description": "Let's Encrypt for node.js on npm", | ||||
|   "main": "index.js", | ||||
|   "files": [ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user