cert.p12 key.p12


$ openssl pkcs12 -clcerts -nokeys -out cert.pem -in cert.p12
$ openssl pkcs12 -nocerts -out key.pem -in key.p12
$ openssl rsa -in key.pem -out key.unencrypted.pem
$ cat cert.pem key.unencrypted.pem > apns.pem
$ ls
cert.p12  key.p12  cert.pem  key.pem  key.unencrypted.pem  apns.pem


Info.plist에 예외 설정하는 방법



Info.plist용 키를 확인하면 다음과 같습니다.



NSAppTransportSecurity (Dictionary)

  • NSExceptionDomains (Dictionary)
    • NSAllowsArbitraryLoads (Bool)
    • <domain-name-for-exception-as-string> (Dictionary)
      • NSExceptionMinimumTLSVersion (String)
      • NSExceptionRequiresForwardSecrecy (Bool)
      • NSExceptionAllowsInsecureHTTPLoads (Bool)
      • NSRequiresCertificateTransparency (Bool)
      • NSIncludesSubdomains (Bool)
      • NSThirdPartyExceptionMinimumTLSVersion (String)
      • NSThirdPartyExceptionRequiresForwardSecrecy (Bool)
      • NSThirdPartyExceptionAllowsInsecureHTTPLoads (Bool)


2개의 방법이 있는데, 

전체의 HTTP를 허용하는 방법과 도메인마다 설정해서 허용하는 방법이 있습니다.


1. 전체의 HTTP를 허용하는 방법(비추천이라고 합니다)

<key> NSAppTransportSecurity </ key> <dict> <key> NSAllowsArbitraryLoads </ key> <true /> </ dict>





2. ATS를 제외시킬 도메인을 Info.plist에 기재하는 방법


<key> NSAppTransportSecurity </ key> <dict> <key> NSExceptionDomains </ key> <dict> <key> www.xxx.com </ key> <dict> <key> NSTemporaryExceptionAllowsInsecureHTTPLoads </ key> <true /> </ dict> </ dict> </ dict>





출처: http://blowmj.tistory.com/entry/iOS-iOS9-App-Transport-Security-설정법 [블로가 되어 날아보자]

'이것저것 > Mac*IOS' 카테고리의 다른 글

인증서 갱신  (0) 2018.05.31
코코아포드(cocoapods) 설치 및 사용법  (0) 2018.01.18
App 설정으로 이동하기  (0) 2017.09.28
맥 터미널로 시리얼 출력  (0) 2016.11.24
맥 HomeBrew로 Mysql 설치하기  (0) 2016.09.26

CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over 29 thousand libraries and is used in over 1.8 million apps. CocoaPods can help you scale your projects elegantly.


https://jwkcp.github.io/2017/03/22/cocoapods_with_alamofire/


(Objective-C)
1
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@앱번들ID", UIApplicationOpenSettingsURLString]]];
cs

(Swift)

1
UIApplication.sharedApplication().openURL(NSURL(string: "\(UIApplicationOpenSettingsURLString)앱번들ID")!)
cs


$ cd /dev 

  dev폴더로 이동

$ ls

 목록보기, 연결된 dev명 확인

$ screen [디바이스명] [포트번호]  

 screen 명령어, 디바이스명과 포트번호 입력



'이것저것 > Mac*IOS' 카테고리의 다른 글

코코아포드(cocoapods) 설치 및 사용법  (0) 2018.01.18
App 설정으로 이동하기  (0) 2017.09.28
맥 HomeBrew로 Mysql 설치하기  (0) 2016.09.26
맥에 Homebrew 설치  (0) 2016.09.26
맥에서 중국어 입력하기  (0) 2016.09.25
brew install mysql

치면 우선 설치는 된다..

brew doctor // 문제가 있는지 확인을 해본다.
1
2
3
4
5
6
7
You have unlinked kegs in your Cellar
 
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
 
those kegs to fail to run properly once built. Run `brew link` on these:
 
    mysql
cs

이런 문제가 뜬다.. 설치가 안된건가 해서 다시 설치를 해본다. 그러면

1
Warning: mysql-5.7.15 already installed, it's just not linked
cs

설치는 되었으나 연결이 안됐다는 이상한 소리를 한다.


brew link mysql

그래서 연결시키려면

1
2
3
4
5
6
7
8
brew link mysql
 
Linking /usr/local/Cellar/mysql/5.7.15... 
 
Error: Could not symlink share/doc/mysql
 
 
/usr/local/share/doc is not writable.
cs

이런다.


그래서 구글링을 해보니

http://stackoverflow.com/questions/26647412/homebrew-could-not-symlink-usr-local-bin-is-not-writable

1
2
3
4
5
6
7
I was able to resolve this issue;
 seems this to be an issue non specific to the packages being installed but of the permissions of homebrew folders.
 
sudo chown -R `whoami`:admin /usr/local/bin
For some packages, you may also need to do this to /usr/local/share.
 
sudo chown -R `whoami`:admin /usr/local/share
cs

그.. 그렇다고 한다.. 어쨌든 시키는데로 하고 다시 연결하니

1
2
brew link mysql
Linking /usr/local/Cellar/mysql/5.7.15... 93 symlinks created
cs

되었다.

'이것저것 > Mac*IOS' 카테고리의 다른 글

App 설정으로 이동하기  (0) 2017.09.28
맥 터미널로 시리얼 출력  (0) 2016.11.24
맥에 Homebrew 설치  (0) 2016.09.26
맥에서 중국어 입력하기  (0) 2016.09.25
맥 캘린더에 구글 캘린더 연동하기  (0) 2016.09.25

터미널을 킨다.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

↗ 입력한다.

끝.

'이것저것 > Mac*IOS' 카테고리의 다른 글

App 설정으로 이동하기  (0) 2017.09.28
맥 터미널로 시리얼 출력  (0) 2016.11.24
맥 HomeBrew로 Mysql 설치하기  (0) 2016.09.26
맥에서 중국어 입력하기  (0) 2016.09.25
맥 캘린더에 구글 캘린더 연동하기  (0) 2016.09.25

키보드 설정에서 입력소스를 눌러 사용할 키보드 스타일을 고른다.

입력소스를 바꿀 단축키 설정을 한다.

'이것저것 > Mac*IOS' 카테고리의 다른 글

App 설정으로 이동하기  (0) 2017.09.28
맥 터미널로 시리얼 출력  (0) 2016.11.24
맥 HomeBrew로 Mysql 설치하기  (0) 2016.09.26
맥에 Homebrew 설치  (0) 2016.09.26
맥 캘린더에 구글 캘린더 연동하기  (0) 2016.09.25

캘린더에서 계정추가를 눌러서 구글을 선택

그리고 구글 아이디로 로그인을 하면 끝!

'이것저것 > Mac*IOS' 카테고리의 다른 글

App 설정으로 이동하기  (0) 2017.09.28
맥 터미널로 시리얼 출력  (0) 2016.11.24
맥 HomeBrew로 Mysql 설치하기  (0) 2016.09.26
맥에 Homebrew 설치  (0) 2016.09.26
맥에서 중국어 입력하기  (0) 2016.09.25

+ Recent posts