0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[Mac] 構成プロファイルの内容を見る方法

Last updated at Posted at 2024-11-22

この記事に書いてあること

企業においてApple製品を管理していると遭遇するものの一つに「構成プロファイル」がありますよね。この構成プロファイルの内容を見る手順を説明します。

はじめに結論

ターミナルで次のコマンド入力します
$ security cms -D -i yourfile.mobileconfig -o output.plist

上記コマンドの結果生成されるファイルoutput.plistは、xml形式で書かれたベタテキストです。

詳細

構成プロファイル(拡張子は通常.mobileconfigが使われます)のフォーマットはrfc5652などで規定されているCryptographic Message Syntax (CMS) というものです。ベタテキストではないので、内容を簡単には確認できません。
そんなときは、上記コマンドでCMS形式を変換してやります。
security コマンドは、キーチェーンをコマンドラインから操作する時によく出てくるコマンドですのでご存じの方も多いと思います。上記cms以外にもたくさんのサブコマンドがあります。より詳しい説明は、man securityでマニュアルを参照してみてください。

0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?