SSL Provider showing no sockets

Hi Experts,
I am facing the following issue: I am trying to setup SSL on a new system but when trying to apply the certificate to the 5xx01 port I am not seeing any sockets in the Visual Admin under SSL Provider --> Dispatcher 1234 --> Active / New Sockets.
Just as I have done with other systems I have uploaded a correct PK12 key and a certificate (named ssl-credentials and ssl-credentials-cert). But even after a restart there is no socket showing (under SSL Provider in the Visual Admin) in either, active or new sockets.
Anyone know if these need to be initialized or created? I have setup 8+ systems in the landscapes with SSL and have not run into this issue yet. You never stop learning ...
I would greatly appreciate any input given.
Thanks in advance,
Jan

Did you try it out? What happened? SSL is enabled per default; you don't need to do anything.
You should however, remove and then add the credentials in the SSL provider. I've noticed that this is necessary when you change anything. You should also add your own root certificate there.

Similar Messages

  • Hybrid Connection fails for Windows SQL Server 2014 - SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted

    Hello,
    I have configured BizTalk Services Hybrid Connection between Standard Azure Website and SQL Server 2014 on premise.
    Azure Management portal shows the status of Hybrid Connection as established.
    However, the website throws an error when trying to open a connection
    <
    addname="DefaultConnection"
    connectionString="Data
    Source=machine name;initial catalog=AdventureWorks2012;Uid=demouser;Password=[my password];MultipleActiveResultSets=True"
    providerName="System.Data.SqlClient"
    />
    (The same website, with the same connection string deployed on SQL Server machine works correctly).
    I tried various options with the connections sting (IP address instead of machine name, Trusted_Connection=False, Encrypt=False, etc. the result is the same
    [Win32Exception (0x80004005): The certificate chain was issued by an authority that is not trusted]
    [SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.
    I tried various machines - on premise and a clean Azure VM with SQL Server and it results in the same error - below full stack
    The certificate chain was issued by an authority that is not trusted             
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.            
    Exception Details: System.ComponentModel.Win32Exception: The certificate chain was issued by an authority that is not trusted
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.                  
    Stack Trace:
    [Win32Exception (0x80004005): The certificate chain was issued by an authority that is not trusted]
    [SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)]
    System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5341687
    System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +546
    System.Data.SqlClient.TdsParserStateObject.SNIWritePacket(SNIHandle handle, SNIPacket packet, UInt32& sniError, Boolean canAccumulate, Boolean callerHasConnectionLock) +5348371
    System.Data.SqlClient.TdsParserStateObject.WriteSni(Boolean canAccumulate) +91
    System.Data.SqlClient.TdsParserStateObject.WritePacket(Byte flushMode, Boolean canAccumulate) +331
    System.Data.SqlClient.TdsParser.TdsLogin(SqlLogin rec, FeatureExtension requestedFeatures, SessionData recoverySessionData) +2109
    System.Data.SqlClient.SqlInternalConnectionTds.Login(ServerInfo server, TimeoutTimer timeout, String newPassword, SecureString newSecurePassword) +347
    System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) +238
    System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) +892
    System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) +311
    System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData) +646
    System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) +278
    System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) +38
    System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +732
    System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) +85
    System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +1057
    System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78
    System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +196
    System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +146
    System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +16
    System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +94
    System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +110
    System.Data.SqlClient.SqlConnection.Open() +96
    System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +44
    [EntityException: The underlying provider failed on Open.]
    System.Data.EntityClient.EntityConnection.OpenStoreConnectionIf(Boolean openCondition, DbConnection storeConnectionToOpen, DbConnection originalConnection, String exceptionCode, String attemptedOperation, Boolean& closeStoreConnectionOnFailure) +203
    System.Data.EntityClient.EntityConnection.Open() +104
    System.Data.Objects.ObjectContext.EnsureConnection() +75
    System.Data.Objects.ObjectQuery`1.GetResults(Nullable`1 forMergeOption) +41
    System.Data.Objects.ObjectQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() +36
    System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +369
    System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
    CloudShop.Services.ProductsRepository.GetProducts() +216
    CloudShop.Controllers.HomeController.Search(String SearchCriteria) +81
    CloudShop.Controllers.HomeController.Index() +1130
    lambda_method(Closure , ControllerBase , Object[] ) +62
    System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
    System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +193
    System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
    System.Web.Mvc.Async.<>c__DisplayClass42.<BeginInvokeSynchronousActionMethod>b__41() +28
    System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
    System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
    System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult) +32
    System.Web.Mvc.Async.<>c__DisplayClass39.<BeginInvokeActionMethodWithFilters>b__33() +58
    System.Web.Mvc.Async.<>c__DisplayClass4f.<InvokeActionMethodFilterAsynchronously>b__49() +225
    System.Web.Mvc.Async.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__36(IAsyncResult asyncResult) +10
    System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
    System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethodWithFilters(IAsyncResult asyncResult) +34
    System.Web.Mvc.Async.<>c__DisplayClass2a.<BeginInvokeAction>b__20() +23
    System.Web.Mvc.Async.<>c__DisplayClass25.<BeginInvokeAction>b__22(IAsyncResult asyncResult) +99
    System.Web.Mvc.Async.WrappedAsyncResult`1.End() +50
    System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
    System.Web.Mvc.<>c__DisplayClass1d.<BeginExecuteCore>b__18(IAsyncResult asyncResult) +14
    System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
    System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
    System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +39
    System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
    System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
    System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +29
    System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
    System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__3(IAsyncResult asyncResult) +25
    System.Web.Mvc.Async.<>c__DisplayClass4.<MakeVoidDelegate>b__3(IAsyncResult ar) +23
    System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
    System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +31
    System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9651188
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36213            
    Regards,
    Michal
    Michal Morciniec

    Same issue here, looking for more information !

  • The server was unable to load the SSL provider library needed to log in

    Hello All,
    When I am trying to login to my default SQL 2008R2 SP2 instance in windows 2003 server via ssms, I am getting the below error
    A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (.Net SqlClient Data Provider)
    When I looked into the error log and i could see lot of these messages.
    The server was unable to load the SSL provider library needed to log in; the connection has been closed. SSL is used to encrypt either the login sequence or all communications, depending on how the administrator has configured the server. See Books
    Online for information on this error message: 14 Not enough storage is available to complete this operation.
    Force protocol encryption is set to off.
    I am not sure what is the underlying problem. server's total RAM is 4 Gb and max_server_memory is set to 2 GB. CPU utilization is very normal at the time of issue.
    I restarted the SQL service and i am able to connect to the instance, but the issue is repeating and i need to find a permanent fix.
    Thanks

    I could also see the below in error log some time before i get the above alert 
    Error: 701, Severity: 17, State: 123.
    There is insufficient system memory in resource pool 'internal' to run this query
    then after sometime flurry of alerts 
    The server was unable to load the SSL provider library
    needed to log in; the connection has been closed. SSL is used to encrypt either the login sequence or all communications, depending on how the administrator has configured the server. See Books Online for information on this error message: 14 Not enough storage
    is available to complete this operation.
    Thanks

  • I get a ssl  Provider error while running a file..

    WHen I try to run a file <filename>.java (the file has no problem in compilation), I get an error that says - "Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/net/ssl/internal/ssl/Provider".
    What does this mean and how can I rectify it? I've already edited the java.security file and added the provider -
    security.provider.1=com.sun.net.ssl.internal.ssl.Provider
    but still the problem occurs.

    I can not even compile the file since there is no .Provider() method!
    java.security.Security.setProperty("security.provider.1","com.sun.net.ssl.internal.ssl.Provider");
    java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());None of these works! I can get the JSSE work while setting provider in java.security file as:
    security.provider.3=com.sun.net.ssl.internal.ssl.Provider
    but I can not set it dynamically! Any help?

  • SSL Provider in PI 7.1 NWA

    Hello,
    We are trying to apply SSL to PI 7.1 (ABAP+JAVA). We haver created ssl certificate in the SSL key storage and now we want to activate this in SSL provider service.
    Now that there is no visual administrator in PI 7.1, we are forced to use NWA and we cannot find SSL provider service in NWA.
    Please let me know as where to find the SSL provide in new NWA.
    Thanks,
    Praveen

    Hi Praveen,
    Please look at the following link and see if helps you.
    https://ecohub.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/808d3048-638c-2a10-35a6-faa48e50ad59
    I have also found another link from the help site. Please check it out and see if it helps
    http://help.sap.com/saphelp_nwpi711/helpdata/en/a0/f3d378e6be44219237733d7cff3644/content.htm
    Please do check this link and see if it helps you
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/109aa318-5aa6-2a10-799d-a495383c1e01
    Best Regards.
    Edited by: Prakash Bhatia on Apr 20, 2009 10:39 AM
    Edited by: Prakash Bhatia on Apr 20, 2009 10:44 AM

  • SSL provider service is PI 7.1

    Hello
    We are moving the interfaces from PI 7.0 to PI 7.1 EHP1 and trying to apply SSL to PI 7.1 EHP1. We have created ssl certificate in the SSL key storage and now we want to activate this in SSL provider service.
    Now that there is no visual administrator in PI 7.1. So could you please let me know as where to find the SSL provide in new NWA. or the procedure for activating the same.
    Thanks in advance
    Kalyan

    Hi Kalyan,
    Log on NWA and then Configuration Management -> Certificates and Keys.
    Content -> Trusted CA
    Add here the public certificate and the ssl connection should work.
    Please see the below link, it might be useful to you.
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
    Regards,
    Rajesh

  • Implementing your own SSL provider

    Hello,
    Im working on a new TLS/SSL implementations. I got all the classes(i.e. sslsocket, etc) ready. The problem i have is that i cant get my socketfactory using SSLFactory.getDefault, because when i do it an exception lang.runtime.exception:export restriction: SunJSSE only is thrown. Is there any way i can fix it?
    I live outside the US
    looking forward to any replies ;)
    lukasz

    I assume you are on JDK 1.4.x? At this point, no, you can't plug in your own provider into the Sun JDK.
    However, in 1.5.x, you can, as long as the sslsocket/sslengine only reports SSL/TLS ciphersuites that
    are on the "approved" list.
    http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/jsse-tiger-beta2.html#PLUG

  • Recipients not receiving emails even though internet provider shows post in it's esnd folder. Started happening with no changes in configuratuin. Thanks

    Sending emails from my laptop using Thunderbird I get the usual "connecting to...., sending to...,message sent" But recipients do not receive post even though my internet provider's sent folder contains the posts. Cox is my email provider and I can send posts from their WebMail site.
    There were no changes in configuration.
    I should note that I was using a "free" WiFi in Nicaragua.
    Also, I receive emails just fine.
    Cox says it's my email client but I don't see how it could be you guys isince Cox had had to receive the posts in order to put them in the sent folder.
    Thanks
    [email protected]

    have you tried mail to multiple domains or all say cox.net. I have a feeling your email might have got a bad reputation in deepest darkest Africa.

  • Urgent help require to configure an SSL incoming socket provider

    Hi,
    We are using RIDC to integrate UCM with Portal application.
    Also using SSL Communication for the same but we are unable to stablish a connection between portal and UCM.
    We have filled the SSL provider's details as given below
    Provider Name: SSL_Provider
    Provider Description: For RIDC Test
    Connection State: down
    Last Activity Date: None
    Provider Type: sslincoming
    Provider Class: idc.provider.ssl.SSLSocketIncomingProvider
    Provider Connection: intradoc.provider.SocketIncomingConnection
    Server Thread Class: intradoc.server.IdcServerThread
    Server Port: 16204
    Request Client Authentication: Yes
    Require Client Authentication: Yes
    Keystore File Path: /ucmapp/wlserver_10.3/server/lib/DemoIdentity.jks
    Alias: RIDCTest
    Truststore File Path: /ucmapp/wlserver_10.3/server/lib/DemoTrust.jks
    we are using the following Ports
    Server Port = 16204
    SSL Server Port = 16302
    Intradoc Port = 9999
    Somebody let us know if we are going somewhere wrong.
    Thanks in Advance

    Just to verify you do not have your own router/gateway correct? Your computer either connects directly into the wall or into a box provided by the ISP?
    Router/gateways stop incoming requests. And if it is yours then you have to figure out how to configure it so it allows those requests through.
    But presuming that you do not....
    Again i wanna make it clear that nobdy is able to ping
    my machine and i am also not able to ping any
    ipaddress whether it be yahoo or anything else. But i
    am able to access every site (ofcourse through
    browser) and i am also able to use every application
    which is using custom ports.
    Get ethereal. Play with it a bit. Use your browser and capture what occurs so you know what is going on.
    Then have someone ping you while running.
    I suspect you will not see the ping packet.
    What this means is that your ISP is blocking all incoming socket connection requests. You solution is ....
    - Get them to open the ports up
    - Get a different ISP.
    The problem : nobdy is able to connect to the server
    writen by me in java.
    Also the client and the server are diferent. The
    server waits for incoming client requests (using
    sock.accept() ) while the client simply tries to
    connect to server through the constructor
    'Socket(ipaddress, port)'.Yes, but in one case your machine connects to something while in the other something connects to it.
    One thing is clear from all this that the path to
    server is not getting resolved whether i try to
    connect to the server using my client or the browser
    or any other application which tries to connect to an
    ipaddress on a particular port.
    Resolved? Resolution only occurs when you use a domain name. There is no resolution when an IP is being used. You are using an IP for all of your testing correct?

  • Error with ddclient (Update fails loading IO::Socket::SSL)

    Trying to run ddclient, I get the following error.
    [root@Muspelheimr ddclient]# ddclient -daemon 0 --verbose --force
    CONNECT: checkip.dyndns.org
    CONNECTED: using HTTP
    SENDING: GET / HTTP/1.0
    SENDING: Host: checkip.dyndns.org
    SENDING: User-Agent: ddclient/3.7.3
    SENDING: Connection: close
    SENDING:
    RECEIVE: HTTP/1.1 200 OK
    RECEIVE: Content-Type: text/html
    RECEIVE: Server: DynDNS-CheckIP/1.0
    RECEIVE: Connection: close
    RECEIVE: Cache-Control: no-cache
    RECEIVE: Pragma: no-cache
    RECEIVE: Content-Length: 104
    RECEIVE:
    RECEIVE: <html><head><title>Current IP Check</title></head><body>Current IP Address: 24.63.25.139</body></html>
    INFO: forcing update of daenyth.ath.cx.
    INFO: setting IP address to 24.63.25.139 for daenyth.ath.cx
    UPDATE: updating daenyth.ath.cx
    Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/5.8.8/i686-linux-thread-multi/Scalar/Util.pm line 30.
    FATAL: Error loading the Perl module IO::Socket::SSL needed for SSL connect.
    FATAL: On Debian, the package libio-socket-ssl-perl must be installed.
    Here's my conf file:
    [root@Muspelheimr ddclient]# grep -v '^#' /etc/ddclient/ddclient.conf | grep -vi 'password'
    daemon=600 # check every 300 seconds
    syslog=yes # log update msgs to syslog
    pid=/var/run/ddclient.pid # record PID in file.
    ssl=yes # use ssl-support. Works with
    # ssl-library
    use=web, web=checkip.dyndns.org/, web-skip='IP Address' # found after IP Address
    login=daenyth # default login
    server=members.dyndns.org, \
    protocol=dyndns2 \
    daenyth.ath.cx
    If I change ssl to "no" in the conf, it works, but that's really not acceptable. Has anyone else seen this problem or know how to work around it?

    It was already installed as a dependency of ddclient.
    [root@Muspelheimr ddclient]# pacman -Qil perl-io-socket-ssl
    Name : perl-io-socket-ssl
    Version : 1.08-1
    URL : http://search.cpan.org/dist/IO-Socket-SSL
    Licenses : GPL PerlArtistic
    Groups : None
    Provides : io-socket-ssl
    Depends On : perl-net-ssleay
    Optional Deps : None
    Required By : ddclient
    Conflicts With : None
    Replaces : None
    Installed Size : 103.92 K
    Packager : Jan de Groot <[email protected]>
    Architecture : i686
    Build Date : Sat 01 Sep 2007 09:09:31 PM EDT
    Install Date : Sat 23 Feb 2008 08:12:29 PM EST
    Install Reason : Installed as a dependency for another package
    Install Script : No
    Description : Perl/CPAN IO::Socket::SSL module: Nearly transparent SSL encapsulation for IO::Socket::INET.
    perl-io-socket-ssl /usr/
    perl-io-socket-ssl /usr/lib/
    perl-io-socket-ssl /usr/lib/perl5/
    perl-io-socket-ssl /usr/lib/perl5/site_perl/
    perl-io-socket-ssl /usr/lib/perl5/site_perl/current/
    perl-io-socket-ssl /usr/lib/perl5/site_perl/current/IO/
    perl-io-socket-ssl /usr/lib/perl5/site_perl/current/IO/Socket/
    perl-io-socket-ssl /usr/lib/perl5/site_perl/current/IO/Socket/SSL.pm
    perl-io-socket-ssl /usr/man/
    perl-io-socket-ssl /usr/man/man3/
    perl-io-socket-ssl /usr/man/man3/IO::Socket::SSL.3.gz

  • Usage of Security.setProperty("ssl.SocketFactory.provider",myCustomSock...)

    While using java mail API, to establish a secure connection with the target server, we use a property object to set any custom socket factory like the following:
    props.setProperty( "mail."+ protocol + ".socketFactory.class", "com.realops.adapter.mail.ssl.CustomSSLSocketFactory")
    We also set our custom socket factory in the security api like:
    Security.setProperty( "ssl.SocketFactory.provider", "com.realops.adapter.mail.ssl.CustomSSLSocketFactory");
    Just wanted to know the difference b/w these two lines.
    We pass the properties object while creating a javamail session. So it will pick the custom socket factory from the properties object, in this case do we still need to set the custom socket factory in the Security API?
    Thanks.

    Thanks for the answer.
    Can you please also tell me how Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider()) is functionally different from Security.setProperty( "ssl.SocketFactory.provider",...).
    Do we always need to 'add' the provider if we are using the Sun's default socket factory or can we simple use local properties object for setting the sun's default socket factory also (assuming it is to be used by java mail only)?
    Should I post a separate thread for this?
    Much Thanks.

  • SSL Configuration - No sockets

    Hi all,
    I'm trying to activate SSL for my AS Java but I cannot see any sockets in Visual Admin SSL Provider service. What can be the reason?
    Regards,
    Gökhan

    Hi,
    May be your certificate have expired...chek below link to try alternatives
    Refer
    /thread/435886 [original link is broken]
    /people/aniket.tare/blog/2005/03/22/ssl-certificate-installation-procedure-for-sap-j2ee-engine-630-150-steps-in-visual-administrator -- see point no 15 in it.
    Thanks
    Swarup

  • How can you manage ssl service provider service in PI 7.1?

    Hello there..
    I am trying to find a place in Netweaver admin tool so that I can add CA certificate into the SSL provider service Trusted Certification Authorities list. I use to be able to do that in Visual Admin tool -> dispatcher node -> Services -> SSL Provider -> Runtime tab -> Client Authentication, but now I cannot find anywhere in the NetWeaver Admin tool.
    Thanks.
    Jerry.

    Hi Jerry,
    Once you login to the NWA, follow this path
    Configuration Management -> Security -> Certificate and keys ->
    You need to import the client certificate under ICM_SSL_xxx and you can find SSL_Provider if you scroll completly down. You need to import the private key of the client certificate under ICM_SSL_xxx.
    You have even Trusted CA's under this list. Please let me know if you have any problems.
    Thanks,
    Srini
    Edited by: srinivas kapu on Dec 18, 2008 9:58 PM

  • PL/SQL portlet not showing up in portlet respository for existing provider

    I hope you can spare a minute to help. I've created a new PL/SQL portlet and added it to an existing provider package. I've refreshed the portlet repository and refreshed the provider, but the new portlet still doesn't show up. The other portlets in the provider show up fine. Could web cache be the culprit? I'm using Portal R2 9.0.2.6 and PDK July 2003.
    Thank you,
    Kendra

    Thanks!
    I did what you suggested, and the page came back:
    Portlet Repository Refresh Status
    View information about the most recent Portlet Repository refresh, such as who initiated the process, when it was started, and whether it is complete or still in progress. If the refresh is complete, this page also shows when the process finished and whether it was successful. Click View Details to view a more detailed log of the refresh process.
    Started By: PORTAL
    Started On: April 08, 2002 19:13:38
    Completed On: April 08, 2002 19:13:57
    Refresh Status: Complete
    Refresh Result: Succeeded
    View Details
    Note that since I had just done a refresh, I would have expected the date to be today's, assuming that the date refers to when the refresh was done, but instead it's April 8th. Strange?
    When I clicked on the View Details link, it brought up a page:
    Monitor Log Detail Report
    Advanced
    Error: Unable to perform query (WWV-10202)
    ORA-01722: invalid number (WWV-11230)
    No row returned.
    Not too helpful an error message, huh?
    Clicking on the Advanced/Basic links produced identical results (the same exact error message).
    The Add Portlets to Region still does not show the portlet I wish to add.
    Any additional help much appreciated...
    Thanks
    Bryan

  • How to create HTTPS or secure Socket objects in JDK 1.4?

    I would like to see sample working code that shows creation
    of Sockets objects that work with HTTPS using JDK 1.4. I am doing
    a POST operation (form submission) on HTTPS URL. I must use Socket
    objects and cannot use URLConnection (I know URLConnection solves the problem automatically in JDK 1.4).
    Also sample code for POST operation would be appreciated.

    I wrote this a little while ago to test out Secure Sockets in 1.4. I assume you are doing the client since you are trying talk to a website or something like that, anyway this test class is tested and works, but you will have to clean it up.
    Pup
    import java.io.*;
    import java.security.*;
    import javax.net.ssl.*;
    public class HelloClientSSL {
        public static void main(String[] args) {
            try {
                int port = 8005;
                int tempport =0;
                if(args.length > 1) {
                    try {
                        tempport = Integer.parseInt(args[1]);
                        port = tempport;
                    catch (Exception e) {
                        System.out.println("Sorry this is not a valid number " + args[1]);
                        System.out.println("Using Default port 8005");
                Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());           
                SSLSocketFactory sslFact = (SSLSocketFactory)SSLSocketFactory.getDefault();
                SSLSocket s = (SSLSocket)sslFact.createSocket(args.length == 0 ? "127.0.0.1" : args[0], port);
                s.setEnabledCipherSuites(s.getSupportedCipherSuites());
                java.net.Socket n = (java.net.Socket) s;
                java.io.ObjectOutputStream OOS = new java.io.ObjectOutputStream(n.getOutputStream());
                BufferedReader in = new BufferedReader (new InputStreamReader(n.getInputStream()));
                String response = "";
                String temp = "This is reall cool and stuff\n";
                OOS.writeObject(temp);
                OOS.writeObject("Hello\n");
                while((response =in.readLine()) != null){
                    System.out.println("Socket message: " + response);
                in.close();
            } catch (Exception e) {
                System.out.println("Exception" + e);
                e.printStackTrace();
    }

Maybe you are looking for