Skip to content

Instantly share code, notes, and snippets.

@shibafu528
Created September 30, 2021 21:46
Show Gist options
  • Save shibafu528/d879874c8d5bef61d32832c214f3b8a6 to your computer and use it in GitHub Desktop.
Save shibafu528/d879874c8d5bef61d32832c214f3b8a6 to your computer and use it in GitHub Desktop.
mikutterでのhttpclientのcert古すぎ回避
# frozen_string_literal: true
Plugin.create(:trustme) do
end
module Plugin::Trustme
def initialize(*args, **kwargs, &block)
super
ssl_config.set_default_paths
end
end
HTTPClient.prepend(Plugin::Trustme)
@shibafu528
Copy link
Author

shibafu528 commented Sep 30, 2021

curl -o ~/.mikutter/plugin/trustme.rb https://gist.githubusercontent.com/shibafu528/d879874c8d5bef61d32832c214f3b8a6/raw/5a9e97311533cd848b3a63def8ab4c6ec300ffe9/trustme.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment