java-security Questions

3

Solved

As title, How to Calculate Fingerprint From SSH RSA Public Key in Java? I got an rsaPublicKey object from sample.pub and I calculated the fingerprint by using library Apache Commons Codec DigestUt...
Antirachitic asked 27/6, 2018 at 9:57

2

Solved

I am running the following command with java 9 : keytool -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg pkcs11conf -list and get the flowing error...
Violation asked 21/11, 2017 at 12:6

5

I need to convert a .cer file to a .jks file. I saw a few questions about it, but haven't seen a solution to what I need. I don't need it in order to add it to my local certificates, but as a file...
Hefner asked 20/5, 2015 at 14:30

4

Solved

I'm looking for Java's equivalent of .NET's SecureString.aspx. Is there such implementation available in 2018? OWASP implementation is not exactly the same because it's just a plain char array. Wh...
Newish asked 9/7, 2018 at 9:24

2

There are my current providers: 0 - Provider name: SUN 1 - Provider namer: SunRsaSign 2 - Provider name: SunEC ... 9 - Provider name: SunPKCS11-CartaoCidadao The ninth provider is th...
Bloodroot asked 29/8, 2018 at 16:31

3

Solved

I'm trying to get myself familiar with the SecurityManager but even this simple scenario fails. When I run the following from inside my IDE or from command line I get the following exception; acce...
Fledgy asked 4/11, 2018 at 16:48

2

Solved

I have a JWT which is signed using Elliptic Curve ES256 am trying to validate it: eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IjEyMzQifQ.eyJpc3MiOiJodHRwczovL2p3dC1pZHAuZXhhbXBsZS5jb20iLCJzdWIiOiJt...
Stephen asked 7/12, 2019 at 18:18

1

In guideline 9-11 / ACCESS-11 Be aware java.lang.reflect.Method.invoke is ignored for checking the immediate caller of the Secure Coding Guidelines for Java SE, it is stated that the Method.invok...
Hallowmas asked 28/3, 2021 at 23:33

2

I trying to open PKCS#12 file, but because password is not ASCII (contains polish characters) I getting "Password is not ASCII" exception when executing KeyStore.load(). Is there any solution to us...
Afrikander asked 1/1, 2019 at 19:27

1

i am working in a startup company providing software services and recently we have set security standards for encryption. For hashing, the standards that were set was we should use SHA-512 or SHA-2...

1

I try to append security properties to java.security. Hence I add a property "java.security.properties" specifying the file to be appended. I checked that security.overridePropertiesFile ...
Stovall asked 16/12, 2020 at 16:33

3

Solved

I have the following lines to get the private key from key store on Android KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); keyStore.load(null); // generating key pair code omitted ...
Showery asked 15/4, 2016 at 16:46

5

Solved

I need to generate a cert and can't find this directory. Thanks!
Nebo asked 7/12, 2011 at 0:51

1

I have to access one https rest web service(https://example.com) for which certificate has been provided by the client which contains 2 .cer files. I have created keystore.jks and truststore.jks ...

2

Solved

During an attempt to upgrade one of my applications from java 8 to java 11, I run into a weird SSL exception about "unable to find valid certification" the provisioning of this application overwri...
Decretal asked 5/11, 2019 at 6:11

1

In our app we've been having issues with data in the Android Keystore suddenly becoming inaccessible. The specific exception we're seeing is here: java.security.UnrecoverableKeyException: Failed to...

1

I started my Tomcat 9.0 on Windows 10 with: -Djava.security.manager -Djava.security.policy==C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\catalina.policy -Djava.security.debug=access...
Charley asked 18/1, 2019 at 12:25

2

Solved

I am trying to create public base64 key from RSA Private key using Security framework. Here is snippet. let tag = "com.example.keys.mykey" public extension SecKey { static func generateBase64Enco...
Nephogram asked 17/6, 2019 at 11:58

2

Solved

I've got one ClassLoader for trusted application code and a seperate ClassLoader for user-submitted (untrusted) code. I want the user-submitted code to be restricted by the Security Manager. How d...
Alisha asked 20/8, 2019 at 17:44

9

Solved

I implemented a Java program that will connect and execute a command in a remote server using JSCH. The problem is that whenever I tried to connect to the server, I got the following exception: co...
Trinatte asked 30/3, 2016 at 2:8

1

Solved

I need to use a public key to verify some data in Java, but I can't seem to format the key in such a way that Java can use without third-party plugins. I'm generating the key with Node.js's crypto...
Jojo asked 17/1, 2019 at 14:56

2

Solved

The following code throws an error in JDK 11: HttpURLConnection con = (HttpURLConnection) new URL("https://sis.redsys.es/sis/realizarPago").openConnection(); con.setRequestMethod("GET"); con.ge...
Linguistic asked 25/8, 2018 at 10:34

1

There are a lot of questions asking if a specific initiation of SecureRandom is "good", but I couldn't find a rule of thumb. What's the best way to create a "good" random SecureRandom? // Fast //...
Nutt asked 29/11, 2016 at 9:59

1

Solved

I have an unencrypted PKCS8 encoded file that represents a Private Key. It can be any of these private key types - RSA, DSA or EC. I viewed these files in an ASN1 decoder (https://lapo.it/asn1js/) ...
Avigdor asked 21/8, 2018 at 14:41

1

I have tachograph company card which is used to get the client authenticated before allowing him to download the data of the tachograph by the remote download. The used APDU command in my code belo...
Animalism asked 15/7, 2017 at 10:28

© 2022 - 2025 — McMap. All rights reserved.