Fix test pubkey files. (#4826)

These files are in PEM, so name them as such. Also, they had extra DER
concatenated at the end; remove it.
This commit is contained in:
Jacob Hoffman-Andrews 2020-05-27 12:30:47 -07:00 committed by GitHub
parent 348e4cb197
commit ca47151148
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 2 deletions

View File

@ -48,8 +48,8 @@ if [ -n "${PKCS11_PROXY_SOCKET:-}" ]; then
}
addobj --id 333333 --token-label intermediate --type privkey --write-object test/test-ca.key.der --label intermediate_key
addobj --id 777777 --token-label root --type privkey --write-object test/test-root.key.der --label root_key
addobj --id 333333 --token-label intermediate --type pubkey --write-object test/test-ca.pubkey.der --label intermediate_key
addobj --id 777777 --token-label root --type pubkey --write-object test/test-root.pubkey.der --label root_key
addobj --id 333333 --token-label intermediate --type pubkey --write-object test/test-ca.pubkey.pem --label intermediate_key
addobj --id 777777 --token-label root --type pubkey --write-object test/test-root.pubkey.pem --label root_key
fi
if [[ $# -eq 0 ]]; then

Binary file not shown.

9
test/test-ca.pubkey.pem Normal file
View File

@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwgpHeZoFxRKydxdjNBPX
cPk2v5neYvEwyHdNR23qwAKapsnRu1GWBd8y00szY5TUjprcm760hlJ2fa/bUkHC
/FTOllDjPLZyKYiIxANkJAcnDML0ZmfwdpbT3WLP0fQajcDtYNfBg2ax0s1GLTSj
XhSOhpWpo+xitla9EpohGppTSEeZLQBbBBK83/3eIwhe7KLDLCaTAptaefEJD+Cx
y0oVS1w2vATH1aCPoqWHANPIjVBZIFvFVg3JSA8XMrGtKbAw7TI19/uGj5BP3Hn5
j/tcTn1LgxzhlfFxcp7D+BKU31Tma9P4PYGEO2QK6l1+xk0JBanbsD5v8OasUj02
qwIDAQAB
-----END PUBLIC KEY-----

Binary file not shown.

View File

@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA+TbvalHXQYO6GhJUJZI5
mF2k4+nZDIvqWyrjw+2k9+UAcekuLKPpSclu9aBRvUggw3XFHAW95qW6Dv2+5gvi
nUmTq9Ry7kVTUYAxyZu1ydHt+wDETmFJfeY6/fpBHHIsuGLItqpUGmr8D6LROGEq
fFY2B9+08O7Zs+FufDRgLHWEvLTdpPkrzeDJs9Oo6g38jfT9b4+9Ahs+FvvwqneA
kbeZgBC2NWKB+drMuNBTPbF/W1a8czAzHeOs6qy0dBlTHNjL62/o9cRKNiKe3Iqw
HJdd01V1aLSUgIbe2HrP9EC1djnUXWR3jx3ursaKt7PTKsC52UJkRqnai80MzQj0
WwIDAQAB
-----END PUBLIC KEY-----