pemファイルに含まれる証明書の確認方法

以下で、内容が見られます。

openssl x509 -text -fingerprint -noout -in "ファイル名.pem"

実際には、こんな感じです。

$ openssl x509 -text -fingerprint -noout -in  '*.xxxxxxxx.xxx.cer'
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            26:8c:4f:db:b0:ba:d7:43:45:1b:43:f2:5d:84:9b:85
        Signature Algorithm: sha384WithRSAEncryption
        Issuer: C = AT, O = ZeroSSL, CN = ZeroSSL RSA Domain Secure Site CA
        Validity
            Not Before: May  5 00:00:00 2022 GMT
            Not After : Aug  3 23:59:59 2022 GMT
        Subject: CN = *.tama-tan.com
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                RSA Public-Key: (2048 bit)
                Modulus:
                    00:c5:bb:31:b4:41:96:66:e6:ed:47:9e:74:2f:58:
                    7a:af:fe:a0:d8:09:06:25:36:99:4f:69:79:71:55:
                    --- 省略 ----

上記で、Validityの覧を見ると有効期限がわかります。

READ MORE

Golangでホットリロードする方法

※ 過去に書いた記事を載せています。今動作するかは不明。。。。

今回、Go言語で開発を行うことがありました。

go言語は、PHPやRubyなどの言語とは異なり、ビルドをしないとソースは反映されません。

そのため、開発中は、毎回ソース変更してはコンパイルをして起動。。。。。。

READ MORE

APIの死活監視をRocketChatに送信する

※ 過去に書いた記事を載せています。今動作するかは不明。。。。

サーバ監視ツールを作成しようというお話をします。

サーバが本当に動いているかどうかを少し前までは、メールで送信が多かったのですが、 最近は、Slack等のチャットに連絡するような方法が多くなってきているようです。

READ MORE

Google画像をスクレイピングしてみよう!!

※ 過去に書いた記事を載せています。今動作するかは不明。。。。

すみっコぐらしをめっちゃ好きでLineスタンプはすべてコンプリートしています*.⋆( ˘̴͈́ ॢ꒵ॢ ˘̴͈̀ )⋆.* それは置いといて。。。。 \(・\)ソノハナシハ (/・)/コッチニオイトイテ

READ MORE

Macの設定(超適当)

雑な書き方だけどMacのインストールのファイルなどを公開

Homebrewのインストール

以下のファイルの内容()

Brewfile

tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/cask-fonts"
tap "homebrew/core"
brew "cloc"
brew "colordiff"
brew "coreutils"
brew "curl"
brew "ffmpeg"
brew "gnu-sed"
brew "go"
brew "graphviz"
brew "htop"
brew "hugo"
brew "jq"
brew "mas"
brew "nkf"
brew "nodebrew"
brew "pandoc"
brew "plantuml"
brew "starship"
brew "tree"
brew "wget"
brew "yarn"
brew "yt-dlp"
brew "zsh-autosuggestions"
brew "zsh-completions"
brew "zsh-syntax-highlighting"
cask "adobe-acrobat-reader"
cask "alfred"
cask "apparency"
cask "astah-professional"
cask "atok"
cask "bbedit"
cask "bettertouchtool"
cask "beyond-compare"
cask "bootstrap-studio"
cask "brave-browser"
cask "brooklyn"
cask "browserosaurus"
cask "calibre"
cask "coderunner"
cask "dash"
cask "docker"
cask "drawio"
cask "firefox"
cask "font-ricty-diminished"
cask "google-chrome"
cask "gyazmail"
cask "istat-menus"
cask "iterm2"
cask "jedit-omega"
cask "jetbrains-toolbox"
cask "joplin"
cask "kaleidoscope"
cask "mamp"
cask "openinterminal"
cask "path-finder"
cask "paw"
cask "qlcolorcode"
cask "qlimagesize"
cask "qlmarkdown"
cask "qlprettypatch"
cask "qlstephen"
cask "qlvideo"
cask "quicklook-csv"
cask "quicklook-json"
cask "quicklookapk"
cask "quicklookase"
cask "smartgit"
cask "stoplight-studio"
cask "sublime-text"
cask "suspicious-package"
cask "syntax-highlight"
cask "transmit"
cask "typora"
cask "vivaldi"
cask "webpquicklook"
cask "zoc"
mas "Affinity Designer", id: 824171161
mas "Display Menu", id: 549083868
mas "Graphic", id: 404705039
mas "GraphicConverter 11", id: 1465576485
mas "Hidden Bar", id: 1452453066
mas "Keka", id: 470158793
mas "LINE", id: 539883307
mas "Microsoft Excel", id: 462058435
mas "Microsoft PowerPoint", id: 462062816
mas "OmniPlan", id: 1460319993
mas "Peek", id: 1554235898
mas "Pixelmator Pro", id: 1289583905
mas "Power JSON Editor", id: 499768540
mas "QREncoderPro", id: 479397466
mas "RunCat", id: 1429033973
mas "SimpleMind Pro", id: 434808346
mas "Xcode", id: 497799835
mas "デスクトップ時計 +", id: 892038932

zshrc

~/.zshrc

READ MORE