标签:
Security是Mac系统中钥匙串和安全模块的命令行管理工具,(图形化工具为Keychain Access.app)。钥匙串(Keychain)实质上就是一个用于存放证书、密钥、密码等安全认证实体的仓库,在计算机中保存为一个.keychain的文件,一般存放在以下目录中:
Security API文档:https://developer.apple.com/library/mac/documentation/Security/Conceptual/keychainServConcepts/01introduction/introduction.html
Security命令
语法如下:
security [-hilqv] [-p prompt] [command] [command options] [command args]
子命令列表如下,后面有关子命令的说明中都将忽略命令语法前面的security [-hilav] [-p prompt]。
create-keychain [-P] [-p <password>] <keychainFiles...>
import <inputfile> [-k <keychain>] [-t <type>] [-f format] [-w] [-P passphrase] [options...]
security create-keychain -p 123456 certsOfAppBuild.keychain security unlock-keychain -p 123456 certsOfAppBuild.keychain security -k certsOfAppBuild.keychain import xxx.p12 -P 111111 -T /usr/bin/codesign ...sign operation... security delete-keychain certsOfAppBuild.keychian
find-identity [-p policy] [-s string] [-v] [keychain...]
security find-identity -v -p codesigning #显示默认搜索列表中有效地认证实体
list-keychain [-d user|system|common|dynamic] [-s [keychain...]]
cms [-CDES] [<options>]
解密选项
编码选项
通用选项
security cms -D -i example.mobileprovision
标签:
原文地址:http://www.cnblogs.com/pixy/p/4817579.html