Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Add certificate in sql server login Expand / Collapse
Author
Message
Posted Monday, December 1, 2008 11:19 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, July 9, 2014 6:20 PM
Points: 1,202, Visits: 1,928
Dear All

I m creating a new sql server login "abc" in ss2k5.
How to add certificate in sql server login.
because mapped to certificate check box coming as disable...

Thanx


Thanks

Post #611829
Posted Tuesday, December 2, 2008 1:25 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 8:13 AM
Points: 1,288, Visits: 1,847
You have to create a certificate in the master db first.

I used a self signed cert example:

USE MASTER;
CREATE CERTIFICATE testlogincert
ENCRYPTION BY PASSWORD = 'pounlmdsf'
WITH SUBJECT = 'your login',
EXPIRY_DATE = '12/31/2012';
GO

And then map a user to it.
CREATE LOGIN 'your login' FROM CERTIFICATE testlogincert;
GO


Alex S
Post #612365
Posted Tuesday, December 2, 2008 9:23 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, July 9, 2014 6:20 PM
Points: 1,202, Visits: 1,928
Dear Allex

When I run the first query then it gives this warning message:
Warning: The certificate you created is not yet valid; its start date is in the future.

and 2nd query is not working.


Thanx


Thanks

Post #612555
Posted Tuesday, December 2, 2008 10:19 PM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: Friday, April 12, 2013 12:23 PM
Points: 606, Visits: 587
hi i tried it on my machine it worked perfectly fine without any errors. by the way in the syntax given by Alex has an expiry date and not start date, for which you are getting error. Also once you get that resolved when you try to run 2nd part you have to put username without single quotes.
Post #612570
Posted Tuesday, December 2, 2008 10:31 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Wednesday, July 9, 2014 6:20 PM
Points: 1,202, Visits: 1,928
Dear Sqlizer

Is this the same certificate as we upload for Https on our IE.
I know it's not.
But I m not understand how to use this.
Has anyone any detail help or article regarding this?
How much seurity we can provide by this ?
I want a deep in this?

Please Help?

Thanx


Thanks

Post #612576
Posted Saturday, December 6, 2008 3:38 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 8:13 AM
Points: 1,288, Visits: 1,847
Certificates are used to encrypt your data just like in IE.
Here is the tutorial on certificates:
http://www.exforsys.com/tutorials/sql-server-2005/sql-server-managing-certificates.html


Alex S
Post #615173
Posted Thursday, December 17, 2009 12:20 PM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Monday, April 7, 2014 6:15 PM
Points: 86, Visits: 216
Here is an article posted on this site today that explains how to do this for a "wrapper" around sp_send_dbmail:

http://www.sqlservercentral.com/articles/Security/68873/#

This is another article, this one wrapping CREATE LOGIN:

http://blogs.msdn.com/lcris/archive/2005/06/15/sql-server-2005-procedure-signing-demo.aspx


David Lathrop
DBA
WA Dept of Health
Post #835904
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse