SSL with public/privet key without keystore

943 byte By NortFoxa at 2007-10-1 14:46:47
Hello! I have spent the night looking for a solution and I can't find it =/ I have a serverprogram that will generate a Public/Privet keypair for clientconnections, and then when the client connects i want it to send the public key to the host so that you can login in a secure way.... I can't ...

Special Web Authentication

490 byte By Alortesfbfhfgytytua at 2007-10-1 14:52:42
A general authentication system:1- User Id and Password request2- Access to resourcesExtended authentication system:1- User Id and Password request2- Access to extended authentication2- Extended authentication3- Access to resourcesI have to develop the Java components for the extended ...

jaas - config file not found

427 byte By _leelaa at 2007-10-1 14:59:00
Hi,I have just started developing my first application using jaas.However, when I run my program I get an exception telling me that the config file was not found:> java.lang.SecurityException: Anmeldekonfiguration kann nicht gefunden werden.As I have no experience with jaas I wonder what I ...

Is it possible to override Java.security file

392 byte By sujit_recta at 2007-10-1 14:59:12
Hi,Is there some property which we can pass with -D argument to JVM to specify a custom java.security file, similar to the way we can specify a custom policy file using "java -Djava.security.policy".My actual requirement is to insert a new Provider which I do not want to do by adding ...

PKCS11 NOT FOUND problem

624 byte By Mizara at 2007-10-1 15:00:02
I read many topics relatives to these problem. Here's my case :I configured a file for the provider (pkcs.cfg) and used a dll openSc-pkcs11.dllI installed the provider.sunPkcs11 as described on the Sun guide.Installing the provider even from program code is succesful.I tested it , with the ...

how to list a user permission?

2794 byte By lmcyagaa at 2007-10-1 15:05:18
instead of doing hundred of permission check, I want to have the list of permission allowed for a an authenticated user and deal with it . How may I do that? Is it possible?I started from this piece of code and whatever I tried, I never get the principal permission. I got some default ...

security of soap web services

247 byte By chamalsla at 2007-10-1 15:05:35
Hi,I am quite new to web services. I am trying to implement a web service using soap. What are things that I should learn to make my web service secure. How can I make sure that only authenticated people have access to my wb service.

SOAP & HTTPS: cannot authenticate at proxy

5107 byte By DeepCa at 2007-10-1 15:06:04
Hi,I have a problem with secure tunneling of SOAP through a HTTP proxy. The proxyrequires authentication and SOAP simply does not provide the auth credentials ifit is also using SSL.This is an example of the communication between SOAP client and proxy server.The client sends this:CONNECT ...

container authentication

1240 byte By danniea at 2007-10-1 15:11:32
HI! I'm trying to use basic authentication in a j2ee application. But I have a big problem: my security-constraint seems to be ignored if the url-pattern isn't "/*"! If I write (in the web.xml of the war ...

SASL/LDAP Authentication in Java 1.5.0

2788 byte By Buttsa at 2007-10-1 15:12:40
I had a program that worked in Java 1.4. The idea was that it obtained a Krb5 ticket and then used those credentials to perform an authenticated LDAP search using a different authorization ID. The code:Hashtable env = new Hashtable();env.put(Context.SECURITY_AUTHENTICATION, ...

Authenticator handle DIGEST authentication?

157 byte By jcarona at 2007-10-1 15:13:54
Does java.net.Authenticator handle DIGEST authentication? Im not getting it to work when i contact my TOMCAT 5.0.28 Server. Has anyone seen this work?

HTTPS/SSL client using 'myproxy' certificates

1122 byte By rochfokja at 2007-10-1 15:18:18
Hi, I'm trying to write a java client that will achieve the same as the following curl command:/usr/bin/curl -k --cert /tmp/x509up_u10002 https://mysecure_serverThe cert specified is obtained from a myproxy server ( http://grid.ncsa.uiuc.edu/myproxy/)I have written a java client that works fine ...

PEM files and J2ME

270 byte By Rick_Ha at 2007-10-1 15:20:13
Hi!!I am trying to read PEM file in J2ME with BouncyCastle package for J2ME.I have the PEM file and the password of the file, and I want to retrieve the private key that is encrypted inside the file.Any idea of how to do this?Thanks!!!

HTTPS with Applet over Proxy Issue

3547 byte By gary_mcma at 2007-10-1 15:27:10
An applet using HttpURLConnection within a Java Applet. The Connection is formulated as follows:HttpURLConnection urlConn = (HttpURLConnection)destURL .openConnection( );urlConn.setDoOutput( true );urlConn.setDoInput( true );urlConn.setUseCaches( false );urlConn.setAllowUserInteraction( false ...

Do I need to encrypt

182 byte By Vankeera at 2007-10-1 15:33:22
HiI am trying to post information from a Secure server (SSL) to another secure box outside the fire wall .. do i need to encrypt the data I would be sending ?Van

How to test an OCSP responder.

268 byte By shardul.bhatta at 2007-10-1 15:36:18
I have developed an application for receiving OCSP requests and generating relevant responses. I am unable to find a way to test this application.OpenValidation.org facilitates testing of OCSP clients and not responders.Thanks,Shardul Bhatt

Timestamping

819 byte By jorge.ortiz@tirea.esa at 2007-10-1 15:44:48
Hi,I'm developing an application that is supposed to sign digital invoices in XML format. That's not a big deal using XML DSIG and Apache Security library.Problem cames up when I need to generate a timestamp for the XML document using XAdES. I can't find any Java implementacion that makes ...

to encrypt keystore password/ key password?

282 byte By user_kernela at 2007-10-1 15:53:00
Hi,I need to specify the keystore password and key password in my .Net application configuration file. Is there anyway I can generate an encrypted form of the keystore password?I do not want to store my keystore password and key password in clear.Thanks!

Jaas How to specify the config file

336 byte By rave-Rovera at 2007-10-1 15:56:13
Hi I'm working on a web app based on Sun's App Server 8. I am implementing security using a Jaas LoginModule. I cant figure out how i can specify the config file because if i make the change in the java.security file the server throws all sorts of exceptions....... i'm not sure how i can go ...

Logging in as root in Linux using UnixLoginModule

1001 byte By Streagan2a at 2007-10-1 15:59:34
I am running an app on a Linux box where I am already logged in. I want to spawn a process that needs to run as root. I have tried to use UnixLoginModule to login as root :Subject subject = new Subject();subject.getPrincipals().add(new UnixPrincipal("root"));LoginContext loginContext = new ...

Verify a signature (using Bouncycastle) that has been made with OpenSSL

1246 byte By extola at 2007-10-1 16:02:28
hi!i got a problem with the signature...first a signature is created with php (OpenSSL)then it磗 send to a java application...i got the problem that i can磘 decrypt the encrypted signature right(but i know that iam using the right key)...here is the php code:$fp = fopen("sec\\key.pem", ...

From SOlaris - Calling Java APIs on Windows

355 byte By mthakorea at 2007-10-1 16:06:27
Hi,I have Report Application Server (RAS) installed n Windows 2000 m/c. I have working Java code to call RAS APIs to generate reports.I want to use the same code from Solaris, but problems have come up.What I want to know is whether it is possible to call Java APIs of a service on Windows from ...

java.net.SocketException: Default SSL context init failed: DerInputStream.g

3295 byte By mKarpa at 2007-10-1 16:09:19
I get the following Exception:---Exception in thread mainjava.net.SocketException: Default SSL context init failed: DerInputStream.getLength(): lengthTag=109, too big.at javax.net.ssl.DefaultSSLSocketFactory.createSocket(DashoA6275)at ...

FilenotFoundException (Access Denied) on windows

510 byte By halibuta at 2007-10-1 16:12:55
I have an intranet web application from which I am trying to access files on a windows network share. I have a domain userid and password of an account that has access to the files, but I do not wish to permanenty map a drive to the location of the files, I "merely" wish to provide the ...

Applet IP

222 byte By helmet-breaka at 2007-10-1 16:13:16
Hello is there a way to determine the IP of the Webserver from inside the Applet.(I dont want to provide the ip via parameter)Once the applet is loaded, i want to connect to a service on the webserver.

DSA - different results with JDK 1.2.2 and 1.3.1

2069 byte By Dustyba at 2007-10-1 16:30:34
I have some code which we use to generate digital signatures.We are looking to migrate JDK from 1.2.2 to 1.3.1. We are limited to these versions because we are using Oracle's JVM. I am getting different results when I run the same code under these different JDKs.Has anyone got any ideas why ...

Verifying remotely executed code

486 byte By Felix_Ungmana at 2007-10-1 16:32:01
I'm trying to design a client-server system in where some of the business critical calculations needs to be done by the client. The problem is: How can the server trust the client to use the correct calculation? The code is meant to be open source, so it would easy to recompile it. One ...

new SecurityManager and SocketPermission

559 byte By JeanBeulza at 2007-10-1 16:53:39
Hello,To secure a distributed application, we use a ClassLoader to apply our security policy to restrict access only to some files.I can't execute the application yet so I'm wondering about another point concerning socket communications.For example, whith the code ...

JAAS, JNDI, GSSAPI and Active Directory

694 byte By jjalenaka at 2007-10-1 16:55:37
I have been banging my head on my desk for a few days now, trying to understand what is needed in order to implement Kerberos authentication from a JAAS LoginModule to ActiveDirectory. I can't use the Krb5LoginModule, so I've started writing my own LoginModule. I've got a basic JNDI lookup ...

JAAS authorization

1674 byte By riamloa at 2007-10-1 16:57:39
I am developing a JAAS module and have some questions about how authorization is done. 1) If I use the default security manager (run the code with -Djava.security.manager), what will be checked automatically? I mean without calling any of the SecurityManager's check...() methods? Is it only ...

Acegi security without Spring: Help!!

399 byte By cyberguia at 2007-10-1 17:29:50
Has anyone tried using Acegi framework without spring framework? Rightnow i'm working on selecting a security framework for a new project - Acegi has all the required features, but from the website documentation I find that there is no direct way to use it without Spring. It seems that we have ...

wildcards in principal names

657 byte By riamloa at 2007-10-1 17:29:53
I need to be able to use wildcards in some principal names in the policy file. I tried to solve it with the equal() method in my Principal class, but it does not work. Where is the principal names (values) in the policy file compared to the names of the principals of the same type in the ...

License File for Custom Application

1058 byte By pennstumpa at 2007-10-1 17:39:39
I would like to create a tool to provide an encrypted, binary license file to limit my customers to only the features and instances that they are licensed for. I was thinking something along the lines of this:1. A simple Web Application on my side to create the license file with inputs of ...

JNI

357 byte By iavancoa at 2007-10-1 17:44:08
Has anybody ever implemented a call to a Microsoft COM component using JNI ? I need to call the microsoft CAPICOM.dllfile usingJNI and do not know how to do that. This component makes Digital Signature checking in any PKCS#7 document.I need to know how to invoke methods within the CAPICOM.dll ...

What is "swat" where can i find more info.

226 byte By 2flya at 2007-10-1 17:49:20
Hi everyone,I hope this is the appropriate forum to post this, I need to find out about swat.ReturnCode and swat.cwa and the whole API. Any hint or resources would be very much appriciated.Thanks inadvance

(JAAS) Getting LoginContext when using BASIC authentication

503 byte By Jam1ea at 2007-10-1 17:50:32
I am using basic authentication in JAAS to authenticate users for JSF web resources. My web.xml is configured as follows:...<login-config><auth-method>BASIC</auth-method><realm-name>eccgroup</realm-name></login-config>...How can I get hold of the LoginContext ...

SPNEGO - JAAS with KerberosLoginModule

30673 byte By palfusa at 2007-10-1 17:54:12
Hi!I'm trying to configure single signon using Weblogic-IIS and ActiveDirectory.I have configured each and everything as it's written, and enabled every possible debug option. The following is the result.Could anyone help me? <06-Jul-2005 16:34:50 o'clock CEST> <Debug> ...

Secure FTP

113 byte By pernika at 2007-10-1 18:00:12
Just quick question: is there free library for downloading files over FTPS/SFTP?Thank youJan

Authenticator Won't Authenticate

1809 byte By MidnightJavaa at 2007-10-1 18:01:07
I'm trying to build an Authenticator object that will respond to http 401-Unauthorized response by authenticating with hard-coded credentials. As far as I can tell I've built it exactly as the Javadoc instructs, and it's quite simple, but the relevant method just never gets called.I created ...

How to implement Key logger using java

212 byte By Nethilia at 2007-10-1 18:08:15
Hii all,I like to know how to record all keystrokes typed in any application window & to maintain a log file of it. Im a beginner in java so plz It would be helpful if someone help me reg. this.

create a user in SunOne using LDAP

103 byte By gmeroza at 2007-10-1 18:13:48
does anyone knows how to create a user (from a java application) in a LDAP repository of SunOne?

How to retrieve user name from a given Subject?

584 byte By flying_snowa at 2007-10-1 18:15:48
I am in a situation where I need to retrieve user name from the Subject that is populated when user logs in. I have the active Subject and I do following to get the principals in the subject and iterate through them:Set principals = subject.getPrincipals();Iterator ite = ...

Advantage of JAAS for authentification

428 byte By _edoA_a at 2007-10-1 18:35:38
Hello,I want to implement an Authentification-service for an Application. I need Authentification for an user-to-password where this info have to be hold in a database.This could be realized with JAAS, where a LoginModule have to be implemented for a database.What is the advantage of using JAAS ...

Uhh Help

456 byte By XFACTORa at 2007-10-1 18:36:15
I am not a programmer or anything like that. I don't know exactly where to post this, so i'm posting this here. the problem i was having is, i go to this website http://www.auditmypc.com/ to do security checks. it tells me it can see my internal ip addy, this is after i installed java, i ...

How protect my application against ******* ?

124 byte By martin.pawlasa at 2007-10-1 18:51:18
How protect my application against ******* ?Serial numbers are very poor protection ;) Have someone any idea ?

XML Signature Verification failing...need help

3208 byte By anamsa at 2007-10-1 18:56:18
Hi, I am trying to do signing and encryption at our side and try to decrypt and verify the sign at destination side. Here i succeeded with signing, encryption and decryption. but failing at verification part. Can any body help me finding what mistake iam doing ? it will be greatful if i get any ...

Applet Issue

927 byte By laalitseth@lnx.coma at 2007-10-1 18:59:20
Hi all,I have an applet with no problem it works ok but i face problem when i posted the same on web server.Web Server - APACHE 1.3.31(UNIX)with conf file settings for authentication AuthType BasicAuthName MySiteAuthUserFile /home/all/.htpasswdRequire valid-userThe problem is whenever this ...

GSSAPI requestCredDeleg

1300 byte By Mikael-Wikstroma at 2007-10-1 19:06:37
I'm writing an gss server/client application with mutual auth and credential delegate support but I can't get credential delegation to work. I base my code mainly on the SampleClient.java/SampleServer.java in the GSS tutorial and I get the mutual auth to work without any problems. I'm using ...

isUserInRole problem...

366 byte By subhash.kumara at 2007-10-1 19:06:44
i have a web application with a role "manager" defined.I have an index.jsp page from which i post to a servlet.I login as a user assigned the role of manager.In the index.jsp request.isUserInRole("manager") returns true but after i post to the servlet the same method returns false.What may be ...

Problem on Sessions with JSP

801 byte By hellojavadeva at 2007-10-1 19:13:14
Hello there!!I have a huge problem and I hope somebody can help me because I really need it.Anyway,I have created a login page that verifies the username and password with an existing Access Database. What I want to do is when a user logs in, I want them to start a new session and save his or ...