Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: minor cleanup PR#315#322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
code-asher merged 1 commit intocoder:mainfromcoryb:tls-cleanup
Nov 2, 2023
Merged

Conversation

coryb
Copy link
Contributor

  • use trust store for ssl connections even if key/cert not used.
  • remove/fix debugging println
  • fix property names to be consistent.
  • added some basic tls tests

@code-asher I think this addresses your PR comments from#315

if (settings.tlsCertPath.isBlank() || settings.tlsKeyPath.isBlank()) {
return SSLSocketFactory.getDefault() as SSLSocketFactory
}
fun SSLContextFromPEMs(certPath: String, keyPath: String, caPath: String) : SSLContext {
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I just refactored this out ofcoderSocketFactory so we could reuse the pem parsing logic for the SSL context for the tests.

* use trust store for ssl connections even if key/cert not used.* remove/fix debugging println* fix property names to be consistent.
Copy link
Member

@code-ashercode-asher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is awesome, thank you!!

@code-ashercode-asher merged commit3e29993 intocoder:mainNov 2, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@code-ashercode-ashercode-asher approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@coryb@code-asher

[8]ページ先頭

©2009-2025 Movatter.jp