ios命令行自助打包-导入p12证书

# 1.导入证书

security unlock-keychain -p password /Users/dcw0505/Library/Keychains/login.keychain

security list-keychains -s /Users/dcw0505/Library/Keychains/login.keychain

security import p12_filepath -k /Users/dcw0505/Library/Keychains/login.keychain -P p12_password -T /usr/bin/codesign


password电脑用户密码

p12_filepath替换成p12文件路径,p12_password替换成p12密码,如果为空,则替换为“”


2.展示证书

security find-identity -p codesigning /Users/dcw0505/Library/Keychains/login.keychain


3.删除证书

security delete-certificate -Z SHA1


参考链接:

http://junliang.me/2014/03/06/命令行导入p12证书文件/

http://blog.csdn.net/seafishyls/article/details/50868661




你可能感兴趣的:(OC笔记)