This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.eckenfels.test.testcontainer; | |
import org.apache.commons.lang3.StringUtils; | |
import org.jetbrains.annotations.NotNull; | |
import org.testcontainers.containers.JdbcDatabaseContainer; | |
import org.testcontainers.containers.wait.strategy.LogMessageWaitStrategy; | |
import org.testcontainers.utility.DockerImageName; | |
import java.time.Duration; | |
import java.time.temporal.ChronoUnit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* JarTimestampChecker.java | |
* | |
* created at 2020-07-17 by Bernd Eckenfels <b.eckenfels@seeburger.de> | |
* | |
* Copyright (c) SEEBURGER AG, Germany. All Rights Reserved. | |
* | |
* This test code is Licensed under the ASL2.0 | |
*/ | |
package net.eckenfels.test.jartest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* QNameTester.java | |
* created at 2020-06-10 by Bernd Eckenfels | |
* Copyright (c) SEEBURGER AG, Germany. All Rights Reserved. | |
* This code is under the Apache Software License (ASL2.0). | |
*/ | |
package test; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
import java.util.Enumeration; | |
import java.util.Hashtable; | |
import javax.naming.Context; | |
import javax.naming.NamingException; | |
import javax.naming.directory.Attributes; | |
import javax.naming.directory.DirContext; | |
import javax.naming.directory.InitialDirContext; | |
import javax.security.sasl.Sasl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create Self Signed RSA Cert for SQL Server usage | |
# | |
# Customize: | |
# + -Subject should contain hostname (or virtal name for FCI) | |
# + -FriendlyName is anything which helps you to recognize the key | |
# + -DnsName should list all variants (FQDN) of hostnames used by clients (VIP+Machines) | |
# + -NotAfter set expire accoring to your policy | |
# + (Non)Exportable is more secure but harder to manage | |
# | |
# - Using RSASSA-PSS (-AlternateSignatureAlgorithm) does not work with Java 8 clients: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* License: ASL2 */ | |
package net.eckenfels.test.javasystemtest; | |
import java.io.File; | |
import java.io.IOException; | |
import java.nio.file.FileStore; | |
import java.nio.file.FileSystem; | |
import java.nio.file.FileSystems; | |
import java.nio.file.Files; | |
import java.nio.file.Path; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> gpg.exe --verbose --list-keys | |
pub brainpoolP384r1 2017-12-09 [SC] | |
971D76C158AFD6D6AC53205327C195C6F0FB0EDA | |
uid [ ultimativ ] Bernd Eckenfels (test) <ecki@zusammenkunft.net> | |
sub brainpoolP384r1 2017-12-09 [E] | |
> gpg.exe --export-secret-key > unsecret.pgp | |
> gpg.exe --verbose --list-packets unsecret.pgp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.eckenfels.test.javasystemtest; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.InetSocketAddress; | |
import java.net.ServerSocket; | |
import java.nio.channels.Pipe; | |
import java.util.concurrent.ExecutionException; | |
import java.util.concurrent.ExecutorService; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* RenameFiles.java | |
* | |
* created at 2017-07-06 by Bernd Eckenfels <b.eckenfels@seeburger.de> | |
* | |
* License: ASL 2.0 | |
*/ | |
package net.eckenfels.test.javasystemtest; | |
import java.io.IOException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rem Batch file creates 2 P12 keystores with ECC Certificates (intermediate + root in chain) | |
@del *.pem | |
@del *.csr | |
@del *.crt | |
@del *.p12 | |
@rem -param_enc explicit not possible with Win 7 | |
set NAME=ECC Test |
NewerOlder