Skip to content

Commit

Permalink
change defasult key length to 2048
Browse files Browse the repository at this point in the history
  • Loading branch information
pdowler committed Jun 19, 2020
1 parent 9104e04 commit 451208f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cadc-cdp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sourceCompatibility = 1.7

group = 'org.opencadc'

version = '1.2.3'
version = '1.4'

mainClassName = 'ca.nrc.cadc.cred.client.Main'

Expand All @@ -26,9 +26,9 @@ dependencies {
compile 'org.bouncycastle:bcprov-jdk15on:1.46'
compile 'javax.servlet:javax.servlet-api:3.1.+'

compile 'org.opencadc:cadc-util:[1.2.25,)'
compile 'org.opencadc:cadc-util:[1.3.10,)'
compile 'org.opencadc:cadc-log:[1.1.0,)'
compile 'org.opencadc:cadc-registry:1.+'
compile 'org.opencadc:cadc-registry:[1.4,)'

testCompile 'junit:junit:4.+'
}
Expand Down
9 changes: 3 additions & 6 deletions cadc-cdp/src/main/java/ca/nrc/cadc/cred/CertUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
******************* CANADIAN ASTRONOMY DATA CENTRE *******************
************** CENTRE CANADIEN DE DONNÉES ASTRONOMIQUES **************
*
* (c) 2015. (c) 2015.
* (c) 2020. (c) 2020.
* Government of Canada Gouvernement du Canada
* National Research Council Conseil national de recherches
* Ottawa, Canada, K1A 0R6 Ottawa, Canada, K1A 0R6
Expand Down Expand Up @@ -69,6 +69,7 @@

package ca.nrc.cadc.cred;

import ca.nrc.cadc.auth.X509CertificateChain;
import java.io.IOException;
import java.io.Writer;
import java.math.BigInteger;
Expand All @@ -88,9 +89,7 @@
import java.util.GregorianCalendar;
import java.util.Random;
import java.util.TimeZone;

import javax.security.auth.x500.X500Principal;

import org.bouncycastle.asn1.ASN1EncodableVector;
import org.bouncycastle.asn1.DERObjectIdentifier;
import org.bouncycastle.asn1.DERSequence;
Expand All @@ -104,8 +103,6 @@
import org.bouncycastle.x509.extension.AuthorityKeyIdentifierStructure;
import org.bouncycastle.x509.extension.SubjectKeyIdentifierStructure;

import ca.nrc.cadc.auth.X509CertificateChain;

/**
* Utilities for certificate operations
*/
Expand All @@ -114,7 +111,7 @@ public class CertUtil

public static final String DEFAULT_SIGNATURE_ALGORITHM = "SHA256WITHRSA";

public static final int DEFAULT_KEY_LENGTH = 1024;
public static final int DEFAULT_KEY_LENGTH = 2048;

/**
* Method that generates an X509 proxy certificate
Expand Down

0 comments on commit 451208f

Please sign in to comment.