Skip to content

Commit

Permalink
eDEC Codelist v8.9, dependabot and docker fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-kumar committed Jul 21, 2024
1 parent 7cf1cc2 commit 70b3432
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
tags: norstella/oxalis:6.5.0-latest
tags: norstella/oxalis:6.6.1-latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8
push: true
tags: norstella/oxalis:6.5.0
tags: norstella/oxalis:6.6.0
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ public void testFoedselsnummerWhichCouldBeUsedByDigitalMultiKanal() {
public void testParsePeppolParticpantId() throws Exception {

ParticipantId no976098897 = ParticipantId.valueOf("0192:976098897");
ParticipantId my05976098897 = ParticipantId.valueOf("0230:976098897");
assertEquals(no976098897, new ParticipantId(PeppolIcd.NO_ORG, "976098897"));

no976098897 = ParticipantId.valueOf("0192:976098897");
assertEquals(no976098897, new ParticipantId(PeppolIcd.NO_ORG, "976098897"));

no976098897 = ParticipantId.valueOf("0213:976098897");
assertEquals(no976098897, new ParticipantId(PeppolIcd.FI_VAT, "976098897"));
my05976098897 = ParticipantId.valueOf("0230:05976098897");
assertEquals(my05976098897, new ParticipantId(PeppolIcd.MY_EIF, "05976098897"));

//invalid iso code will not be parsed.
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class EncryptionTest {
@BeforeClass
public void createKeyPair() throws NoSuchAlgorithmException, InvalidAlgorithmParameterException {
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA");
keyPairGenerator.initialize(1024); // Medium security is fine
keyPairGenerator.initialize(2048);
keyPair = keyPairGenerator.generateKeyPair();

KeyGenerator keyGenerator = KeyGenerator.getInstance("DES");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private byte[] encrypt(KeyPair keyPair) throws NoSuchAlgorithmException, NoSuchP
private KeyPair generateKeyPair() throws NoSuchAlgorithmException, NoSuchProviderException {
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DSA");
SecureRandom secureRandom = SecureRandom.getInstance("SHA1PRNG", "SUN");
keyPairGenerator.initialize(1024, secureRandom);
keyPairGenerator.initialize(2048, secureRandom);

return keyPairGenerator.generateKeyPair();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class CertificateMock {
public static X509Certificate withCN(String cn) {
try {
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA", "BC");
keyPairGenerator.initialize(1024, new SecureRandom()); // No ment to be secure!
keyPairGenerator.initialize(2048, new SecureRandom());

KeyPair keyPair = keyPairGenerator.generateKeyPair();

Expand Down

0 comments on commit 70b3432

Please sign in to comment.