Skip to content

SelfSignedCertificate should try BouncyCastle first#11487

Merged
normanmaurer merged 1 commit into
4.1from
self_sign_bouncy_first
Jul 15, 2021
Merged

SelfSignedCertificate should try BouncyCastle first#11487
normanmaurer merged 1 commit into
4.1from
self_sign_bouncy_first

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:

In JDK version >= 9 the access to sun.* is not permitted anymore by default. Because of this we should better first try the BouncyCastle based implementation before falling back to the JDK based version.

Modifications:

Switch ordering of usage of BouncyCastle vs JDK internals.

Result:

Less surprising errors when using SelfSignedCertificate in Java >9

@normanmaurer normanmaurer added this to the 4.1.66.Final milestone Jul 13, 2021
Motivation:

In JDK version >= 9 the access to sun.* is not permitted anymore by default. Because of this we should better first try the BouncyCastle based implementation before falling back to the JDK based version.

Modifications:

Switch ordering of usage of BouncyCastle vs JDK internals.

Result:

Less surprising errors when using SelfSignedCertificate in Java >9
@normanmaurer normanmaurer force-pushed the self_sign_bouncy_first branch from 79760db to 04ba1c7 Compare July 14, 2021 05:47
@normanmaurer normanmaurer merged commit 55957d3 into 4.1 Jul 15, 2021
@normanmaurer normanmaurer deleted the self_sign_bouncy_first branch July 15, 2021 06:59
raidyue pushed a commit to raidyue/netty that referenced this pull request Jul 8, 2022
Motivation:

In JDK version >= 9 the access to sun.* is not permitted anymore by default. Because of this we should better first try the BouncyCastle based implementation before falling back to the JDK based version.

Modifications:

Switch ordering of usage of BouncyCastle vs JDK internals.

Result:

Less surprising errors when using SelfSignedCertificate in Java >9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants