Skip to content

Commit

Permalink
Create: Verify Page
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsong111 committed Jul 31, 2024
1 parent 1f610ba commit ff2e69b
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
13 changes: 13 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ timezone: Asia/Seoul
# 작성일이 미래라도 빌드할 것인지 여부
future : true

rss_pss_public_key: >- # RSS PSS Public Key for Certification, Do not change this value.
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgsbeqduZq5nK120wYVnX
UvDg5AvVk80iG0SHxIrJQUsbuAohPkj3BBHPh5jQokz35q8pNLPrnDkDpGawPKVD
aNrzCjgTbbpI3WdSLYa97CewJ6YsX471I4g11YevxuhRp55McMuVb2F/C+jzmBPe
FdP6VXqVgkzi98nidWb95JsfYI+zd6a3UCpUAUO5/DXQEmsaWMXcsV2lBPCOTTCy
P169tihxSp+Q3rxBxyYRWfw8hsze1HQh126GDJ6gPYYUD2po0TNBts4Xf8zIcKsS
bs9bDKWOt5Ah0LcyrLVRLiIrbXlTPlPlKN0i1dovouUtk1/we9DopGJkwSWIuDWm
UwIDAQAB
-----END PUBLIC KEY-----
# -------------------------------------------------------
# Collection setting
# -------------------------------------------------------
Expand Down
56 changes: 56 additions & 0 deletions _pages/certification.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
layout: default
title: Certification
permalink: /certification
---


<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsrsasign/11.1.0/jsrsasign-all-min.js"
integrity="sha512-Eu9j+HZBor7muHf6IDWoWZ8FKVr6nKe9eIIVR28NEte4Y4GiYRlke26XGdR/re81XE/FfLoLYYVkvNk5GY9RvQ=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>

<!-- my js -->
<script src="https://cmsong111.github.io/Digital-Signature-Certification-Generator/assets/js/signature.js"></script>

<script>

document.onload = function () {
const url = new URL(window.location);
const jwsCode = url.searchParams.get("code");

console.log(jwsCode);

let jws_input = document.getElementById('jws-code');
jws_input.value = jwsCode;

loadRSAKeyPair();
parseJWS();
}
</script>



</head>


<input type="hidden" id="publicKey" value="{{ site.rss_pss_public_key }}" />
<input type="hidden" id="jws-code" />


<!-- Json 파싱 결과 -->
<div class="mb-3">
<label for="payload" class="form-label">인증서 내용</label>
<textarea id="payload" class="form-control" rows="5" placeholder="payload"></textarea>
</div>

<div class="mb-3">
<button id="parse_result" class="btn btn-secondary">검증 결과
</div>

<div id="download_area" class="d-none">
<!--팝업창 띄우기 -->
<button type="button" class="btn btn-primary" id="download"
onclick="window.open('https://cmsong111.github.io/Digital-Signature-Certification-Generator/gen_cert?data=' + document.getElementById('payload').value, '_blank' );">
<i class="bi bi-download"></i>인증서/상장 다운로드
</div>

0 comments on commit ff2e69b

Please sign in to comment.