Class AdminTLS
java.lang.Object
io.github.protasm.jvmud.communication.transport.admin.AdminTLS
Persistent TLS server identity and explicit certificate pinning for administration consoles.
-
Method Summary
Modifier and TypeMethodDescriptionstatic SSLContextTrusts exactly the operator-supplied certificate fingerprint; never learns trust from the network.static Stringfingerprint(Certificate certificate) SHA-256 pin for an exact certificate, suitable for out-of-band distribution.static SSLContextCreates a local self-signed identity once, then loads it; administrators distribute its fingerprint securely.
-
Method Details
-
server
Creates a local self-signed identity once, then loads it; administrators distribute its fingerprint securely.- Throws:
Exception
-
client
Trusts exactly the operator-supplied certificate fingerprint; never learns trust from the network.- Throws:
GeneralSecurityException
-
fingerprint
SHA-256 pin for an exact certificate, suitable for out-of-band distribution.- Throws:
GeneralSecurityException
-