diff --git a/lemur/static/app/angular/certificates/certificate/certificate.js b/lemur/static/app/angular/certificates/certificate/certificate.js index 9fadb655..4bdbf60e 100644 --- a/lemur/static/app/angular/certificates/certificate/certificate.js +++ b/lemur/static/app/angular/certificates/certificate/certificate.js @@ -255,9 +255,6 @@ angular.module('lemur') $scope.certificate.replacedBy = []; // should not clone 'replaced by' info $scope.certificate.removeReplaces(); // should not clone 'replacement cert' info - if(!$scope.certificate.keyType) { - $scope.certificate.keyType = 'RSA2048'; // default algo to select during clone if backend did not return algo - } CertificateService.getDefaults($scope.certificate); }); diff --git a/lemur/static/app/angular/certificates/services.js b/lemur/static/app/angular/certificates/services.js index ce88ccb3..280d6078 100644 --- a/lemur/static/app/angular/certificates/services.js +++ b/lemur/static/app/angular/certificates/services.js @@ -289,6 +289,11 @@ angular.module('lemur') if (certificate.dnsProviderId) { certificate.dnsProvider = {id: certificate.dnsProviderId}; } + + if(!certificate.keyType) { + certificate.keyType = 'RSA2048'; // default algo to select during clone if backend did not return algo + } + }); };