You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jens Deppe (Jira)" <ji...@apache.org> on 2021/07/20 14:16:00 UTC

[jira] [Created] (GEODE-9439) Convert CertifacteBuilder to sun/jdk APIs

Jens Deppe created GEODE-9439:
---------------------------------

             Summary: Convert CertifacteBuilder to sun/jdk APIs
                 Key: GEODE-9439
                 URL: https://issues.apache.org/jira/browse/GEODE-9439
             Project: Geode
          Issue Type: Test
          Components: tests
            Reporter: Jens Deppe


The {{CertificateBuilder}} test utility uses Bouncy Castle APIs to build CA and regular certs for test purposes. In some cases it is desirable for these certificates to be serializable. In such cases it is also required that the BC security provider have a higher priority than the standard java one otherwise the deserialized certificates are not usable. 

It would be less trouble to just use standard jdk APIs to build these certificates. Although no {{X509}} APIs are public/documented they are well used throughout the JDK. For example the {{keytool}} utility. Java 9 introduces its own {{CertificateBuilder}} API which could eventually replace this one.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)