Commits on Source (100)
-
Endi S. Dewata authored
Added build.sh A new build script has been added to simplify the build process.
-
Alexander Scheel authored
Signed-off-by: Alexander Scheel <alexander.m.scheel@gmail.com>
76f7c710 -
Endi S. Dewata authored
A Travis CI configuration has been added to build JSS and run a basic installation test. Additional tests will be added later.
f6df4da0 -
Endi S. Dewata authored775f70d7
-
Endi S. Dewata authored
The spec template has been modified to require SLF4J package. The build script has been modified to include the SLF4J library. https://pagure.io/jss/issue/7
dcab24ec -
Endi S. Dewata authored
The CryptoManager has been modified to use SLF4J loggers. https://pagure.io/jss/issue/7
b4143c72 -
Endi S. Dewata authored
The PKCS11 classes have been modified to use SLF4J loggers. https://pagure.io/jss/issue/7
bd05cfad -
Endi S. Dewata authored
The remaining Debug.trace() calls have been replaced with SLF4J. https://pagure.io/jss/issue/7
e0911cf5 -
Endi S. Dewata authored2a74e792
-
Endi S. Dewata authoredea6b5c1f
-
Endi S. Dewata authoredfc9841ba
-
Endi S. Dewata authored58d68c8f
-
Endi S. Dewata authored3ee3c9d1
-
Endi S. Dewata authoredc0d98224
-
Endi S. Dewata authored
The test code in UTF8Converter has been moved into a new UTF8ConverterTest class.
ea8979a3 -
Endi S. Dewata authored
The Debug.DEBUG flag has been removed to maintain consistency in normal and in debug mode.
f6604224 -
Endi S. Dewata authored
The CryptoManager has been modified to use generics for type safety.
1b9587e2 -
Endi S. Dewata authored534e98ba
-
Endi S. Dewata authored635a54dc
-
Endi S. Dewata authored883d2d50
-
Endi S. Dewata authored00672383
-
Endi S. Dewata authoredc55ea116
-
Endi S. Dewata authored
The JSSE_SSLClient has been modified to use SLF4J loggers.
a38e3ee1 -
Endi S. Dewata authored
The build scripts have been modified to generate Java classes in the same directory and JAR file with the same name regardless of BUILD_OPT.
fca9015b -
Endi S. Dewata authored
The deprecated org.mozilla.jss.crypto.BadPaddingException has been replaced with javax.crypto.BadPaddingException.
3490258f -
Endi S. Dewata authored7aa5c02f
-
Endi S. Dewata authored
The README has been converted into a Markdown document.
ac361a9f -
Endi S. Dewata authored
The README.md has been modified to include a brief overview and important links.
e391d3d0 -
Endi S. Dewata authored
The README.md have been reformatted to separate text blocks from code blocks.
cb1c6efb -
Endi S. Dewata authored
The freeObjectNick() call in findKeyCallback() in JSSKeyStoreSpi.c has been modified to free the object nickname instead of the object itself.
58cb5d63 -
Endi S. Dewata authored
The SSLServer.run() has been modified to call requestClientAuth() instead of the deprecated setNeedClientAuth() in SSLServerSocket.
a6464021 -
Endi S. Dewata authoredcd0f3846
-
Endi S. Dewata authoredadfdeccb
-
Endi S. Dewata authored3fdf0000
-
Endi S. Dewata authored177a35b3
-
Endi S. Dewata authorede2ecb1be
-
Endi S. Dewata authored3e6e588b
-
Endi S. Dewata authored46f8378f
-
Endi S. Dewata authored4bd7c222
-
Endi S. Dewata authored44d4c939
-
Endi S. Dewata authored3bc1b0b5
-
Endi S. Dewata authoredf6879458
-
Endi S. Dewata authoredf9dc281f
-
root authored0127b8ba
-
Endi S. Dewata authored
The PK11RSAPrivateKey.getModulus() has been modified to get the modulus from the public key, which was converted from the private key using SECKEY_ConvertToPublicKey(). A new PK11Exception has been added as a generic exception for all PKCS #11-related errors. https://pagure.io/jss/issue/9
bf5d3e4a -
Endi S. Dewata authored
The JSSProvider has been modified to provide PKCS #11 keystore service using JSSKeyStoreSpi.
95f80cc3 -
Endi S. Dewata authored
The JSSKeyStoreSpi.engineLoad() has been modified to store the token provided via JSSLoadStoreParameter in the keystore. The token later will be used to execute various operations in the keystore (i.e. retrieving certs and keys from the token). https://pagure.io/jss/issue/10
c03c88be -
Endi S. Dewata authored
The build script has been modified to create the MANIFEST.MF in the dist directory instead of source directory.
6a2eed05 -
Endi S. Dewata authored
The build scripts have been modified to remove the redundant "jss" directory from the source tarball.
46d3098c -
Endi S. Dewata authored
The build script and spec template has been modified to use a new version number and to support development phase (e.g. a1, b2).
209670cc -
Endi S. Dewata authored
The JSSKeyStoreSpi.engineAliases() has been modified to return all aliases from all tokens if the keystore token is not set, and only aliases from the keystore token if it's set. https://pagure.io/jss/issue/10
f5c7bbf0 -
Endi S. Dewata authored
The engineIsCertificateEntry() and engineGetCertificate() in JSSKeyStoreSpi have been modified to use the findCertByNickname() in CryptoManager to check if the requested cert exists and to get get the cert data. https://pagure.io/jss/issue/10
21c4ae16 -
Jack Magne authored
This consists of a migration of low level X509 cert and crl related classes from dogtag into JSS. This initial migration will allow users of jss to utilize these classes to create certs and crls. The initial goal is to simply provide the classes from dogtag to be used in JSS. A later goal will be to refactor dogtag to use the classes moved to JSS, but that will be for a future ticket. This migration will also address this issue: Bug 1577991 - org.mozilla.jss.netscape.security.util.ObjectIdentifier cannot parse OID arcs larger than Integer.MAX_VALUE. The file ObjectIdentifier.java has been modified to use BigInt instead of the int type, allowing for a greater range of values. Fixed minor indentation issue in spec file.
485a5b67 -
Endi S. Dewata authoredb250aad1
-
Endi S. Dewata authored539983b4
-
Endi S. Dewata authored
The perl all.pl dist command has been modified to take separate dist_dir and obj_dir parameters for clarity.
a53041ac -
Endi S. Dewata authored
The JSSKeyStoreSpi.engineGetKey() has been rewritten in Java to search for a private key by its cert. If that is not found, it will search for a private key by its key ID. If that is not found either, it will search for a symmetric key by its nickname. https://pagure.io/jss/issue/10
38c8e666 -
Endi S. Dewata authored
The JSSKeyStoreSpi.engineGetCertificateChain() has been cleaned up for clarity. https://pagure.io/jss/issue/10
ce10f445 -
Endi S. Dewata authored
The JSSKeyStoreSpi.engineGetCertificateChain() has been modified to use CryptoManager.findCertByNickname() to find the leaf cert for building a cert chain. https://pagure.io/jss/issue/10
e43c69b3 -
Endi S. Dewata authored
The JSSKeyStoreSpi has been modified to remove unused classes, methods, and fields. https://pagure.io/jss/issue/10
74c2a3a8 -
Endi S. Dewata authored65b38079
-
Christina Fu authored
This patch provides fix to ensure that the encoding and decoding of an AlgorithmIdentifier structure would not alter the data. credit: original fix suggestion provided by david.k.stutzman2.ctr@mail.mil fixes https://pagure.io/jss/issue/12
8fc2c37b -
Endi S. Dewata authored
The build script has been modified to provide an option to use a custom spec file.
a022d478 -
Endi S. Dewata authored54d0d7db
-
Endi S. Dewata authored
The JSSKeyStoreSpi.engineDeleteEntry() has been modified to use JSS API to remove a cert/key from a PKCS #11 token. https://pagure.io/jss/issue/10
e6b5db2d -
Christina Fu authored
This patch adds support for TLS_*_SHA384 ciphers. Fixes https://pagure.io/jss/issue/4
7ca7415b -
Fraser Tweedale authored
There is a regression in SQL NSSDB backend which causes certificates to not be properly associated with the private keys (i.e. now showing ultimate trust with 'u,u,u' in trust flags). For example, after replica install the replica has an NSSDB that looks like: # certutil -L -d /etc/pki/pki-tomcat/alias/ Certificate Nickname Trust Attributes SSL,S/MIME,JAR/XPI caSigningCert cert-pki-ca CT,C,C ocspSigningCert cert-pki-ca ,, auditSigningCert cert-pki-ca ,,P subsystemCert cert-pki-ca ,, Server-Cert cert-pki-ca u,u,u pk12util does not exhibit this problem because of an explicit call to PK11_ImportPublicKey. Therefore change the JSS key import method to explicitly import the public key via the same. Fixes: https://pagure.io/jss/issue/13 Related: https://pagure.io/freeipa/issue/7589 Related: https://pagure.io/freeipa/issue/7590 Change-Id: Icf24f6384ccf3905145c1954f57b47894dd94f0f
d3b274e1 -
Fraser Tweedale authored
The NSS SQL backend, unlike the DBM backend that preceded it, does not automatically create PKCS #11 public key objects when unwrapping private keys. When certificates are added, this can result in a failure to properly associate the certificate with a private key in the token. When unwrapping a private key, if the given public key wraps an NSS SECKEYPublicKey object, import the public key to the token as well. Change-Id: I146952382d535ad71d9914f3a43d7df5c0a0f510 Related: https://pagure.io/jss/issue/13
c15db84f -
Endi S. Dewata authored
The PK11Token.importPublicKey() has been generalized to become a method in the CryptoToken interface. The public key parameter type has been changed into a more general PublicKey.
828fce1d -
Endi S. Dewata authored
The code in PK11Token has been reformatted for clarity.
90599c08 -
Endi S. Dewata authored
The code that parses an alias into token name and nickname has been refactored into a new reusable method.
12c61505 -
Endi S. Dewata authored
The CertificateUsage class has been moved out of CryptoManager into a separate class.
e5f8b9dd -
Endi S. Dewata authored
The NotInitializedException class has been moved out of CryptoManager into a separate class.
f401397c -
Endi S. Dewata authored
The NicknameConflictException class has been moved out of CryptoManager into a separate class.
ed3a65d7 -
Endi S. Dewata authored
The UserCertConflictException class has been moved out of CryptoManager into a separate class.
5a84e9a1 -
Endi S. Dewata authored
The InvalidLengthException class has been moved out of CryptoManager into a separate class.
2fce5949 -
Endi S. Dewata authored
The InitializationValues class has been moved out of CryptoManager into a separate class.
372142f5 -
Endi S. Dewata authored5531278b
-
Endi S. Dewata authoreda866a9dc
-
Endi S. Dewata authored
The CryptoStore interface has been modified to include deleteCertOnly(). The method has been implemented in PK11Store.
7f94a018 -
Endi S. Dewata authored
The PK11Store.putKeysInVector() has been converted into loadPrivateKeys() which loads all private keys in the PKCS #11 token into a Collection instead of Vector.
b29e60d3 -
Endi S. Dewata authored
A new CryptoStore.getPublicKeys() has been added to return all public keys in the PKCS #11 token.
dc5c24c2 -
Endi S. Dewata authored
The CryptoStore.deletePrivateKey() has been updated for clarity.
ebb09055 -
Endi S. Dewata authored
The build script has been modified to use absolute paths to NSPR and NSS source folders.
05d90477 -
Endi S. Dewata authored
The CryptoManager has been modified to load the native library from java.library.path first, then to load from the default locations if it fails.
42cbe4fd -
Endi S. Dewata authored
A new CryptoStore.findPublicKey() has been added to find the public key corresponding to a private key in a PKCS #11 token. Currently it only supports RSA keys.
b9bf9fbc -
Endi S. Dewata authored
A new CryptoStore.deletePublicKey() method has been added to remove a public key from a PKCS #11 token.
cbf85ef2 -
Endi S. Dewata authored
The JSSKeyStoreSpi.engineDeleteEntry() has been modified such that: - if the given alias is a cert nickname, it will delete the cert without deleting the public and private keys - if the given alias is a key ID, it will delete the public and private keys without deleting the cert
fc7a89da -
Endi S. Dewata authored
The all.pl has been modified to take a jss_lib_dir parameter such that it can test JSS library outside the working directory.
1d2641c1 -
Endi S. Dewata authored
The spec template has been modified to remove warnings about duplicate files.
54e49cc3 -
Elio Maldonado authored
On debian paths to various jar files are different than fedora and other Linux distros. Prior to building do export DEBIAN_BUILD in addition to the other required exports Also add support the option to add -Xlint:deprecation Do export CHECK_DEPRECATION=1 to activate the feature Related: https://pagure.io/jss/issue/14
bef0b54d -
Endi S. Dewata authored
The build_java.pl has been modified to get the NSS_OBJDIR_NAME from <dist>/latest file directly instead of going through each file in <dist>.
c882a1a9 -
Endi S. Dewata authored
The all.pl dist command has been modified to take NSS bin and lib folders as parameters.
3794c22a -
Endi S. Dewata authored
The jss_symlink variable has been replaced with jss_objdir which may point to a link to the NSS object dir in NSS build directory, or an actual JSS object dir if the build is done with installed NSS.
80411f07 -
Endi S. Dewata authored2d84b62e
-
Endi S. Dewata authored2a0996ef
-
Endi S. Dewata authored198d020d
-
Endi S. Dewata authored55a21d23
-
Jack Magne authored
This fix simply uses the java classes LdapName and related to do the same job previously done by and ldap sdk class.
e4cae037 -
Endi S. Dewata authored
The build script and spec template have been modified to remove ldapjdk dependency.
b6ba4d22
.travis.yml
0 → 100644
README
deleted
100644 → 0
README.md
0 → 100644
build.sh
0 → 100755
org/mozilla/jss/CertificateUsage.java
0 → 100644
This diff is collapsed.
org/mozilla/jss/InitializationValues.java
0 → 100644
org/mozilla/jss/InvalidLengthException.java
0 → 100644