Class OpensslTruststoreHelper


  • public class OpensslTruststoreHelper
    extends Object
    Several static methods helping to mangle truststore file paths in openssl style.
    Author:
    K. Benedyczak
    • Constructor Detail

      • OpensslTruststoreHelper

        public OpensslTruststoreHelper()
    • Method Detail

      • getNsFile

        public static String getNsFile​(String certLocation,
                                       String suffix)
        Parameters:
        certLocation - certificate location
        suffix - either '.namespaces' or '.signing_policy' (other will work but rather doesn't make sense)
        Returns:
        A proper name of a namespaces or signing policy file for the given base path of CA certificate.
      • getOpenSSLCAHash

        public static String getOpenSSLCAHash​(X500Principal name,
                                              boolean openssl1Mode)