An open API service indexing awesome lists of open source software.

https://github.com/miyako/myna


https://github.com/miyako/myna

4d-calss 4d-component jpki

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

![version](https://img.shields.io/badge/version-20%2B-E23089)
![platform](https://img.shields.io/static/v1?label=platform&message=mac-intel%20|%20mac-arm%20|%20win-64&color=blue)
[![license](https://img.shields.io/github/license/miyako/myna)](LICENSE)
![downloads](https://img.shields.io/github/downloads/miyako/myna/total)

# myna

マイナンバーカードの読み取り

## dependencies.json

```json
{
"dependencies": {
"myna": {
"github": "miyako/myna",
"version": "*"
}
}
}
```

* Windows版は待ち受け処理で固まるので`0.5.0`を使用
* Windows版は`.jp2`画像がサポートされていないので顔写真取得は不可
* 署名は`pkcs`エラーが返されるので不可([こちら](https://github.com/miyako/hpki)に代替案あり)

## Go Build

```
GOOS=darwin GOARCH=amd64 go build -o myna-amd main.go
$Env:GOOS = "darwin"; $Env:GOARCH = "amd64"; go build -o myna-amd main.go
```

のように`GOARCH=amd64`と指定するとリンクエラーになった

*Visual Studio Code* をRosettaで開いてもダメ

https://github.com/ebfe/scard/blob/master/scard_darwin.go

おそらくIntel Macでビルドすれば良いのだろう

仕方がないので[jpki/myna](https://github.com/jpki/myna/releases)からダウンロードした後

```
xattr -rc
```

で検疫フラグをクリアした後,`--entitlements`指定で`codesign`および`xcrun notarytool`

### 謝辞

http://eswg.jnsa.org/matsuri/201711/20171101-P1-hamano.pdf