Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FIT-Connect-SDK - Java
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
FIT-Connect-SDK - Java
Commits
f7afd07d
Commit
f7afd07d
authored
4 months ago
by
Martin Vogel
Browse files
Options
Downloads
Patches
Plain Diff
refactor: finalize vars (
planning#2403
)
parent
68739aad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!476
planning#2403 Dynamic Signer
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/src/main/java/dev/fitko/fitconnect/core/crypto/utils/CertUtils.java
+2
-2
2 additions, 2 deletions
...ava/dev/fitko/fitconnect/core/crypto/utils/CertUtils.java
with
2 additions
and
2 deletions
client/src/main/java/dev/fitko/fitconnect/core/crypto/utils/CertUtils.java
+
2
−
2
View file @
f7afd07d
...
...
@@ -86,8 +86,8 @@ public final class CertUtils {
public
static
String
getSubjectCNFromCertificate
(
String
pemCertificate
)
{
try
{
final
X509Certificate
certificate
=
X509CertUtils
.
parseWithException
(
pemCertificate
);
X500Principal
principal
=
certificate
.
getSubjectX500Principal
();
X500Name
x500Name
=
new
X500Name
(
principal
.
getName
());
final
X500Principal
principal
=
certificate
.
getSubjectX500Principal
();
final
X500Name
x500Name
=
new
X500Name
(
principal
.
getName
());
final
RDN
x500NameRDN
=
x500Name
.
getRDNs
(
BCStyle
.
CN
)[
0
];
return
IETFUtils
.
valueToString
(
x500NameRDN
.
getFirst
().
getValue
());
}
catch
(
CertificateException
e
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment