Skip to content

Commit 50ae050

Browse files
committed
Create: Verify Page
1 parent 1f610ba commit 50ae050

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

_config.yml

+13
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ timezone: Asia/Seoul
3737
# 작성일이 미래라도 빌드할 것인지 여부
3838
future : true
3939

40+
rss_pss_public_key: >- # RSS PSS Public Key for Certification, Do not change this value.
41+
-----BEGIN PUBLIC KEY-----
42+
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgsbeqduZq5nK120wYVnX
43+
UvDg5AvVk80iG0SHxIrJQUsbuAohPkj3BBHPh5jQokz35q8pNLPrnDkDpGawPKVD
44+
aNrzCjgTbbpI3WdSLYa97CewJ6YsX471I4g11YevxuhRp55McMuVb2F/C+jzmBPe
45+
FdP6VXqVgkzi98nidWb95JsfYI+zd6a3UCpUAUO5/DXQEmsaWMXcsV2lBPCOTTCy
46+
P169tihxSp+Q3rxBxyYRWfw8hsze1HQh126GDJ6gPYYUD2po0TNBts4Xf8zIcKsS
47+
bs9bDKWOt5Ah0LcyrLVRLiIrbXlTPlPlKN0i1dovouUtk1/we9DopGJkwSWIuDWm
48+
UwIDAQAB
49+
-----END PUBLIC KEY-----
50+
51+
52+
4053
# -------------------------------------------------------
4154
# Collection setting
4255
# -------------------------------------------------------

_pages/certification.html

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: default
3+
title: Certification
4+
permalink: /certification
5+
---
6+
7+
8+
<head>
9+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsrsasign/11.1.0/jsrsasign-all-min.js"
10+
integrity="sha512-Eu9j+HZBor7muHf6IDWoWZ8FKVr6nKe9eIIVR28NEte4Y4GiYRlke26XGdR/re81XE/FfLoLYYVkvNk5GY9RvQ=="
11+
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
12+
13+
<!-- my js -->
14+
<script src="https://cmsong111.github.io/Digital-Signature-Certification-Generator/assets/js/signature.js"></script>
15+
16+
<script>
17+
const url = new URL(window.location);
18+
const jwsCode = url.searchParams.get("code");
19+
20+
console.log(jwsCode);
21+
22+
let jws_input = document.getElementById('jws-code');
23+
jws_input.value = jwsCode;
24+
25+
loadRSAKeyPair();
26+
parseJWS();
27+
</script>
28+
29+
30+
31+
</head>
32+
33+
34+
<input type="hidden" id="publicKey" value="{{ site.rss_pss_public_key }}" />
35+
<input type="hidden" id="jws-code" />
36+
37+
38+
<!-- Json 파싱 결과 -->
39+
<div class="mb-3">
40+
<label for="payload" class="form-label">인증서 내용</label>
41+
<textarea id="payload" class="form-control" rows="5" placeholder="payload"></textarea>
42+
</div>
43+
44+
<div class="mb-3">
45+
<button id="parse_result" class="btn btn-secondary">검증 결과
46+
</div>
47+
48+
<div id="download_area" class="d-none">
49+
<!--팝업창 띄우기 -->
50+
<button type="button" class="btn btn-primary" id="download"
51+
onclick="window.open('https://cmsong111.github.io/Digital-Signature-Certification-Generator/gen_cert?data=' + document.getElementById('payload').value, '_blank' );">
52+
<i class="bi bi-download"></i>인증서/상장 다운로드
53+
</div>

0 commit comments

Comments
 (0)