Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hsmcrypto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mohammad Izzat Johari
hsmcrypto
Commits
09f65bff
Commit
09f65bff
authored
Aug 26, 2025
by
Mohammad Izzat Johari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
4ec1d842
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/Pkcs11Command.php
+1
-1
No files found.
src/Pkcs11Command.php
View file @
09f65bff
...
...
@@ -340,7 +340,7 @@ class Pkcs11Command
}
$key_pem
=
$storagePath
.
'/'
.
Str
::
beforeLast
(
$filename
,
'.'
)
.
'.pem'
;
$extract_key
=
'"
C:\Program Files\OpenSC Project\OpenSC\tools\pkcs11-tool.exe" --module "C:\Program Files\Utimaco\SecurityServer\Lib\cs_pkcs11_R3.dll" --slot 1
--read-object --type pubkey --id 01 > "'
.
$key_der
.
'"'
;
$extract_key
=
'"
'
.
$this
->
pkcs11_tool
.
'" --module "'
.
$this
->
module
.
'" --slot '
.
$this
->
slotId
.
'
--read-object --type pubkey --id 01 > "'
.
$key_der
.
'"'
;
$this
->
runShellCommand
(
$extract_key
,
'Failed to extract key in HSM'
);
$convert_key
=
'openssl rsa -pubin -inform DER -in "'
.
$key_der
.
'" -outform PEM -out "'
.
$key_pem
.
'"'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment