File tree 2 files changed +71
-0
lines changed
2 files changed +71
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,21 @@ timezone: Asia/Seoul
37
37
# 작성일이 미래라도 빌드할 것인지 여부
38
38
future : true
39
39
40
+ rss_pss_public_key : >- # RSS PSS Public Key for Certification, Do not change this value.
41
+ -----BEGIN PUBLIC KEY-----
42
+
43
+ MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgsbeqduZq5nK120wYVnX
44
+ UvDg5AvVk80iG0SHxIrJQUsbuAohPkj3BBHPh5jQokz35q8pNLPrnDkDpGawPKVD
45
+ aNrzCjgTbbpI3WdSLYa97CewJ6YsX471I4g11YevxuhRp55McMuVb2F/C+jzmBPe
46
+ FdP6VXqVgkzi98nidWb95JsfYI+zd6a3UCpUAUO5/DXQEmsaWMXcsV2lBPCOTTCy
47
+ P169tihxSp+Q3rxBxyYRWfw8hsze1HQh126GDJ6gPYYUD2po0TNBts4Xf8zIcKsS
48
+ bs9bDKWOt5Ah0LcyrLVRLiIrbXlTPlPlKN0i1dovouUtk1/we9DopGJkwSWIuDWm
49
+ UwIDAQAB
50
+
51
+ -----END PUBLIC KEY-----
52
+
53
+
54
+
40
55
# -------------------------------------------------------
41
56
# Collection setting
42
57
# -------------------------------------------------------
Original file line number Diff line number Diff line change
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
+
18
+ document . onload = function ( ) {
19
+ const url = new URL ( window . location ) ;
20
+ const jwsCode = url . searchParams . get ( "code" ) ;
21
+
22
+ console . log ( jwsCode ) ;
23
+
24
+ let jws_input = document . getElementById ( 'jws-code' ) ;
25
+ jws_input . value = jwsCode ;
26
+
27
+ loadRSAKeyPair ( ) ;
28
+ parseJWS ( ) ;
29
+ }
30
+ </ script >
31
+
32
+
33
+
34
+ </ head >
35
+
36
+
37
+ < input type ="hidden " id ="publicKey " value ="{{ site.rss_pss_public_key }} " />
38
+ < input type ="text " id ="jws-code " class ="form-control " placeholder ="JWS Code " onchange ="parseJWS() " />
39
+
40
+
41
+ <!-- Json 파싱 결과 -->
42
+ < div class ="mb-3 ">
43
+ < label for ="payload " class ="form-label "> 인증서 내용</ label >
44
+ < textarea id ="payload " class ="form-control " rows ="5 " placeholder ="payload "> </ textarea >
45
+ </ div >
46
+
47
+ < div class ="mb-3 ">
48
+ < button id ="parse_result " class ="btn btn-secondary "> 검증 결과
49
+ </ div >
50
+
51
+ < div id ="download_area " class ="d-none ">
52
+ <!--팝업창 띄우기 -->
53
+ < button type ="button " class ="btn btn-primary " id ="download "
54
+ onclick ="window.open('https://cmsong111.github.io/Digital-Signature-Certification-Generator/gen_cert?data=' + document.getElementById('payload').value, '_blank' ); ">
55
+ < i class ="bi bi-download "> </ i > 인증서/상장 다운로드
56
+ </ div >
You can’t perform that action at this time.
0 commit comments