0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MAMPでSSLを使いたい(https)

Last updated at Posted at 2021-12-26

localhostでhttps通信がしてみたくなったので様々な記事を参考にしました。

下記の記事をベースにしました

/Applications/MAMP/Library/bin/apachectl configtestをするとInvalid command 'SSLMutex'というエラーが出てしまう時の対応(MAMP 6.0以降)

キーチェーンに証明書を追加する(+αでやりました)

Google Chrome でのエラー

Google Chromeでhttpsで表示すると「このサイトへの接続は保護されていません」という表示が出る。

SAN(Subject Alternative Name)の設定と chrome://flags の「Allow invalid certificates for resources loaded from localhost.」有効化が必要だということが下記の記事でわかりました。

そこで下記の記事を参考にSANの設定を行い証明書を発行し直しました。
(最初の部分でテキストファイルを使う部分です)

最後に

コピペする時は("")がなぜか全角になるので半角に直すようにしましょう。
ファイルの内容を変更するときはあらかじめ元のファイルをコピーしておいて動かなくなっても戻せるようにしておきましょう。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?